; 
; WG201.INF
;
; Win2k installation file for WG201 WLAN+GPRS Adapter
;
; Copyright (c) 2001, 2002, All Rights Reserved, Hua Wei Incorporated
;

[Version]
Signature 	= "$Windows NT$"
Compatible	= 1
Provider  	= %INFProvider%
Class     	= Net
ClassGUID	= {4d36e972-e325-11ce-bfc1-08002be10318}
;CatalogFile.NT	= TIACXLN.cat		; for WHQL certified (Windows 2000/XP)
LayoutFile  	= layout.inf
DriverVer	= 09/05/2003,1.0.1.1

[Manufacturer]
%Manufacturer% = TexasInstruments

; pnp cards should be excluded from select
[ControlFlags]
ExcludeFromSelect = PCI\VEN_104C&DEV_8400&SUBSYS_940316AB

[TexasInstruments]
;DisplayName	     Section	    	Hardware ID
;-----------------   ----------------  -------------------------------------
%TIACX.DeviceDesc% = TIACX100_PCI.ndi, PCI\VEN_104C&DEV_8400&SUBSYS_940316AB

;***********************************************************************************************
;<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>
; Microsoft Windows NT 5.x
;<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>
[TIACX100_PCI.ndi.NT]
AddReg          = TIACX_NT.ndi.reg, TIACX_PCI.ndi.reg, TI.Param.Reg, TIACX_PCI.UninstallNT.reg
BusType         = 5
Characteristics = 0x84
; no copy files for install shield. The manual installation needs copyfiles option.
CopyFiles       = TIACX.inf.CopyFilesNT, TIACX.8400.CopyFilesNT
;DelReg 		= TIACX_PCI.UninstallNT.reg,TIACX_PCI.UninstallNT.remove.reg
;DelFiles 	= TIACX.8400.CopyFilesNT,TIACX.inf.DelFiles

[TIACX100_PCI.ndi.NT.Services]
AddService = %Service%, 2, TIACXLN.Service, TIACXLN.EventLog

;***********************************************************************************************
;<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>
; Microsoft Windows NT 5.x
;<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>
[TIACX_NT.ndi.reg]
; key,subkey,		valuname,	type,value
;-----------    	---------       -----------
HKR, Ndi,               Service,    	0, %Service%
HKR, Ndi\Interfaces,    UpperRange, 	0, "ndis5"
HKR, Ndi\Interfaces,    LowerRange, 	0, "ethernet"
HKR,, 			VendorDesc, 	0, %VendorDesc%

;***********************************************************************************************
[TIACX_PCI.ndi.reg]
HKR,NDI,		DeviceID, 	0, %TIACX_PCI_PNP%

;***********************************************************************************************
; Common sections
[TI.Param.Reg]
; Inf Path
HKR,,						InfPath,			0,%INFName%
; PermAddress
HKR,,						PermAddress,			0, 112233
; HardwareID
HKR,,						HardwareID,			0,%HardwareID%
; Desired channel
HKR,,						dot11DesiredChannel, 		0, 6
; Tx/Rx descriptors
HKR,,						NumACXRxDescriptors, 		0, 32
HKR,,						NumACXTxDescriptors, 		0, 32
; LEAP User password
HKR,,						LeapUserPassword, 		0, ""

HKR,,						DriverDescription, 		0,%DriverDesc%
HKR,,						DriverDesc, 			0,%DriverDesc%

HKR,NDI\params\DualModule,			ParamDesc,			0, "DualModule"
HKR,NDI\params\DualModule,			type,				0, "edit"
HKR,NDI\Params\DualModule, 			LimitText, 			0, "1"
HKR,NDI\params\DualModule,			default,			0, "1"

HKR,NDI\Params\dot11DesiredModule, 		ParamDesc, 			0, "dot11DesiredModule"
HKR,NDI\Params\dot11DesiredModule, 		Type, 				0, "edit"
HKR,NDI\Params\dot11DesiredModule, 		LimitText, 			0, "1"
HKR,NDI\Params\dot11DesiredModule, 		Default,			0, "1"

