;/*++
;
;Copyright (c) 2003 NETGEAR Communications, Incorporated All Rights Reserved
;
;Module Name:
;
;    netwg311.inf
;
;Abstract:
;    INF file for installing NETGEAR WG311 Wireless Network Adapter
;
;--*/

[Version]
Signature    = "$Chicago$"    ; Single INF file for Windows 98 and Windows 2000
Compatible   = 1              ; Single INF file for Windows 98 and Windows 2000
Class        = Net
ClassGUID    = {4D36E972-E325-11CE-BFC1-08002BE10318}
Provider     = %Vendor_String%
DriverVer    = 10/07/2003,3.0.0.43  ; Recognized by Windows 2000 only
;CatalogFile  = netwg311.cat
MillenniumPreferred = .ME

[Manufacturer]
%Vendor_String% = Vendor

[ControlFlags]
ExcludeFromSelect   = PCI\VEN_168C&DEV_0013&SUBSYS_49001385 


[Vendor]
; DisplayName               Section             DeviceID
; -----------               -------             --------
%LEX.DeviceDesc.MB22g%      = LEX_MB22g_01,     PCI\VEN_168C&DEV_0013&SUBSYS_49001385


;==========================================
[LEX_MB22g_01]     ; Win9x
 AddReg          = LEX_MB22g_01_9x.reg, LEX_MB22g_01_9x_2k.reg, COMMON_MB22g.reg, COMMON_G.reg, COMMON_NDIS_9x_WG311.reg, COMMON_CARDBUS.reg, COMMON.reg
 CopyFiles       = WLAN_9x_WG311.CopyFiles
 DelFiles        = WLAN_9x.DelIniFiles
 DriverVer       = 10/07/2003,3.0.0.43  ; Recognized by Windows 98 here

[LEX_MB22g_01.ME]  ; WinMe
 AddReg          = LEX_MB22g_01_9x.reg, LEX_MB22g_01_9x_2k.reg, COMMON_MB22g.reg, COMMON_G.reg, COMMON_NDIS_9x_WG311.reg, COMMON_CARDBUS.reg, COMMON.reg
 CopyFiles       = WLAN_Me_WG311.CopyFiles
 DelFiles        = WLAN_9x.DelIniFiles
 DriverVer       = 10/07/2003,3.0.0.43  ; Recognized by Windows 98 here
 
[LEX_MB22g_01.ME.ME]   ; WinMe - Same as .ME (Needed for Update Driver)
 AddReg          = LEX_MB22g_01_9x.reg, LEX_MB22g_01_9x_2k.reg, COMMON_MB22g.reg, COMMON_G.reg, COMMON_NDIS_9x_WG311.reg, COMMON_CARDBUS.reg, COMMON.reg
 CopyFiles       = WLAN_Me_WG311.CopyFiles
 DelFiles        = WLAN_9x.DelIniFiles
 DriverVer       = 10/07/2003,3.0.0.43  ; Recognized by Windows 98 here
 
[LEX_MB22g_01.NT]  ; Win2k
 AddReg          = LEX_MB22g_01_2k.reg, LEX_MB22g_01_9x_2k.reg, COMMON_MB22g.reg, COMMON_G.reg, COMMON_NDIS_2k_WG311.reg, COMMON_CARDBUS.reg, COMMON.reg
 CopyFiles       = WLAN_2k_WG311.CopyFiles
 DelFiles        = WLAN_2k.DelIniFiles
 BusType         = 5     ; Treat CARDBUS as PCI
 Characteristics = 0x84  ; NCF_PHYSICAL | NCF_HAS_UI

[LEX_MB22g_01.NT.Services]
 AddService      = NETGEAR_WG311_SERVICE, 2, WlanNetCard_WG311.Service, WlanNetCard.EventLog

[LEX_MB22g_01_9x.reg]
 HKR, NDI, DeviceID,    0, "PCI\VEN_168C&DEV_0013&SUBSYS_49001385"

[LEX_MB22g_01_2k.reg]


[LEX_MB22g_01_9x_2k.reg] 
 HKR,    , VendorDesc,  0, %LEX.DeviceDesc.MB22g%

;###############################################################################

[WlanNetCard_WG311.Service]
 DisplayName    = %WG311_Service.DispName%
 ServiceType    = 1    ; SERVICE_KERNEL_DRIVER
 StartType      = 3    ; SERVICE_DEMAND_START
 ErrorControl   = 1    ; NORMAL
 ServiceBinary  = %12%\wg311nd5.sys
 LoadOrderGroup = NDIS

