;****************************************************************************************
;
; NetRt61G.INF
;
;   This installation script supports Windows 7 for the
;   D-Link Wireless LAN Card.
;
;   Copyright (C) @ 2002-2009 D-Link Corporation. All Rights Reserved.
;  
;
;****************************************************************************************

[Version]
Signature       = "$Windows NT$"
Class           = Net
ClassGUID       = {4d36e972-e325-11ce-bfc1-08002be10318}
Provider        = %Provider% 
Compatible      = 1
CatalogFile     = NetRT61G.CAT
DriverVer       = 06/02/2009,3.00.01.0000

[ControlFlags]
ExcludeFromSelect = *

[Manufacturer]
%Provider%        = D-Link, NTx86.6.1


;*******************************************************************************************
; Win7 specific entries
;*******************************************************************************************

[D-Link.NTx86.6.1]
; DisplayName               Section                 DeviceID
; -----------               -------                 --------
%G630.DeviceDesc%    	= OS61_RTWLAN.ndi,      PCI\VEN_1814&DEV_0301&SUBSYS_3C081186
%G510.DeviceDesc%    	= OS61_RTWLAN.ndi,      PCI\VEN_1814&DEV_0301&SUBSYS_3C091186
%G630B.DeviceDesc%    	= OS61_RTWLAN.ndi,      PCI\VEN_1814&DEV_0302&SUBSYS_3C081186
%G510B.DeviceDesc%    	= OS61_RTWLAN.ndi,      PCI\VEN_1814&DEV_0302&SUBSYS_3C091186
%DWA510.DeviceDesc%    	= OS61_RTWLAN.ndi,      PCI\VEN_1814&DEV_0302&SUBSYS_3A711186
%DWA610.DeviceDesc%    	= OS61_RTWLAN.ndi,      PCI\VEN_1814&DEV_0302&SUBSYS_3A721186
%G650A.DeviceDesc%    	= OS61_RTWLAN.ndi,      PCI\VEN_1814&DEV_0302&SUBSYS_3C101186
%G520A.DeviceDesc%    	= OS61_RTWLAN.ndi,      PCI\VEN_1814&DEV_0302&SUBSYS_3C111186
%G630M.DeviceDesc%    	= OS61_RTWLAN.ndi,      PCI\VEN_1814&DEV_0401&SUBSYS_3C121186
%G510M.DeviceDesc%    	= OS61_RTWLAN.ndi,      PCI\VEN_1814&DEV_0401&SUBSYS_3C131186
;*******************************************************************************************
; WIN7 specific entries
;*******************************************************************************************

[OS61_RTWLAN.ndi.NT]
Include=netvwifibus.inf
Needs=VWiFiBus.CopyFiles
AddReg                  = Common.reg, RT61_OS61.reg
Characteristics         = 0x84                      ; NCF_REMOVABLE | NCF_HAS_UI | NCF_PHYSICAL
BusType                 = 5
CopyFiles               = NT.CopyFiles
*IfType                 = 71                        ; IF_TYPE_IEEE80211
*MediaType              = 16                        ; NdisMediumNative802_11
*PhysicalMediaType      = 9                         ; NdisPhysicalMediumNative802_11

;*******************************************************************************************
; Win7 services sections
;*******************************************************************************************

[OS61_RTWLAN.ndi.NT.Services]
Include=netvwifibus.inf
Needs=VWiFiBus.Services
AddService              = RT61, 2, General.Service, common.EventLog

[OS61_RTWLAN.ndi.NT.HW]
Include=netvwifibus.inf
Needs=VWiFiBus.PnPFilterRegistration

;*******************************************************************************************
; NT CoInstallers Sections
;*******************************************************************************************

[OS61_RTWLAN.ndi.NT.CoInstallers]
CopyFiles = CoInstaller.CopyFiles
AddReg = CoInstaller_AddReg

;*******************************************************************************************
; RT61 registry for Windows Vista & Windows 7
;*******************************************************************************************
[Common.reg]
;
; WirelessMode
;
HKR, ,                            WirelessMode,    0, "3"

;
; Channel
;
HKR, ,                            Channel,         0, %CHANNEL%
HKR, Default,                     Channel,         0, %CHANNEL%

;
; Use Short Slot Time
;
HKR, ,                            ShortSlot,       0, "1"