HKR,NDI\params\dot11DesiredBSSType,		ParamDesc,			0, "Desired BSS Type"
HKR,NDI\params\dot11DesiredBSSType,		type,				0, "enum"
HKR,NDI\params\dot11DesiredBSSType,		default,			0, "1"
HKR,NDI\params\dot11DesiredBSSType\enum,	"0",				0, "802.11 Add-hoc"
HKR,NDI\params\dot11DesiredBSSType\enum,	"1",				0, "Infrastructure"
HKR,NDI\params\dot11DesiredBSSType\enum,	"3",				0, "High Speed Add-hoc"

HKR,NDI\Params\dot11DesiredSSID, 		ParamDesc, 			0, "Desired SSID"
HKR,NDI\Params\dot11DesiredSSID, 		Type, 				0, "edit"
HKR,NDI\Params\dot11DesiredSSID, 		LimitText, 			0, "32"
HKR,NDI\Params\dot11DesiredSSID, 		Default,			0,%Default_SSID%
HKR,NDI\Params\dot11DesiredSSID, 		UpperCase,			0, "0"

HKR,NDI\params\dot11PowerMode,			ParamDesc,			0, "Power Mode"
HKR,NDI\params\dot11PowerMode,			type,				0, "enum"
HKR,NDI\params\dot11PowerMode,			default,			0, "0"
HKR,NDI\params\dot11PowerMode\enum,		"0",				0, "Continuous Access Mode"
HKR,NDI\params\dot11PowerMode\enum,		"1",				0, "Maximum Power Save"
HKR,NDI\params\dot11PowerMode\enum,		"2",				0, "Fast Power Save"

; Desired Tx Rate 
HKR,NDI\params\dot11DesiredTxRate,		ParamDesc,			0, "Desired Tx Rate"
HKR,NDI\params\dot11DesiredTxRate,		type,				0, "enum"
HKR,NDI\params\dot11DesiredTxRate,		default,			0, "0"
HKR,NDI\params\dot11DesiredTxRate\enum,		"0",				0, "Auto"
HKR,NDI\params\dot11DesiredTxRate\enum,		"1",				0, "1 Mbps"
HKR,NDI\params\dot11DesiredTxRate\enum,		"2",				0, "2 Mbps"
HKR,NDI\params\dot11DesiredTxRate\enum,		"3",				0, "5.5 Mbps"
HKR,NDI\params\dot11DesiredTxRate\enum,		"4",				0, "5.5 Mbps PBCC"
HKR,NDI\params\dot11DesiredTxRate\enum,		"5",				0, "11 Mbps"
HKR,NDI\params\dot11DesiredTxRate\enum,		"6",				0, "11 Mbps PBCC"
HKR,NDI\params\dot11DesiredTxRate\enum,		"7",				0, "22 Mbps PBCC"

; Desired supported Rate Set 
HKR,NDI\params\dot11SupportedRateMask,		ParamDesc,			0, "Desired Supported Rate Set"
HKR,NDI\params\dot11SupportedRateMask,		type,				0, "enum"
HKR,NDI\params\dot11SupportedRateMask,		default,			0, "2"
HKR,NDI\params\dot11SupportedRateMask\enum,	"0",				0, "1,2 Mbps"
HKR,NDI\params\dot11SupportedRateMask\enum,	"1",				0, "1,2,5.5,11 Mbps"
HKR,NDI\params\dot11SupportedRateMask\enum,	"2",				0, "1,2,5.5,11,22 Mbps"

; Desired Basic Rate Set 
HKR,NDI\params\dot11BasicRateMask,		ParamDesc,			0, "Desired Basic Rate Set"
HKR,NDI\params\dot11BasicRateMask,		type,				0, "enum"
HKR,NDI\params\dot11BasicRateMask,		default,			0, "1"
HKR,NDI\params\dot11BasicRateMask\enum,		"0",				0, "1,2,5.5,11 Mbps"
HKR,NDI\params\dot11BasicRateMask\enum,		"1",				0, "1,2 Mbps"

