;/*++
;/*++
;
;Copyright (c) 2003 D-Link Corporation, Incorporated All Rights Reserved
;
;Module Name:
;
;    netA3AB.inf

;
;Abstract:
;    INF file for installing D-Link 802.11a/b/g Wireless Adapter
; 
;    Installs A3AB.sys (NDIS 5/5.1 driver) on NT platforms (2000, XP and greater)
;    Installs A3AB9x.sys (NDIS 5 driver) on 9x platforms 

;--*/

[Version]
Signature   = "$CHICAGO$"
Class       = Net
ClassGUID   = {4d36e972-e325-11ce-bfc1-08002be10318}
Provider    = %DLink%
Compatible  = 1
DriverVer   = 07/07/2003,2.4.0.73
Catalogfile = A3AB.cat

[Manufacturer]
%DLink%     = DLink

[ControlFlags]

ExcludeFromSelect = VEN_168C&DEV_0013&SUBSYS_3A061186


[DLink]
; DisplayName               Section                 DeviceID
; -----------               -------                 --------
%G650.DeviceDesc%   = G650_SEC.ndi,	PCI\VEN_168C&DEV_0013&SUBSYS_3A061186


; Windows 9X specific entries
[A650B_SEC.ndi]
AddReg          = A650B_SEC.id.reg, 5211.reg, A3AB.win.reg, 5211.acb.reg
CopyFiles       = A3AB.win.CopyFiles, Ndi_9X_CopyFiles, DEFAULTDESTDIRS
DelFiles        = A3AB.DelIniFiles

[AB650_SEC.ndi]
AddReg          = AB650_SEC.id.reg, 5211.reg, A3AB.win.reg, 5211.abcb.reg
CopyFiles       = A3AB.win.CopyFiles, Ndi_9X_CopyFiles, DEFAULTDESTDIRS
DelFiles        = A3AB.DelIniFiles

[AB520_SEC.ndi]
AddReg          = AB520_SEC.id.reg, 5211.reg, A3AB.win.reg, 5211.abmp.reg
CopyFiles       = A3AB.win.CopyFiles, Ndi_9X_CopyFiles, DEFAULTDESTDIRS
DelFiles        = A3AB.DelIniFiles

[G650_SEC.ndi]
AddReg          = G650_SEC.id.reg, 5211.reg, A3AB.win.reg, 5212.bg.reg
CopyFiles       = A3AB.win.CopyFiles, Ndi_9X_CopyFiles, DEFAULTDESTDIRS
DelFiles        = A3AB.DelIniFiles

[AG520_SEC.ndi]
AddReg          = AG520_SEC.id.reg, 5211.reg, A3AB.win.reg, 5212.pabg.reg
CopyFiles       = A3AB.win.CopyFiles, Ndi_9X_CopyFiles, DEFAULTDESTDIRS
DelFiles        = A3AB.DelIniFiles

[AG650B_SEC.ndi]
AddReg          = AG520_SEC.id.reg, 5211.reg, A3AB.win.reg, 5212.abg.reg
CopyFiles       = A3AB.win.CopyFiles, Ndi_9X_CopyFiles, DEFAULTDESTDIRS
DelFiles        = A3AB.DelIniFiles


; Windows NT specific entry

[A650B_SEC.ndi.NT]
Characteristics = 0x84 ; NCF_PHYSICAL | NCF_HAS_UI
BusType         = 5
AddReg          = A3AB.reg, 5211.reg, 5211.acb.reg
CopyFiles       = A3AB.CopyFiles.nt, DEFAULTDESTDIRS
DelFiles        = A3AB.DelIniFiles

[AB650_SEC.ndi.NT]
Characteristics = 0x84 ; NCF_PHYSICAL | NCF_HAS_UI
BusType         = 5
AddReg          = A3AB.reg, 5211.reg, 5211.abcb.reg
CopyFiles       = A3AB.CopyFiles.nt, DEFAULTDESTDIRS
DelFiles        = A3AB.DelIniFiles