;
; Enable TX Burst
;
HKR, ,                            TXBurst,         0, "1"
;HKR, NDI\params\TXBurst,          ParamDesc,       0, %TXBurst%
;HKR, NDI\params\TXBurst,          type,            0, "enum"
;HKR, NDI\params\TXBurst,          default,         0, "0"
;HKR, NDI\params\TXBurst\enum,     0,               0, %Disable%
;HKR, NDI\params\TXBurst\enum,     1,               0, %Enable%

;
; CCX2 control
;
HKR, ,                            CCX2Control,     0x00010001, 0x00fa4600

;
; FrameAggregation
;
HKR, ,                            FrameAggregation,0, "1"
;HKR, NDI\params\FrameAggregation,       ParamDesc, 0, %FrameAggregation%
;HKR, NDI\params\FrameAggregation,       type,      0, "enum"
;HKR, NDI\params\FrameAggregation,       default,   0, "1"
;HKR, NDI\params\FrameAggregation\enum,  0,         0, %Disable%
;HKR, NDI\params\FrameAggregation\enum,  1,         0, %Enable%

;
; Radio On/Off
;
HKR, ,                            Radio,           0, "0"
;HKR, NDI\params\Radio,            ParamDesc,       0, %RadioOnOff%
;HKR, NDI\params\Radio,            type,            0, "enum"
;HKR, NDI\params\Radio,            default,         0, "0"
;HKR, NDI\params\Radio\enum,       1,               0, %Disable%
;HKR, NDI\params\Radio\enum,       0,               0, %Enable%

;
; IEEE80211H
;
HKR, ,                            IEEE80211H,      0, "0"
;HKR, NDI\params\IEEE80211H,       ParamDesc,       0, %IEEE802_11h%
;HKR, NDI\params\IEEE80211H,       type,            0, "enum"
;HKR, NDI\params\IEEE80211H,       default,         0, "0"
;HKR, NDI\params\IEEE80211H\enum,  0,               0, %Disable%
;HKR, NDI\params\IEEE80211H\enum,  1,               0, %Enable%

;
; CarrierDetect
;
HKR, ,                               CarrierDetect,   0, "0"
;HKR, NDI\params\CarrierDetect,       ParamDesc,       0, %CarrierDetect%
;HKR, NDI\params\CarrierDetect,       type,            0, "enum"
;HKR, NDI\params\CarrierDetect,       default,         0, "0"
;HKR, NDI\params\CarrierDetect\enum,  0,               0, %Disable%
;HKR, NDI\params\CarrierDetect\enum,  1,               0, %Enable%

;
; SmartScan
;
HKR, ,                            SmartScan,       0, "1"
HKR, NDI\params\SmartScan,              ParamDesc, 0, %SmartScan%
HKR, NDI\params\SmartScan,              type,      0, "enum"
HKR, NDI\params\SmartScan,              default,   0, "0"
HKR, NDI\params\SmartScan\enum,         0,         0, %Disable%
HKR, NDI\params\SmartScan\enum,         1,         0, %Enable%

;
; WPS Device Name
;
HKR, ,                            WPSDevName,      0, %WPS_DEVNAME_DEF_STR%
HKR, Default,                     WPSDevName,      0, %WPS_DEVNAME_DEF_STR%

;
; W53 Control
;
HKR, ,                            W53Control,      0, "0"

;
; RaCoInstaller Options
;
HKR, ,                    RaCoInstOpt,      0,"00000000"

;
; Show Hidden SSID in Site Survey Page
;
HKR, ,                                  ShowHiddenSSID,     0, "1"   ; 0=disable(default), 1=enable

;
; WMMCapable
;
HKR, ,                            WMMCapable,      0, "1"
HKR, NDI\params\WMMCapable,             ParamDesc, 0, %WMMCapable%
HKR, NDI\params\WMMCapable,             type,      0, "enum"
HKR, NDI\params\WMMCapable,             default,   0, "1"
HKR, NDI\params\WMMCapable\enum,        0,         0, %Disable%
HKR, NDI\params\WMMCapable\enum,        1,         0, %Enable%

