;****************************************************************************************
;
; net2g3n.inf
;
;   This installation script supports Windows 98,Me,2000 & XP for the
;   Ralink RT2860 series Wireless LAN Card.
;
;   Copyright (c)2002-2007, Ralink Technology Corp., All Rights Reserved
;   All Rights Reserved.
;   Developed by RaLink Technology, Corp. -- http://www.ralinktech.com
;
;****************************************************************************************

[Version]
Signature       = "$Chicago$"
Class           = Net
ClassGUID       = {4d36e972-e325-11ce-bfc1-08002be10318}
Provider        = %BUFFALO%
Compatible      = 1
DriverVer       = 11/03/2008, 1.02.01.0000
CatalogFile     = cbg300n2.cat

[ControlFlags]
;ExcludeFromSelect = PCI\VEN_1814&DEV_0601

[Manufacturer]
%BUFFALO%       = BUFFALO

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

;*******************************************************************************************
; Windows 9X specific entries
;*******************************************************************************************

[RALINK_0601.ndi]
AddReg                  = PCI0601.ndi.reg, RT28609X.ndi.reg, Common.reg
CopyFiles               = win9x.CopyFiles

;*******************************************************************************************
; NT specific entries
;*******************************************************************************************

[RALINK_0601.ndi.NT]
AddReg                  = Common.reg, RT80x86.ndi.NT.reg
Characteristics         = 0x84                      ; NCF_REMOVABLE | NCF_HAS_UI | NCF_PHYSICAL
BusType                 = 5
CopyFiles               = NT.CopyFiles

; NT services sections
[RALINK_0601.ndi.NT.Services]
AddService              = cbg300n2, 2, Generic.Service, common.EventLog

;*******************************************************************************************
; common regs for NT and W9x
;*******************************************************************************************

[Common.reg]
;*******************************************************************************************
; System Level Property

;
; Current Profile
;
HKR, ,                    CurProfile,      0,""
HKR, Default,             CurProfile,      0,""

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

;
; Auto Reconnect Mode
;
HKR, ,                                  AutoReconnect,      0, "1"

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

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

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

;*******************************************************************************************
; Advance Page

;
; OpMode
;
HKR, ,                            OpMode,          0, "0"

;
; WirelessMode
;
HKR, ,                            WirelessMode,    0, "5"


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

;
; Enable TGnWifiTest Mode
;
HKR, ,                            TGnWifiTest,         0, "0"

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

;
; Use Turbo rate
;
HKR, ,                            TurboRate,       0, "0"

;
; Use Ofdm rate in adhoc mode
;
HKR, ,                            AdhocOfdm,       0, "0"
HKR, NDI\params\AdhocOfdm,              ParamDesc, 0, "Adhoc Wireless Mode"
HKR, NDI\params\AdhocOfdm,              type,      0, "enum"
HKR, NDI\params\AdhocOfdm,              default,   0, "0"
HKR, NDI\params\AdhocOfdm\enum,         0,         0, "802.11 B Only"
HKR, NDI\params\AdhocOfdm\enum,         1,         0, "802.11 B/G Mix"

;
; Use BG Protection
;
HKR, ,                            BGProtection,    0, "0"

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

;
; AutoChannelSelect
;
HKR, ,                            AutoChannelSelect,      0, "0"

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

;
; APSDCapable
;
HKR, ,                            APSDCapable,     0, "0"

;
; APSDAC_BE
;
HKR, ,                            APSDAC_BE,       0, "0"

;
; APSDAC_BK
;
HKR, ,                            APSDAC_BK,       0, "0"

;
; APSDAC_VI
;
HKR, ,                            APSDAC_VI,       0, "0"

;
; APSDAC_VO
;
HKR, ,                            APSDAC_VO,       0, "0"

;
; MaxSPLength
;
HKR, ,                            MaxSPLength,     0, "0"
HKR, Default,                     MaxSPLength,     0, "0"

;
; DLSCapable
;
HKR, ,                            DLSCapable,      0, "0"

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

;
; 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, "1"
HKR, NDI\params\SmartScan\enum,         0,         0, %Disable%
HKR, NDI\params\SmartScan\enum,         1,         0, %Enable%

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

;
; AllowBW40InBGBand
;
HKR, ,                            AllowBW40InBGBand,      0, "1"

;
; PSP XLink mode
;
HKR, ,                            PSPXlink,        0, "0"
HKR, NDI\params\PSPXlink,         ParamDesc,       0, %PSPXlink%
HKR, NDI\params\PSPXlink,         type,            0, "enum"
HKR, NDI\params\PSPXlink,         default,         0, "0"
HKR, NDI\params\PSPXlink\enum,    0,               0, %Disable%
HKR, NDI\params\PSPXlink\enum,    1,               0, %Enable%

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

;
; Initialize Delay
;
HKR, ,                            InitDelay,     0x00010001, 0x00080000

;
; Power Saving Control
;
HKR, ,                            PSControl,       0x00010001, 0x00000000

;
; Vendor Description
;
HKR, ,                            VendorDesc,      0, %VENDOR_DESC_DEF_STR%
HKR, Default,                     VendorDesc,      0, %VENDOR_DESC_DEF_STR%

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

;*******************************************************************************************
; Profile