; Fragmentation Threshold 
HKR,Ndi\Params\dot11FragmentationThreshold, 	ParamDesc,			0, "Fragmentation Threshold"
HKR,Ndi\Params\dot11FragmentationThreshold, 	Type,				0, "int"
HKR,Ndi\Params\dot11FragmentationThreshold, 	Default,			0, "2346"
HKR,Ndi\Params\dot11FragmentationThreshold, 	Min, 				0, "256"
HKR,Ndi\Params\dot11FragmentationThreshold, 	Max, 				0, "2346"
HKR,Ndi\Params\dot11FragmentationThreshold, 	Step, 				0, "1"
HKR,Ndi\Params\dot11FragmentationThreshold, 	Base, 				0, "10"

; RTS Threshold 
HKR,Ndi\Params\dot11RTSThreshold, 		ParamDesc, 			0,"RTS Threshold"
HKR,Ndi\Params\dot11RTSThreshold, 		Type, 				0, "int"
HKR,Ndi\Params\dot11RTSThreshold,		Default, 			0, "2347"
HKR,Ndi\Params\dot11RTSThreshold, 		Min, 				0, "0"
HKR,Ndi\Params\dot11RTSThreshold, 		Max, 				0, "2347"
HKR,Ndi\Params\dot11RTSThreshold, 		Step, 				0, "1"
HKR,Ndi\Params\dot11RTSThreshold, 		Base, 				0, "10"

HKR,NDI\params\dot11WEPStatus,			ParamDesc,			0, "WEP Option"
HKR,NDI\params\dot11WEPStatus,			type,				0, "enum"
HKR,NDI\params\dot11WEPStatus,			default,			0, "1"
HKR,NDI\params\dot11WEPStatus\enum,		"0",				0, "WEP Enabled"
HKR,NDI\params\dot11WEPStatus\enum,		"1",				0, "WEP Disabled"

HKR,NDI\params\dot11AuthMode,			ParamDesc,			0, "Authentication Mode"
HKR,NDI\params\dot11AuthMode,			type,				0, "enum"
HKR,NDI\params\dot11AuthMode,			default,			0, "2"
HKR,NDI\params\dot11AuthMode\enum,		"0",				0, "Open Authentication"
HKR,NDI\params\dot11AuthMode\enum,		"1",				0, "Shared Authentication"
HKR,NDI\params\dot11AuthMode\enum,		"2",				0, "Auto Switch"

HKR,NDI\params\dot11ShortPreambleInvoked,	ParamDesc,			0, "Short Preamble"
HKR,NDI\params\dot11ShortPreambleInvoked,	type,				0, "enum"
HKR,NDI\params\dot11ShortPreambleInvoked,	default,			0, "0"
HKR,NDI\params\dot11ShortPreambleInvoked\enum,	"0",				0, "Off"
HKR,NDI\params\dot11ShortPreambleInvoked\enum,	"1",				0, "On"

HKR,NDI\params\ELPSupport,			ParamDesc,			0, "ELP Support"
HKR,NDI\params\ELPSupport,			type,				0, "enum"
HKR,NDI\params\ELPSupport,			default,			0, "0"
HKR,NDI\params\ELPSupport\enum,			"1",				0, "Enabled"
HKR,NDI\params\ELPSupport\enum,			"0",				0, "Disabled"

HKR,Ndi\Params\LeapUserName, 			ParamDesc, 			0, "LeapUserName"
HKR,Ndi\Params\LeapUserName, 			Type, 				0, "edit"
HKR,Ndi\Params\LeapUserName, 			LimitText, 			0, "32"
HKR,Ndi\Params\LeapUserName, 			Default,			0, "tiwlan"
HKR,Ndi\Params\LeapUserName, 			UpperCase,			0, "0"

HKR,NDI\params\LeapEnabled,			ParamDesc,			0, "LeapEnabled"
HKR,NDI\params\LeapEnabled,			type,				0, "enum"
HKR,NDI\params\LeapEnabled,			default,			0, "0"
HKR,NDI\params\LeapEnabled\enum,		"1",				0, "Enabled"
HKR,NDI\params\LeapEnabled\enum,		"0",				0, "Disabled"