[WlanNetCard.EventLog]
 AddReg         = WlanNetCard.EventLog.reg

[WlanNetCard.EventLog.reg]
 HKR, , EventMessageFile, 0x00020000, "%%SystemRoot%%\System32\netevent.dll"
 HKR, , TypesSupported,   0x00010001, 7

;###############################################################################

[COMMON_CARDBUS.reg]
;RegKey,SubKey          ,Name                   ,Type   ,Value
;-------------          -----                   -----   ------
 HKR,NDI                ,CardType               ,0      ,"PCI"
 HKR,                   ,BusType                ,0      ,"5"

[COMMON_PCI.reg]
 HKR,NDI                ,CardType               ,0      ,"PCI"
 HKR,                   ,BusType                ,0      ,"5"

;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[COMMON_CB21.reg]
HKR,    ,NicType    ,0x00002    ,"0"                ; CB21

[COMMON_MB22.reg]
HKR,    ,NicType    ,0x00002    ,"2"                ; MB22

[COMMON_MB22g.reg]
HKR,    ,NicType    ,0x00002    ,"5"                ; MB22g

[COMMON_MB22ag.reg]
HKR,    ,NicType    ,0x00002    ,"6"                ; MB22ag


[COMMON_A.reg]
HKR, ,                                  NetBand,                  0x00002,  %NetBand_DEF_STR_A%
HKR, ,                                  AdHocBand,                0x00002,  %AdhocBand_DEF_STR_A%


[COMMON_AB.reg]
HKR, ,                                  NetBand,                  0x00002,  %NetBand_DEF_STR_AB%
HKR, ,                                  AdHocBand,                0x00002,  %AdhocBand_DEF_STR_AB%

 
[COMMON_G.reg]
HKR, ,                                  NetBand,                  0x00002,  %NetBand_DEF_STR_G%
HKR, ,                                  AdHocBand,                0x00002,  %AdhocBand_DEF_STR_G% 


[COMMON_AG.reg]
HKR, ,                                  NetBand,                  0x00002,  %NetBand_DEF_STR_AG%
HKR, ,                                  AdHocBand,                0x00002,  %AdhocBand_DEF_STR_AG%

[COMMON_SG.reg]
HKR, ,                                  NetBand,                  0x00002,  %NetBand_DEF_STR_SG%
HKR, ,                                  AdHocBand,                0x00002,  %AdhocBand_DEF_STR_G%

[COMMON_ASG.reg]
HKR, ,                                  NetBand,                  0x00002,  %NetBand_DEF_STR_ASG%
HKR, ,                                  AdHocBand,                0x00002,  %AdhocBand_DEF_STR_AG%

;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

[COMMON_NDIS_9x_WG311.reg]
 HKR,                   ,RunningWin9X           ,0      ,"1"
 HKR,                   ,DevLoader              ,0      ,"*ndis"
 HKR,                   ,DeviceVxDs             ,0      ,wg311nd5.sys
 HKR,                   ,EnumPropPages          ,0      ,"netdi.dll,EnumPropPages"
 HKR,NDI\Interfaces     ,UpperRange             ,0      ,"ndis3"
 HKR,NDI\Interfaces     ,LowerRange             ,0      ,"ethernet"
 HKR,NDI\Interfaces     ,DefUpper               ,0      ,"ndis3"
 HKR,NDI\Interfaces     ,DefLower               ,0      ,"ethernet"
 HKR,NDIS               ,LogDriverName          ,0      ,WG311ND5
 HKR,NDIS               ,MajorNdisVersion       ,1      ,03
 HKR,NDIS               ,MinorNdisVersion       ,1      ,0a
 HKR,                   ,aifs                   ,0      ,"2"
 HKR,                   ,cwmin                  ,0      ,"15"
 
 [COMMON_NDIS_9x_WAG311.reg]
 HKR,                   ,RunningWin9X           ,0      ,"1"
 HKR,                   ,DevLoader              ,0      ,"*ndis"
 HKR,                   ,DeviceVxDs             ,0      ,wag311n5.sys
 HKR,                   ,EnumPropPages          ,0      ,"netdi.dll,EnumPropPages"
 HKR,NDI\Interfaces     ,UpperRange             ,0      ,"ndis3"
 HKR,NDI\Interfaces     ,LowerRange             ,0      ,"ethernet"
 HKR,NDI\Interfaces     ,DefUpper               ,0      ,"ndis3"
 HKR,NDI\Interfaces     ,DefLower               ,0      ,"ethernet"
 HKR,NDIS               ,LogDriverName          ,0      ,WAG311N5
 HKR,NDIS               ,MajorNdisVersion       ,1      ,03
 HKR,NDIS               ,MinorNdisVersion       ,1      ,0a
 HKR,                   ,aifs                   ,0      ,"2"
 HKR,                   ,cwmin                  ,0      ,"15"
 
