;****************************************************************************************
;
; NETR28.INF
;
;   This installation script supports Windows Vista, Win7 for the
;   Ralink RT2860 series Wireless LAN Card.
;
;   Copyright (C) 2002-2009 Ralink Technology Corporation. All Rights Reserved.
;   Developed by RaLink Technology, Corp. -- http://www.ralinktech.com
;
;****************************************************************************************

[Version]
	Signature			= "$Windows NT$"
	Class				= Net
	ClassGUID			= {4d36e972-e325-11ce-bfc1-08002be10318}
	Provider			= %BUFFALO%
	CatalogFile			= cbg300n2.cat
	CatalogFile.NTamd64	= cbg300n2x.cat
	DriverVer			= 08/04/2009,3.00.03.0000

[ControlFlags]
	ExcludeFromSelect = *

[Manufacturer]
	%BUFFALO%       = BUFFALO, NTx86.6.1, NTamd64.6.1


[BUFFALO.NTamd64.6.1]
;    DisplayName               Section      DeviceID
;    -----------               -------      --------
	%WLI2CBG300N.DeviceDesc% = BUFFALO.ndi, PCI\VEN_1814&DEV_0601&SUBSYS_03591154
	%WLICBG300HP.DeviceDesc% = BUFFALO.ndi, PCI\VEN_1814&DEV_0601&SUBSYS_03641154

[BUFFALO.NTx86.6.1]
;    DisplayName               Section      DeviceID
;    -----------               -------      --------
	%WLI2CBG300N.DeviceDesc% = BUFFALO.ndi, PCI\VEN_1814&DEV_0601&SUBSYS_03591154
	%WLICBG300HP.DeviceDesc% = BUFFALO.ndi, PCI\VEN_1814&DEV_0601&SUBSYS_03641154

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

[BUFFALO.ndi.NTamd64]
	Include                 = netvwifibus.inf
	Needs                   = VWiFiBus.CopyFiles
	AddReg                  = BUFFALO_NT61.ndi.NT.reg, RT2860.reg, DefaultBand.reg, SmartScan.reg, AdhocNMode.reg
	Characteristics         = 0x84                      ; NCF_REMOVABLE | NCF_HAS_UI | NCF_PHYSICAL
	BusType                 = 5
	CopyFiles               = NT.CopyFiles.NTamd64
	*IfType                 = 71                        ; IF_TYPE_IEEE80211
	*MediaType              = 16                        ; NdisMediumNative802_11
	*PhysicalMediaType      = 9                         ; NdisPhysicalMediumNative802_11

[BUFFALO.ndi.NTamd64.Services]
	Include                 = netvwifibus.inf
	Needs                   = VWiFiBus.Services
	AddService              = cbg300n2, 2, Generic.Service.NTamd64, common.EventLog

[BUFFALO.ndi.NTamd64.HW]
	Include                 = netvwifibus.inf
	Needs                   = VWiFiBus.PnPFilterRegistration
	AddReg                  = MSI.Reg

[BUFFALO.ndi.NT]
	Include                 = netvwifibus.inf
	Needs                   = VWiFiBus.CopyFiles
	AddReg                  = BUFFALO_NT61.ndi.NT.reg, RT2860.reg, DefaultBand.reg, SmartScan.reg, AdhocNMode.reg
	Characteristics         = 0x84                      ; NCF_REMOVABLE | NCF_HAS_UI | NCF_PHYSICAL
	BusType                 = 5
	CopyFiles               = NT.CopyFiles.NTx86
	*IfType                 = 71                        ; IF_TYPE_IEEE80211
	*MediaType              = 16                        ; NdisMediumNative802_11
	*PhysicalMediaType      = 9                         ; NdisPhysicalMediumNative802_11

[BUFFALO.ndi.NT.Services]
	Include                 = netvwifibus.inf
	Needs                   = VWiFiBus.Services
	AddService              = cbg300n2, 2, Generic.Service.NTx86, common.EventLog

[BUFFALO.ndi.NT.HW]
	Include                 = netvwifibus.inf
	Needs                   = VWiFiBus.PnPFilterRegistration
	AddReg                  = MSI.Reg


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

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

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

[MSI.Reg]
	HKR, "Interrupt Management\MessageSignaledInterruptProperties", MSISupported, 0x00010001, 1

[Generic.Service.NTamd64]
	DisplayName                 = %WLI2CBG300N.Service.DispName%
	ServiceType                 = 1                             ;%SERVICE_KERNEL_DRIVER%
	StartType                   = 3                             ;%SERVICE_AUTO_START%
	ErrorControl                = 1                             ;%SERVICE_ERROR_NORMAL%
	ServiceBinary               = %12%\cbg300n2x.sys
	LoadOrderGroup              = NDIS

[Generic.Service.NTx86]
	DisplayName                 = %WLI2CBG300N.Service.DispName%
	ServiceType                 = 1                             ;%SERVICE_KERNEL_DRIVER%
	StartType                   = 3                             ;%SERVICE_AUTO_START%
	ErrorControl                = 1                             ;%SERVICE_ERROR_NORMAL%
	ServiceBinary               = %12%\cbg300n2.sys
	LoadOrderGroup              = NDIS

;*******************************************************************************************
; DestinationDirs
;*******************************************************************************************
[SourceDisksNames]
	1 = %INSTALL_DISK_STR%

[NT.CopyFiles.NTamd64]
	cbg300n2x.sys,,,2

[NT.CopyFiles.NTx86]
	cbg300n2.sys,,,2

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

[SourceDisksFiles.amd64]
	cbg300n2x.sys=1

[SourceDisksFiles.x86]
	cbg300n2.sys=1

[SourceDisksFiles]
	cbg300n2.sys=1