HKR,Ndi\Params\RadioStartup, 			ParamDesc, 			0, "RadioStartup"
HKR,Ndi\Params\RadioStartup, 			Type, 				0, "edit"
HKR,Ndi\Params\RadioStartup, 			Default,			0, "1"

;***********************************************************************************************
;<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>
; Microsoft Windows NT 5.x only
;<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>
[TIACXLN.Service]
DisplayName     = %TIACXLN.Service.DispName%
ServiceType     = 1 			;%SERVICE_KERNEL_DRIVER%
StartType       = 3 			;%SERVICE_DEMAND_START%
ErrorControl    = 1 			;%SERVICE_ERROR_NORMAL%
ServiceBinary   = %12%\%DriverFileName%	;
LoadOrderGroup  = NDIS

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

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

;***********************************************************************************************
;<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>
; Microsoft Windows NT 5.x
;<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>
; Copy related Driver & INF files
[TIACX.8400.CopyFilesNT]
WG201.sys,,,2
TIACXGEN.bin,,,2
TIACXRMX.bin,,,2
TIACXRFM.bin,,,2
TIACXSN.bin,,,2
TIACXMX.bin,,,2
TIACXLN.cat,,,2

[TIACX.inf.CopyFilesNT]
WG201.inf,,,2

[TIACX.inf.DelFiles]
WG201.inf
WG201.pnf

;***********************************************************************************************
[DestinationDirs]
TIACX.8400.CopyFilesNT		= 12	; system32\drivers subdirectory on Win NT 5.x
TIACX.inf.CopyFilesNT		= 17	; INF subfolder
TIACX.inf.DelFiles		= 17	; INF subfolder

;***********************************************************************************************
[SourceDisksNames]
1 = %DiskName%,,

;***********************************************************************************************
[SourceDisksFiles]
WG201.inf	= 1
WG201.sys  	= 1
TIACXGEN.bin 	= 1
TIACXRMX.bin 	= 1
TIACXRFM.bin 	= 1
TIACXSN.bin 	= 1
TIACXMX.bin 	= 1
TIACXLN.cat	= 1

;***********************************************************************************************
[TIACX_PCI.UninstallNT]
DelReg 		= TIACX_PCI.UninstallNT.reg,TIACX_PCI.UninstallNT.remove.reg
DelFiles 	= TIACX.8400.CopyFilesNT,TIACX.inf.DelFiles

;***********************************************************************************************
[TIACX_PCI.UninstallNT.reg]
HKLM,"SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}\Descriptions",%DriverDesc%,"1"

[TIACX_PCI.UninstallNT.remove.reg]
HKLM,"SYSTEM\CurrentControlSet\Services\Eventlog\System\"%Service%
HKLM,"SYSTEM\CurrentControlSet\Services\"%Service%

;***********************************************************************************************
[Strings]
INFProvider			= "Hua Wei"
Manufacturer			= "Hua Wei"
Service 			= "WG201"
TIACX.DeviceDesc 		= "WG201 WLAN+GPRS Adapter"
RemoveDesc			= "WG201 WLAN+GPRS Adapter Driver"
TIACX_PCI_PNP			= "PCI\VEN_104C&DEV_8400&SUBSYS_940316AB&REV_00"
DriverFileName			= "WG201.sys"
VendorDesc			= "WG201 WLAN+GPRS Adapter"
HardwareID			= "WG201"
LogDriverName			= "WG201"
DriverDesc			= "WG201 WLAN+GPRS Adapter"
TIACXLN.Service.DispName  	= "WG201 WLAN+GPRS Adapter Service"
Default_SSID			= "CMCC"
InterfaceType			= "PCI"
INFName				= "WG201.inf"
DiskName			= "WG201 WLAN+GPRS Adapter Driver Installation Disk"
WLANAdapterHelpText		= "A WLAN Adapter provides high speed connection to the Internet through 802.11b technology"