[COMMON_NDIS_2k_WG311.reg]
 HKR,NDI\Interfaces     ,UpperRange             ,0      ,"ndis5"
 HKR,NDI\Interfaces     ,LowerRange             ,0      ,"ethernet"
 HKR,NDI                ,Service                ,0      ,"NETGEAR_WG311_SERVICE"
 HKR,                   ,aifs                   ,0      ,"2"
 HKR,                   ,cwmin                  ,0      ,"15"

[COMMON_NDIS_2k_WAG311.reg]
 HKR,NDI\Interfaces     ,UpperRange             ,0      ,"ndis5"
 HKR,NDI\Interfaces     ,LowerRange             ,0      ,"ethernet"
 HKR,NDI                ,Service                ,0      ,"NETGEAR_WAG311_SERVICE"
 HKR,                   ,aifs                   ,0      ,"2"
 HKR,                   ,cwmin                  ,0      ,"15"
 
[COMMON.reg]

HKR, ,                                  sleepMode,                      0x00002, %sleepMode_DEFAULT%
HKR, Ndi\params\sleepMode,              ParamDesc,                      0,  %sleepMode%
HKR, Ndi\params\sleepMode,              Base,                           0,  "10"
HKR, Ndi\params\sleepMode,              default,                        0,  %sleepMode_DEFAULT%
HKR, Ndi\params\sleepMode,              type,                           0,  "enum"
HKR, Ndi\params\sleepMode\enum,         "0",                            0,  %sleepModeOff%
HKR, Ndi\params\sleepMode\enum,         "2",                            0,  %sleepModeNormal%
HKR, Ndi\params\sleepMode\enum,         "1",                            0,  %sleepModeMax%

HKR, ,                                  tpc,                            0x00002, %tpc_DEFAULT%
HKR, Ndi\params\tpc,                    ParamDesc,                      0,  %tpc%
HKR, Ndi\params\tpc,                    Base,                           0,  "10"
HKR, Ndi\params\tpc,                    default,                        0,  %tpc_DEFAULT%
HKR, Ndi\params\tpc,                    type,                           0,  "enum"
HKR, Ndi\params\tpc\enum,               "0",                            0,  "100%"
HKR, Ndi\params\tpc\enum,               "1",                            0,  "50%"
HKR, Ndi\params\tpc\enum,               "2",                            0,  "25%"
HKR, Ndi\params\tpc\enum,               "3",                            0,  "12.5%"
HKR, Ndi\params\tpc\enum,               "4",                            0,  %tpcLowest%

HKR, ,                                  shortPreamble,                  0x00002, %shortPreamble_DEFAULT%
HKR, Ndi\params\shortPreamble,          ParamDesc,                      0,  %shortPreamble%
HKR, Ndi\params\shortPreamble,          Base,                           0,  "10"
HKR, Ndi\params\shortPreamble,          default,                        0,  %shortPreamble_DEFAULT%
HKR, Ndi\params\shortPreamble,          type,                           0,  "enum"
HKR, Ndi\params\shortPreamble\enum,     "1",                            0,  %shortPreambleEnable%
HKR, Ndi\params\shortPreamble\enum,     "0",                            0,  %shortPreambleDisable%

HKR, ,                                  radioEnable,                    0x00002, %radio_DEFAULT%
HKR, Ndi\params\radioEnable,            ParamDesc,                      0,  %radioEnable%
HKR, Ndi\params\radioEnable,            Base,                           0,  "10"
HKR, Ndi\params\radioEnable,            default,                        0,  %radio_DEFAULT%
HKR, Ndi\params\radioEnable,            type,                           0,  "enum"
HKR, Ndi\params\radioEnable\enum,       "1",                            0,  %radioEnableOn%
HKR, Ndi\params\radioEnable\enum,       "0",                            0,  %radioEnableOff%