[AB520_SEC.ndi.NT]
Characteristics = 0x84 ; NCF_PHYSICAL | NCF_HAS_UI
BusType         = 5
AddReg          = A3AB.reg, 5211.reg, 5211.abmp.reg
CopyFiles       = A3AB.CopyFiles.nt, DEFAULTDESTDIRS
DelFiles        = A3AB.DelIniFiles

[G650_SEC.ndi.NT]
Characteristics = 0x84 ; NCF_PHYSICAL | NCF_HAS_UI
BusType         = 5
AddReg          = A3AB.reg, 5211.reg, 5212.bg.reg
CopyFiles       = A3AB.CopyFiles.nt, DEFAULTDESTDIRS
DelFiles        = A3AB.DelIniFiles

[AG520_SEC.ndi.NT]
Characteristics = 0x84 ; NCF_PHYSICAL | NCF_HAS_UI
BusType         = 5
AddReg          = A3AB.reg, 5211.reg, 5212.pabg.reg
CopyFiles       = A3AB.CopyFiles.nt, DEFAULTDESTDIRS
DelFiles        = A3AB.DelIniFiles

[AG650B_SEC.ndi.NT]
Characteristics = 0x84 ; NCF_PHYSICAL | NCF_HAS_UI
BusType         = 5
AddReg          = A3AB.reg, 5211.reg, 5212.abg.reg
CopyFiles       = A3AB.CopyFiles.nt, DEFAULTDESTDIRS
DelFiles        = A3AB.DelIniFiles

[A650B_SEC.ndi.NT.Services]
AddService      = A3AB, 2, A3AB.Service, common.EventLog

[A650B_SEC.ndi.NT.CoInstallers]
AddReg=CoInstallers_AddReg
CopyFiles=CoInstallers_CopyFiles


[AB650_SEC.ndi.NT.Services]
AddService      = A3AB, 2, A3AB.Service, common.EventLog

[AB650_SEC.ndi.NT.CoInstallers]
AddReg=CoInstallers_AddReg
CopyFiles=CoInstallers_CopyFiles


[AB520_SEC.ndi.NT.Services]
AddService      = A3AB, 2, A3AB.Service, common.EventLog

[AB520_SEC.ndi.NT.CoInstallers]
AddReg=CoInstallers_AddReg
CopyFiles=CoInstallers_CopyFiles


[G650_SEC.ndi.NT.Services]
AddService      = A3AB, 2, A3AB.Service, common.EventLog

[G650_SEC.ndi.NT.CoInstallers]
AddReg=CoInstallers_AddReg
CopyFiles=CoInstallers_CopyFiles


[AG520_SEC.ndi.NT.Services]
AddService      = A3AB, 2, A3AB.Service, common.EventLog

[AG520_SEC.ndi.NT.CoInstallers]
AddReg=CoInstallers_AddReg
CopyFiles=CoInstallers_CopyFiles

[AG650B_SEC.ndi.NT.Services]
AddService      = A3AB, 2, A3AB.Service, common.EventLog

[AG650B_SEC.ndi.NT.CoInstallers]
AddReg=CoInstallers_AddReg
CopyFiles=CoInstallers_CopyFiles


[CoInstallers_AddReg]
HKR,,CoInstallers32,0x00010000,"DWLInst.dll,DWLInst"

						
;----------------------------------------------------------------------------
; Win9x id registry sections
; These are not needed by NT

[A650B_SEC.id.reg]
HKR, Ndi, DeviceID, 0, "PCI\VEN_168C&DEV_0012&SUBSYS_3A031186"
HKR, Ndi, NdiInstaller, 0, "DWLNdi.dll, DWLNDIProc"

[AB650_SEC.id.reg]
HKR, Ndi, DeviceID, 0, "PCI\VEN_168C&DEV_0012&SUBSYS_3A041186"
HKR, Ndi, NdiInstaller, 0, "DWLNdi.dll, DWLNDIProc"