;
; SSID
;
;HKR, ,                            SSID,            0, %SSID_DEF_STR%
;HKR, Default,                     SSID,            0, %SSID_DEF_STR%
;HKR, NDI\params\SSID,             ParamDesc,       0, "SSID"
;HKR, NDI\params\SSID,             type,            0, "edit"
;HKR, NDI\params\SSID,             limitText,       0, "32"
;HKR, NDI\params\SSID,             default,         0, %SSID_DEF_STR%

;
; Network Type
;
HKR, ,                            NetworkType,     0, %NETWORK_TYPE_DEF_STR%
HKR, Default,                     NetworkType,     0, %NETWORK_TYPE_DEF_STR%

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


;*******************************************************************************************
; System Configuration Page

;
; Local Administration MAC Network Address
;
;HKR, ,                            NetworkAddress,  0, ""
;HKR, Default,                     NetworkAddress,  0, ""
;HKR, NDI\params\NetworkAddress,   ParamDesc,       0, "Local Administration MAC Network Address"
;HKR, NDI\params\NetworkAddress,   type,            0, "edit"
;HKR, NDI\params\NetworkAddress,   limitText,       0, "12"
;HKR, NDI\params\NetworkAddress,   default,         0, ""

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

;
; CAM when AC Power
;
HKR, ,                            ACPowerCam,      0, "0"
HKR, Default,                     ACPowerCam,      0, "0"

;
; Preamble Type
;
HKR, ,                            PreambleType,    0, "0"
HKR, Default,                     PreambleType,    0, "0"

;
; RTS Threshold
;
HKR, ,                            RTSThresh,       0, "2347"
HKR, Default,                     RTSThresh,       0, "2347"

;
; Fragment Threshold
;
HKR, ,                            FragThresh,      0, "2346"
HKR, Default,                     FragThresh,      0, "2346"

;*******************************************************************************************
; Authentication & Security Page

;
; Authentication Type
;
HKR, ,                AuthenType,      0, "0" ; Open System
HKR, Default,         AuthenType,      0, "0"

;
; Encryption
;
HKR, ,                Encryption,      0, "1" ; Disable
HKR, Default,         Encryption,      0, "1"

;
; WEP Keys Length
;
HKR, ,                WEPKeyLen,       0, "0"
HKR, Default,         WEPKeyLen,       0, "0"

;
; WEP Key to use
;
HKR, ,                WEPKeyUse,       0,"1"
HKR, Default,         WEPKeyUse,       0,"1"

;
; WEP Key1
;
HKR, ,                WEPKey1,         0,""
HKR, Default,         WEPKey1,         0,""

;
; WEP Key2
;
HKR, ,                WEPKey2,         0,""
HKR, Default,         WEPKey2,         0,""

;
; WEP Key3
;
HKR, ,                WEPKey3,         0,""
HKR, Default,         WEPKey3,         0,""

;
; WEP Key4
;
HKR, ,                WEPKey4,         0,""
HKR, Default,         WEPKey4,         0,""

[PCI0601.ndi.reg]
HKR, Ndi,                         DeviceID,         0, "PCI\VEN_1814&DEV_0601"

[RT28609X.ndi.reg]
HKR, ,                            NTMPDriver,       0, cbg300n2.sys

HKR, ,                            BusType,          0, 5
HKR, NDI,                         CardType,         0, "PCI"

HKR, ,                            RunningWin9X,     0, "1"
HKR, ,                            DevLoader,        0, "*ndis"
HKR, ,                            DeviceVxDs,       0, "cbg300n2.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, "cbg300n2"
HKR, NDIS,                        MajorNdisVersion, 1, 03
HKR, NDIS,                        MinorNdisVersion, 1, 0A

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

[DestinationDirs]
NT.CopyFiles            = 12    ; system32\drivers subdirectory on NT
XP.CopyFiles            = 12    ; system32\drivers subdirectory on Windows XP
win9x.CopyFiles         = 11    ; system subdirectory on win9x

[NT.CopyFiles]
cbg300n2.sys                        ; NT Installation

[XP.CopyFiles]
cbg300n2.sys

[win9x.CopyFiles]
cbg300n2.sys                      ; Win9x Installation

[SourceDisksNames]
1                       = %INSTALL_DISK_STR%,,,

[SourceDisksFiles] 
cbg300n2.sys              = 1
cbg300n2.sys              = 1

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

[Generic.Service]
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


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

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

;*******************************************************************************************
; Strings
;*******************************************************************************************
[Strings]
BUFFALO                     = "BUFFALO INC."
RadioOnOff                  = "Radio On/Off"
Disable                     = "Disable"
Enable                      = "Enable"
IEEE802_11h                 = "IEEE802.11h"
SmartScan                   = "Multimedia/Gaming Environment"
PSPXlink                    = "PSP Xlink Mode"
LocalNetworkAddress         = "Local MAC Network Address"
PSMode                      = "Power Saving Mode"
CAM                         = "CAM"
MAXPSP                      = "Max_PSP"
AdhocNMode                  = "Adhoc support 802.11n"

;*******************************************************************************************
; 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"

; Don't put spaces around=sign otherwise installer will not be able to
; find these lines.
SSID_DEF_STR                = ""
VENDOR_DESC_DEF_STR         = "IEEE 802.11n Wireless Card."
NETWORK_TYPE_DEF_STR        = "1"
CHANNEL                     = "1"
WPS_DEVNAME_DEF_STR         = "Ralink Client"