HKR, Ndi\params\authTypeUseOnly,               ParamDesc,                      0,  %authTypeUseOnly%
HKR, Ndi\params\authTypeUseOnly,               Base,                           0,  "10"
HKR, Ndi\params\authTypeUseOnly,               default,                        0,  "0"
HKR, Ndi\params\authTypeUseOnly,               type,                           0,  "enum"
HKR, Ndi\params\authTypeUseOnly\enum,          "0",                            0,  %authAuto%
HKR, Ndi\params\authTypeUseOnly\enum,          "1",                            0,  %authOpen%
HKR, Ndi\params\authTypeUseOnly\enum,          "2",                            0,  %authShared%
     
HKR, ,                                  AwakeTimePerf,                  0x00002,  "200"
HKR, ,                                  beaconInterval,                 0x00002,  "100"
HKR, ,                                  bkScanEnable,                   0x00002,  "1"
HKR, ,                                  bssType,                        0x00002,  "1"
;HKR, ,                                  ccode,                          0x00002,  "US"
HKR, ,                                  ccode,		                0x00002, %ccode_DEFAULT%
HKR, Ndi\params\ccode,            	ParamDesc,                      0,  %ccode_Description%
HKR, Ndi\params\ccode,            	Base,                           0,  "10"
HKR, Ndi\params\ccode,            	default,                        0,  %ccode_DEFAULT%
HKR, Ndi\params\ccode,            	type,                           0,  "enum"
HKR, Ndi\params\ccode\enum,       	"DZ",                           0,  %ccode_Africa%
HKR, Ndi\params\ccode\enum,       	"CN",                           0,  %ccode_Asia%
HKR, Ndi\params\ccode\enum,       	"AU",                           0,  %ccode_Australia%
HKR, Ndi\params\ccode\enum,       	"CA",                           0,  %ccode_Canada%
HKR, Ndi\params\ccode\enum,       	"GB",                           0,  %ccode_Europe%
HKR, Ndi\params\ccode\enum,       	"FR",                           0,  %ccode_France%
HKR, Ndi\params\ccode\enum,       	"IL",                           0,  %ccode_Israel%
HKR, Ndi\params\ccode\enum,       	"JP",                           0,  %ccode_Japan%
HKR, Ndi\params\ccode\enum,       	"MX",                           0,  %ccode_Mexico%
HKR, Ndi\params\ccode\enum,       	"BR",                           0,  %ccode_SourthAmerica%
HKR, Ndi\params\ccode\enum,       	"US",                           0,  %ccode_UnitedStates%

HKR, ,                                  clist,                          0x00002,  ""
HKR, ,                                  defaultKey,                     0x00002,  "0"
HKR, ,                                  EncryptionAlg,                  0x00002,  "2"
HKR, ,                                  FragThreshold,                  0x00002,  "2346"
HKR, ,                                  HwTxRetries,                    0x00002,  "4"
HKR, ,                                  privacyInvoked,                 0x00002,  "0"
HKR, ,                                  QoS,                            0x00002,  "0"
HKR, ,                                  rateCtrlEnable,                 0x00002,  "1"
HKR, ,                                  RTSThreshold,                   0x00002,  "2346"
HKR, ,                                  scanType,                       0x00002,  "2"
HKR, ,                                  SwTxRetryScale,                 0x00002,  "6"
HKR, ,                                  SmeEnable,                      0x00002,  "1"
HKR, ,                                  gpioPinFunc0,                   0x00002,  "1"

HKR, ,					LanExpress,			0,	"AS00"
HKR, ,					DynamicConfig,			0,	"0"
;Turbo G
;HKR, ,                                  Abolt,		                0,	"63"

;###############################################################################
[DestinationDirs]
;CopyFiles Section		= Destination Directory ID -- see layout.inf
;-----------------		------------------------
 DefaultDestDir			= 11 ; Win9x=%windir%\system Win2k=%windir%\system32
 WLAN_Me_WG311.CopyFiles	= 11 ; Win9x=%windir%\system
 WLAN_9x_WG311.CopyFiles	= 11 ; Win9x=%windir%\system
 WLAN_9x.DelIniFiles		= 11 ; Win9x=%windir%\system
 WLAN_2k_WG311.CopyFiles	= 12 ; Win2k=%windir%\system32\drivers
 WLAN_2k.DelIniFiles		= 12 ; Win2k=%windir%\system32\drivers