[AB520_SEC.id.reg]
HKR, Ndi, DeviceID, 0, "PCI\VEN_168C&DEV_0012&SUBSYS_3A051186"
HKR, Ndi, NdiInstaller, 0, "DWLNdi.dll, DWLNDIProc"

[G650_SEC.id.reg]
HKR, Ndi, DeviceID, 0, "PCI\VEN_168C&DEV_0013&SUBSYS_3A061186"
HKR, Ndi, NdiInstaller, 0, "DWLNdi.dll, DWLNDIProc"

[AG520_SEC.id.reg]
HKR, Ndi, DeviceID, 0, "PCI\VEN_168C&DEV_0013&SUBSYS_3A081186"
HKR, Ndi, NdiInstaller, 0, "DWLNdi.dll, DWLNDIProc"

[AG650B_SEC.id.reg]
HKR, Ndi, DeviceID, 0, "PCI\VEN_168C&DEV_0013&SUBSYS_3A091186"
HKR, Ndi, NdiInstaller, 0, "DWLNdi.dll, DWLNDIProc"


; 5211 Enumerated Types
;
[5211.acb.reg]
HKR, ,                                  NetBand,                        0x00002,  "3"
HKR, ,                                  AdHocBand,                      0x00002,  "1"
HKR, ,				        NicType,                        0x10003,  0
HKR, ,					p24GAG,				0x00002,  "1"
HKR, ,					p5GAG,				0x00002,  "1"

[5211.abcb.reg]
HKR, ,                                  NetBand,                        0x00002,  "7"
HKR, ,                                  AdHocBand,                      0x00002,  "0"
HKR, ,				        NicType,                        0x10003,  1
HKR, ,					p24GAG,				0x00002,  "1"
HKR, ,					p5GAG,				0x00002,  "1"

[5211.abmp.reg]
HKR, ,                                  NetBand,                        0x00002,  "7"
HKR, ,                                  AdHocBand,                      0x00002,  "0"
HKR, ,				        NicType,                        0x10003,  2
HKR, ,					p24GAG,				0x00002,  "2"
HKR, ,					p5GAG,				0x00002,  "4"

[5212.bg.reg]
HKR, ,                                  NetBand,                        0x00002,  "8"
HKR, ,                                  AdHocBand,                      0x00002,  "3"
HKR, ,       				NicType,                        0x10003,  0
HKR, ,					p24GAG,				0x00002,  "1"
HKR, ,					p5GAG,				0x00002,  "1"

[5212.abg.reg]
HKR, ,                                  NetBand,                        0x00002,  "15"
HKR, ,                                  AdHocBand,                      0x00002,  "3"
HKR, ,       				NicType,                        0x10003,  1
HKR, ,					p24GAG,				0x00002,  "1"
HKR, ,					p5GAG,				0x00002,  "1"

[5212.pabg.reg]
HKR, ,                                  NetBand,                        0x00002,  "15"
HKR, ,                                  AdHocBand,                      0x00002,  "3"
HKR, ,       				NicType,                        0x10003,  2
HKR, ,					p24GAG,				0x00002,  "2"
HKR, ,					p5GAG,				0x00002,  "4"


;-----------------------------------------------------------------------------

;
; 5211 common
;

[5211.reg]

HKR, Ndi\params\MapRegisters,           ParamDesc,                      0,  %MapRegisters%
HKR, Ndi\params\MapRegisters,           default,                        0,  "256"
HKR, Ndi\params\MapRegisters,           min,                            0,  "32"
HKR, Ndi\params\MapRegisters,           max,                            0,  "512"
HKR, Ndi\params\MapRegisters,           step,                           0,  "8"
HKR, Ndi\params\MapRegisters,           base,                           0,  "10"
HKR, Ndi\params\MapRegisters,           type,                           0,  "int"