;
; APSDCapable
;
HKR, ,                            APSDCapable,     0, "0"
HKR, NDI\params\APSDCapable,            ParamDesc, 0, %APSDCapable%
HKR, NDI\params\APSDCapable,            type,      0, "enum"
HKR, NDI\params\APSDCapable,            default,   0, "1"
HKR, NDI\params\APSDCapable\enum,       0,         0, %Disable%
HKR, NDI\params\APSDCapable\enum,       1,         0, %Enable%

;
; APSDAC_BE
;
HKR, ,                            APSDAC_BE,       0, "0"
HKR, NDI\params\APSDAC_BE,              ParamDesc, 0, %APSDAC_BE%
HKR, NDI\params\APSDAC_BE,              type,      0, "enum"
HKR, NDI\params\APSDAC_BE,              default,   0, "1"
HKR, NDI\params\APSDAC_BE\enum,         0,         0, %Disable%
HKR, NDI\params\APSDAC_BE\enum,         1,         0, %Enable%

;
; APSDAC_BK
;
HKR, ,                            APSDAC_BK,       0, "0"
HKR, NDI\params\APSDAC_BK,              ParamDesc, 0, %APSDAC_BK%
HKR, NDI\params\APSDAC_BK,              type,      0, "enum"
HKR, NDI\params\APSDAC_BK,              default,   0, "1"
HKR, NDI\params\APSDAC_BK\enum,         0,         0, %Disable%
HKR, NDI\params\APSDAC_BK\enum,         1,         0, %Enable%

;
; APSDAC_VI
;
HKR, ,                            APSDAC_VI,       0, "0"
HKR, NDI\params\APSDAC_VI,              ParamDesc, 0, %APSDAC_VI%
HKR, NDI\params\APSDAC_VI,              type,      0, "enum"
HKR, NDI\params\APSDAC_VI,              default,   0, "1"
HKR, NDI\params\APSDAC_VI\enum,         0,         0, %Disable%
HKR, NDI\params\APSDAC_VI\enum,         1,         0, %Enable%

;
; APSDAC_VO
;
HKR, ,                            APSDAC_VO,       0, "0"
HKR, NDI\params\APSDAC_VO,              ParamDesc, 0, %APSDAC_VO%
HKR, NDI\params\APSDAC_VO,              type,      0, "enum"
HKR, NDI\params\APSDAC_VO,              default,   0, "1"
HKR, NDI\params\APSDAC_VO\enum,         0,         0, %Disable%
HKR, NDI\params\APSDAC_VO\enum,         1,         0, %Enable%

;
; Aggressive Roaming
;
HKR, ,                           FstRoam,     0, "0"
HKR, NDI\params\FstRoam,         ParamDesc,          0, %Aggressive_Roaming_Condition%
HKR, NDI\params\FstRoam,         type,               0, "enum"
HKR, NDI\params\FstRoam,         default,            0, "Disabled"
HKR, NDI\params\FstRoam\enum,     0,                  0, %Disable%
HKR, NDI\params\FstRoam\enum,     1,                  0, %60dbm%
HKR, NDI\params\FstRoam\enum,     2,                  0, %70dbm%
HKR, NDI\params\FstRoam\enum,     3,                  0, %80dbm%
HKR, NDI\params\FstRoam\enum,     4,                  0, %90dbm%

[Customer1.reg]
; WPS Device Name
HKR, ,                            WPSDevName,      0, %WPS_DEVNAME_CUSTOMER1%
HKR, Default,                     WPSDevName,      0, %WPS_DEVNAME_CUSTOMER1%

[CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000, "RaCoInst.dll,ClassCoInstaller"

;*******************************************************************************************
; DestinationDirs
;*******************************************************************************************

[NT.CopyFiles]
rt61.sys,,,2

[CoInstaller.CopyFiles]
RaCoInst.dll,,,2

[SourceDisksNames]
1 = %INSTALL_DISK_STR%,,,

[SourceDisksFiles]
rt61.sys                = 1,,
RaCoInst.dll              = 1,,

[DestinationDirs]
NT.CopyFiles     = 12     ; system32\drivers subdirectory on NT
DefaultDestDir   = 11
CoInstaller.CopyFiles = 11

;*******************************************************************************************
; NT specific
;*******************************************************************************************
[RT61_OS61.reg]
HKR, Ndi,                   Service,            0, "RT61"
HKR, Ndi\Interfaces,        UpperRange,         0, "ndis5"
HKR, Ndi\Interfaces,        LowerRange,         0, "wlan,ethernet,vwifi"

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

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

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

;*******************************************************************************************
; Strings
;*******************************************************************************************
[Strings]
Provider                = "D-Link Corporation"

;*******************************************************************************************
; Device description
;*******************************************************************************************
G630.DeviceDesc      	= "D-Link AirPlus G DWL-G630 Wireless Cardbus Adapter(rev.E)"
G510.DeviceDesc      	= "D-Link AirPlus G DWL-G510 Wireless PCI Adapter(rev.C)"
G630B.DeviceDesc      	= "D-Link AirPlus G DWL-G630 Wireless Cardbus Adapter(rev.E)"
G510B.DeviceDesc      	= "D-Link AirPlus G DWL-G510 Wireless PCI Adapter(rev.C)"
DWA610.DeviceDesc      	= "D-Link Wireless G DWA-610 Notebook Adapter"
DWA510.DeviceDesc      	= "D-Link Wireless G DWA-510 Desktop Adapter"
G650A.DeviceDesc      	= "D-Link AirPlus G DWL-G650+A Wireless Cardbus Adapter(rev.E)"
G520A.DeviceDesc      	= "D-Link AirPlus G DWL-G520+A Wireless PCI Adapter(rev.C)"
G630M.DeviceDesc      	= "D-Link AirPlus G DWL-G630M Wireless Cardbus Adapter(rev.A)"
G510M.DeviceDesc      	= "D-Link AirPlus G DWL-G510M Wireless PCI Adapter(rev.A)"

INSTALL_DISK_STR           = "D-Link AirPlus G Installation Disk"
General.Service.DispName   = "D-Link RT61g Wireless Driver"
;
; Parameters
;
CountryRegion24G            = "Country Region 11G"
CountryRegion24G_0          = "#0 (Channel 1 - 11)"
CountryRegion24G_1          = "#1 (Channel 1 - 13)"
CountryRegion24G_2          = "#2 (Channel 10 - 11)"
CountryRegion24G_3          = "#3 (Channel 10 - 13)"
CountryRegion24G_4          = "#4 (Channel 14)"
CountryRegion24G_5          = "#5 (Channel 1 - 14)"
CountryRegion24G_6          = "#6 (Channel 3 - 9)"
CountryRegion24G_7          = "#7 (Channel 5 - 13)"
CountryRegion5G             = "Country Region 11A"
CountryRegion5G_0           = "#0 Ch(36 - 64,149 - 165)"
CountryRegion5G_1           = "#1 Ch(36 - 140)"
CountryRegion5G_2           = "#2 Ch(36 - 64)"
CountryRegion5G_3           = "#3 Ch(52 - 64,149 - 161)"
CountryRegion5G_4           = "#4 Ch(149 - 165)"
CountryRegion5G_5           = "#5 Ch(149 - 161)"
CountryRegion5G_6           = "#6 Ch(36 - 48)"
CountryRegion5G_7           = "#7 Ch(36 - 165)"
CountryRegion5G_8           = "#8 Ch(52 - 64)"
CountryRegion5G_9           = "#9 Ch(34 - 46)"
CountryRegion5G_10          = "#10 Ch(34 - 64)"
TXBurst                     = "TX Burst"
Disable                     = "Disable"
Enable                      = "Enable"
FrameAggregation            = "Frame Aggregation"
RadioOnOff                  = "Radio On/Off"
IEEE802_11h                 = "IEEE802.11h"
Auto                        = "Auto"
On                          = "On"
Off                         = "Off"
SmartScan                   = "SmartScan"
CarrierDetect               = "Carrier Detect"
CHANNEL                     = "1"
WPS_DEVNAME_DEF_STR         = "D-Link Client"
WMMCapable                  = "WMM Capable"
APSDCapable                 = "APSD Capable"
APSDAC_BE                   = "AC_BE support APSD"
APSDAC_BK                   = "AC_BK support APSD"
APSDAC_VI                   = "AC_VI support APSD"
APSDAC_VO                   = "AC_VO support APSD"
Aggressive_Roaming_Condition= "Aggressive Roaming Condition"
60dbm						= "-60dbm"
70dbm						= "-70dbm"
80dbm						= "-80dbm"
90dbm						= "-90dbm"