[WLAN_Me_WG311.CopyFiles]
 wg311nd5.sys,,,0x00000010   ; COPYFLG_NO_OVERWRITE
 
[WLAN_9x_WG311.CopyFiles]
 wg311nd5.sys,,,0x00000004   ; COPYFLG_NOVERSIONCHECK

[WLAN_2k_WG311.CopyFiles]
 wg311nd5.sys,,,0x00000004   ; COPYFLG_NOVERSIONCHECK

[WLAN_9x.DelIniFiles]
 Athnic.ini,,,1
 
[WLAN_2k.DelIniFiles]
 Athnic.ini,,,1

[SourceDisksNames]
; diskid = description[, [tagfile] [, <unused>, subdir]]
;-------------------------------------------------------
 1                      = %DriverDiskName%,,,

[SourceDisksFiles]      ; Win9x
; filename_on_source = diskID[, [subdir][, size]]
;-------------------------------------------------------
 wg311nd5.sys          = 1
 
[SourceDisksFiles.X86]  ; Win2k
 wg311nd5.sys          = 1

;###############################################################################
[Strings]
 DriverDiskName             = "NETGEAR Wireless PCI Adapter Driver Disk"
 Vendor_String              = "NETGEAR, Inc."
 LEX.DeviceDesc.MB22g       = "NETGEAR WG311 802.11g Wireless PCI Adapter"

 WG311_Service.DispName           = "NETGEAR WG311 Wireless PCI Adapter Service"

; (0x01=11A, 0x02=11A_TURBO, 0x04=11B, 0x08=11G)
 NetBand_DEF_STR_A          = "3"                       ; (A/T) 
 NetBand_DEF_STR_AB         = "7"                       ; (A/T/B)   
 NetBand_DEF_STR_G          = "12"                      ; (B/G)     
 NetBand_DEF_STR_AG         = "15"                      ; (A/T/B/G)
 NetBand_DEF_STR_SG         = "28"                      ; (B/G/SG)
 NetBand_DEF_STR_ASG        = "31"			; (A/T/B/G/SG)
 
; (0=11B, 1=11A, 2=11A_TURBO, 3=11G)
 AdhocBand_DEF_STR_A        = "1"                       ; (A)
 AdhocBand_DEF_STR_AB       = "1"                       ; (A)
 AdhocBand_DEF_STR_G        = "0"                       ; (B)
 AdhocBand_DEF_STR_AG       = "0"                       ; (B)

; (0=Disable, 1=Maximum, 2=Normal) 
 sleepMode                  = "Power Save Mode"
 sleepModeOff               = "Off"
 sleepModeNormal            = "Normal"
 sleepModeMax               = "Maximum"
 sleepMode_DEFAULT          = "0"  

; (0=100%, 1=50%, 2=25%, 3=12.5%, 4=Lowest) 
 tpc                         = "Transmit Power"
 tpcLowest                   = "Lowest"
 tpc_DEFAULT                 = "0"
 
; (0=Long Preamble, 1=Long and Short) 
 shortPreamble               = "802.11b Preamble"
 shortPreambleEnable         = "Long and Short"
 shortPreambleDisable        = "Long only"
 shortPreamble_DEFAULT       = "1"

; (0=OFF, 1=ON)  
 radioEnable                 = "Radio On/Off"
 radioEnableOn               = "On"
 radioEnableOff              = "Off"
 radio_DEFAULT               = "1"

; (Country Selection)
 ccode_Description	     = "Regional Domain"
 ccode_Africa		     = "Africa"
 ccode_Asia		     = "Asia"
 ccode_Australia	     = "Australia"
 ccode_Canada		     = "Canada"
 ccode_Europe		     = "Europe"
 ccode_France		     = "France"
 ccode_Israel		     = "Israel"
 ccode_Mexico		     = "Mexico"
 ccode_Japan		     = "Japan"
 ccode_SourthAmerica	     = "Sourth America"
 ccode_UnitedStates	     = "United States"
 ccode_DEFAULT		     = "US"

 authTypeUseOnly              = "802.11 Authentication Type"
 authAuto                     = "Auto"
 authOpen                     = "Open"
 authShared                   = "Shared"
 
                          
                                                   
                      