;*******************************************************************************************
; Registry for both Vista & Win7
;*******************************************************************************************
[RT2860.reg]
	;
	; WirelessMode
	;
	HKR, ,                            WirelessMode,    0, "5"

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

	;
	; 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%

	;
	; WMMCapable
	;
	HKR, ,                            WMMCapable,      0, "1"

	;
	; FrameAggregation
	;
	HKR, ,                            FrameAggregation,0, "0"

	;
	; 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"
	
	;
	; OpMode
	;
	HKR, ,                            OpMode,          0, "0"

	;
	; Enable TX Burst
	;
	HKR, ,                            TXBurst,         0, "1"

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

	;
	; Block ACK settings
	;
	HKR, ,                            BACapability,      0x10001, "0x07034040"
	HKR, Default,                     BACapability,      0x10001, "0x07034040"

	;
	; Transmit Rate setting
	;
	HKR, ,                            TransmitSetting,      0x10001, "0x2B215"
	HKR, Default,                     TransmitSetting,      0x10001, "0x2B215"

	;
	; RDG
	;
	HKR, ,                            RDG,             0, "1"

	;
	; Network Type
	;
	HKR, ,                            NetworkType,     0, "1"
	HKR, Default,                     NetworkType,     0, "1"

	;
	; Disable 5GHz adhoc mode
	;
	HKR, ,                            Adhoc5GDisable,       0, "0"

	;
	; SmartScan
	;
	HKR, ,                            SmartScan,       0, "0"
	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%

	;
	; Power Saving Mode
	;
	HKR, ,                            PSMode,          0, "0"
	HKR, Default,                     PSMode,          0, "0"
	HKR, NDI\params\PSMode,           ParamDesc,       0, %PSMode%
	HKR, NDI\params\PSMode,           type,            0, "enum"
	HKR, NDI\params\PSMode,           default,         0, "0"
	HKR, NDI\params\PSMode\enum,      0,               0, %CAM%
	HKR, NDI\params\PSMode\enum,      1,               0, %MAXPSP%

	;
	; Power Save control
	;
	HKR, ,                            PSControl,     0x00010001, 0x00000000

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

	;
	; Link Speed Status
	;
	HKR, ,                            LinkSpeedStatus, 0, "0"

;*******************************************************************************************
;Seperate Settings
[DefaultBand.reg]
	;
	; 2.4G Band
	;
	HKR, ,                                 CountryRegion,      0, "0"
	HKR, NDI\params\CountryRegion,         ParamDesc,          0, %CountryRegion24G%
	HKR, NDI\params\CountryRegion,         type,               0, "enum"
	HKR, NDI\params\CountryRegion,         default,            0, "0"
	HKR, NDI\params\CountryRegion\enum,    0,                  0, %CountryRegion24G_0%
	HKR, NDI\params\CountryRegion\enum,    1,                  0, %CountryRegion24G_1%
	HKR, NDI\params\CountryRegion\enum,    2,                  0, %CountryRegion24G_2%
	HKR, NDI\params\CountryRegion\enum,    3,                  0, %CountryRegion24G_3%
	HKR, NDI\params\CountryRegion\enum,    4,                  0, %CountryRegion24G_4%
	HKR, NDI\params\CountryRegion\enum,    5,                  0, %CountryRegion24G_5%
	HKR, NDI\params\CountryRegion\enum,    6,                  0, %CountryRegion24G_6%
	HKR, NDI\params\CountryRegion\enum,    7,                  0, %CountryRegion24G_7%

; SmartScan
[SmartScan.reg]
	HKR, ,                SmartScan,          0, "1"

[AdhocNMode.reg]
	;
	; AdhocNMode
	;
	HKR, ,                            AdhocNMode,      0, "0"
	HKR, NDI\params\AdhocNMode,       ParamDesc,       0, %AdhocNMode%
	HKR, NDI\params\AdhocNMode,       type,            0, "enum"
	HKR, NDI\params\AdhocNMode,       default,         0, "0"
	HKR, NDI\params\AdhocNMode\enum,  0,               0, %Disable%
	HKR, NDI\params\AdhocNMode\enum,  1,               0, %Enable%

;*******************************************************************************************
; Strings
;*******************************************************************************************
[Strings]
BUFFALO                     = "BUFFALO INC."

;*******************************************************************************************
; Device description
;*******************************************************************************************
WLI2CBG300N.DeviceDesc      = "BUFFALO WLI2-CB-G300N Wireless LAN Adapter"
WLICBG300HP.DeviceDesc      = "BUFFALO WLI-CB-G300HP Wireless LAN Adapter"

INSTALL_DISK_STR             = "AirNavigator CD"

WLI2CBG300N.Service.DispName = "BUFFALO WLI2-CB-G300N Wireless LAN Driver"

;
; Parameters
;
RadioOnOff                  = "Radio On/Off"
Disable                     = "Disable"
Enable                      = "Enable"
CountryRegion24G            = "Country Region (2.4GHz)"
CountryRegion24G_0          = "#0 (1 - 11)"
CountryRegion24G_1          = "#1 (1 - 13)"
CountryRegion24G_2          = "#2 (10 - 11)"
CountryRegion24G_3          = "#3 (10 - 13)"
CountryRegion24G_4          = "#4 (14)"
CountryRegion24G_5          = "#5 (1 - 14)"
CountryRegion24G_6          = "#6 (3 - 9)"
CountryRegion24G_7          = "#7 (5 - 13)"
IEEE802_11h                 = "IEEE802.11h"
SmartScan                   = "Multimedia/Gaming Environment"
PSMode                      = "Power Saving Mode"
CAM                         = "CAM"
MAXPSP                      = "Max_PSP"
AdhocNMode                  = "Adhoc support 802.11n"

CHANNEL                     = "1"

