what is Relationship between miniport and INF file values ? RRS feed

  • Question

  • i am beginner in NDIS , so i want to learn something about driver . after reading some documents , i have some doubts . because i am currently doing some mobile broadband NDIS application . (NDIS 6.2)

    i wrote INF file like this : (my driver INF)

    HKR, Ndi, FilterType, 0x00010001, 0x00000002HKR,

    Ndi\Interfaces, UpperRange,0 , "flpp4"

    HKR, Ndi\Interfaces, LowerRange,0 , "ppip"

    HKR, Ndi\Interfaces, FilterMediaTypes, , "ethernet, wan, ppip, wlan"

    HKR, Ndi, FilterRunType, 0x00010001, 1

    and in virtualdriver INF :

    *IfType = 0x0F3 ;IF_TYPE_WWANPP

    *MediaType = 0x09 ;NdisWirelessWan

    *PhysicalMediaType = 0x08;NdisPhysicalWirelessWan

    HKR, Ndi\Interfaces, UpperRange, 0, "flpp4"

    HKR, Ndi\Interfaces, LowerRange, 0, "ppip"

    so after that i have miniport.cpp 

    MediaSupported = NdisMedium802_3;

    MediaInUse = NdisMedium802_3;

    ndisMiniportAdapterGeneralAttributes.MediaType = NdisMedium802_3;

    ndisMiniportAdapterGeneralAttributes.PhysicalMediumType = NdisPhysicalMediumUnspecified; // NdisPhysicalMedium802_3

    ndisMiniportAdapterGeneralAttributes.RecvScaleCapabilities = NULL;

    ndisMiniportAdapterGeneralAttributes.AccessType = NET_IF_ACCESS_BROADCAST;

    ndisMiniportAdapterGeneralAttributes.DirectionType = NET_IF_DIRECTION_SENDRECEIVE;

    ndisMiniportAdapterGeneralAttributes.ConnectionType = NET_IF_CONNECTION_DEDICATED;

    ndisMiniportAdapterGeneralAttributes.IfType = IF_TYPE_ETHERNET_CSMACD;

    ndisMiniportAdapterGeneralAttributes.IfConnectorPresent = FALSE;

    Is this correct ? or i should chnage all NdisMedium802_3 to NdisWirelssWan to get support Mobile broadband NDIS ?

    • Edited by vinay kp123 Tuesday, November 24, 2015 1:35 PM code
    Tuesday, November 24, 2015 1:34 PM


  • or i should chnage all NdisMedium802_3 to NdisWirelssWan to get support Mobile broadband NDIS ?

    This would make sense.

    -- pa

    Tuesday, November 24, 2015 10:26 PM

All replies

  • I means that how can i get support to application for connecting NDIS type Mobile broadband (3g USB dongle) . Because i add all INF ile chnage and NB packet chnages .  

    Wednesday, November 25, 2015 11:29 AM
  • I think u didn't get my problem . i will explain . i have a dongle (airtel 3g dongle - HUWEI 3g ) , when i put ,it will install their driver . after that i got interface for connecting . In tool ->option , their is 2 way of connectivity (one is NDIS and other is RAS type) . so i connect with NDIS . it fails . 

    I have a pplication which has LWF filter and it create virtual adapter . With this application i can see the active adapters . for  RAS type , i can see HUWEI - 3g modem and NDIS type ,it is HUWEI - 3g adapter . but When i caonnect with RAS , the  HUWEI - 3g modem is active and i can connect with my application . But in case of HUWEI - 3g adapter , i can't see any active . After chnaging "IP address automatically" and "DNS server automatically" i can see that  HUWEI - 3g adapter . but it fails to connect with my application .

    So now i want to connect NDIS 3 g dongle with my application .

    Thursday, November 26, 2015 6:17 AM