HKR, Ndi\params\NetworkAddress,         ParamDesc,                      0,  %NetworkAddress%
HKR, Ndi\params\NetworkAddress,         default,                        0,  ""
HKR, Ndi\params\NetworkAddress,         LimitText,                      0,  "12"
HKR, Ndi\params\NetworkAddress,         UpperCase,                      0,  "1"
HKR, Ndi\params\NetworkAddress,         optional,                       0,  "1"
HKR, Ndi\params\NetworkAddress,         type,                           0,  "edit"


HKR, Ndi\params\sleepMode,              ParamDesc,                      0,  %sleepMode%
HKR, Ndi\params\sleepMode,              Base,                           0,  "10"
HKR, Ndi\params\sleepMode,              default,                        0,  "2"
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, Ndi\params\tpc,                    ParamDesc,                      0,  %tpc%
HKR, Ndi\params\tpc,                    Base,                           0,  "10"
HKR, Ndi\params\tpc,                    default,                        0,  "0"
HKR, Ndi\params\tpc,                    type,                           0,  "enum"
HKR, Ndi\params\tpc\enum,               "0",                            0,  %tpc100%
HKR, Ndi\params\tpc\enum,               "1",                            0,  %tpc50%
HKR, Ndi\params\tpc\enum,               "2",                            0,  %tpc25%
HKR, Ndi\params\tpc\enum,               "3",                            0,  %tpc12%
HKR, Ndi\params\tpc\enum,               "4",                            0,  %tpcLowest%

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

HKR, Ndi\params\radioEnable,            ParamDesc,                      0,  %radioEnable%
HKR, Ndi\params\radioEnable,            Base,                           0,  "10"
HKR, Ndi\params\radioEnable,            default,                        0,  "1"
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, ,		         		BusType,			0x00002,  "5"
HKR, ,					AdHocChannel,			0x00002,  "0"
;HKR, ,                                  AdHocBand,                      0x00002,  "0"
HKR, ,                                  AwakeTimePerf,                  0x00002,  "200"
HKR, ,                                  beaconInterval,                 0x00002,  "100"
HKR, ,                                  bkScanEnable,                   0x00002,  "1"
HKR, ,                                  bssType,                        0x00002,  "1"
HKR, ,                                  ccode,                          0x00002,  "US"
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, ,                                  shortPreamble,                  0x00002,  "1"
;HKR, ,                                  sleepMode,                      0x00002,  "2"
HKR, ,                                  SwTxRetryScale,                 0x00002,  "6"
HKR, ,                                  SmeEnable,                      0x00002,  "1"
;HKR, ,                                  tpc,                            0x00002,  "0"

HKR, CustomParams\Configurations,       MajorVersion,                   0x10003,  2
HKR, CustomParams\Configurations,       MinorVersion,                   0x10003,  0

HKR, CustomParams\Configurations,       SelectedConfigurationIndex,     0x10003,  0
HKR, CustomParams\Configurations,       SelectedConfigurationName,      0x00002,  "Default"


;-----------------------------------------------------------------------------
; A3AB NT specific
;

[A3AB.reg]
HKR, Ndi,             Service,      0, "A3AB"
HKR, Ndi\Interfaces,  UpperRange,   0, "ndis5"
HKR, Ndi\Interfaces,  LowerRange,   0, "ethernet"
HKR, ,                InitFile,     0, %InitFile%
HKR, ,                aifs,         0, "2"
HKR, ,                cwmin,        0, "15"


[A3AB.Service]
DisplayName     = %A3AB.Service.DispName%
ServiceType     = 1 ;%SERVICE_KERNEL_DRIVER%
StartType       = 3 ;%SERVICE_DEMAND_START%
ErrorControl    = 1 ;%SERVICE_ERROR_NORMAL%
ServiceBinary   = %12%\A3AB.sys
LoadOrderGroup  = NDIS

[common.EventLog]
AddReg = common.AddEventLog.reg

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

;----------------------------------------------------------------------------
; A3AB Win9x specific
;
[A3AB.win.reg]
HKR, ,                  DevLoader,          0,    "*ndis"
HKR, ,                  DeviceVxDs,         0,    "A3AB9x.sys"
HKR, ,                  EnumPropPages,      0,    "netdi.dll,EnumPropPages"

HKR, Ndi\Interfaces,    DefUpper,           0,    "ndis3"
HKR, Ndi\Interfaces,    DefLower,           0,    "ethernet"
HKR, Ndi\Interfaces,    UpperRange,         0,    "ndis3"
HKR, Ndi\Interfaces,    LowerRange,         0,    "ethernet"


HKR, NDIS,              LogDriverName,      0,    "A3AB9X"
HKR, NDIS,              MajorNdisVersion,   1,    03
HKR, NDIS,              MinorNdisVersion,   1,    0A
HKR, ,                  InitFile,           0,    %InitFile%
HKR, ,                  aifs,               0,    2
HKR, ,                  cwmin,              0,    15

HKR, Ndi\Install,       ndis3,              0,    "A3AB.install"

;-----------------------------------------------------------------------------
; DestinationDirs
;
[A3AB.win.CopyFiles]
A3AB9x.sys,,,2

[A3AB.CopyFiles.nt]
A3AB.sys,,,2

[CoInstallers_CopyFiles]
DWLInst.dll

[A3AB.DelIniFiles]
A3AB.ini,,,1

[Ndi_9X_CopyFiles]
DWLNdi.dll,,,2

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

[SourceDisksFiles]
;A3AB9x.sys         	= 1,, ; on distribution disk 1
A3AB.sys                = 1,, ; on distribution disk 1
DWLNdi.dll              = 1,, ; on distribution disk 1
DWLInst.dll             = 1,, ; on distribution disk 1

[DestinationDirs]
A3AB.CopyFiles.nt       = 12
A3AB.win.CopyFiles      = 10,system32\drivers ; %SystemRoot%\system32\drivers 
A3AB.DelIniFiles        = 10,system32\drivers ; %SystemRoot%\system32\drivers 
DefaultDestDir          = 11
Ndi_9X_CopyFiles        = 11

[DEFAULTDESTDIRS]
;


[Strings]
DLink                   = "D-Link"
authTypeUseOnly              = "802.11 Authentication Type"
authAuto                     = "Auto"
authOpen                     = "Open"
authShared                   = "Shared"
MapRegisters            = "Map Registers"
NetworkAddress		="Network Address"
sleepMode                    = "Power Save Mode"
sleepModeOff                 = "Off"
sleepModeNormal              = "Normal"
sleepModeMax                 = "Maximum"
tpc                          = "Transmit Power"
tpcLowest                    = "Lowest"
tpc12                        = "12.5%"
tpc25                        = "25%"
tpc50                        = "50%"
tpc100                       = "100%"
shortPreamble                = "802.11b Preamble"
shortPreambleEnable          = "Long and Short"
shortPreambleDisable         = "Long only"
radioEnable                  = "Radio On/Off"
radioEnableOn                = "On"
radioEnableOff               = "Off"
InitFile                = "A3AB.ini"
A3AB_Disk               = "D-Link Wireless Driver Disk"
A650B.DeviceDesc        = "D-Link AirPro DWL-A650 Wireless Cardbus Adapter(rev.B)"
AB650.DeviceDesc        = "D-Link AirPro DWL-AB650 Multimode Wireless Cardbus Adapter"
AB520.DeviceDesc	= "D-Link AirPro DWL-AB520 Multimode Wireless PCI Adapter"
G650.DeviceDesc		= "D-Link AirPlus DWL-G650 Wireless Cardbus Adapter"
AG520.DeviceDesc	= "D-Link AirXpert DWL-AG520 Wireless PCI Adapter"
A3AB.Service.DispName   = "D-Link AirPro 802.11a/b Wireless Adapter Service(A3AB)"
