; 
;  Purpose:   Netcard setup information file for Windows Vista
;
;  Author:    Eric YJ Chen
; 
;  Date:      Feb, 2007
; 
;  Copyright: VIA Technologies, Inc.
;

[Version]
CatalogFile = vw6ux86v.cat
Signature   = "$WINDOWS NT$"
Class       = Net
ClassGUID   = {4d36e972-e325-11ce-bfc1-08002be10318}
Provider    = %Prov%
Compatible  = 1
DriverVer   = 02/15/2007, 1.15.0.17

[Manufacturer]
%Manuf%     = MANUF, NTX86

[ControlFlags]
ExcludeFromSelect = USB\VID_160A&PID_3184

[MANUF.NTX86]
%VT3184.DeviceDesc% = VT3184.ndi,   USB\VID_040D&PID_3184
%VT3184.DeviceDesc% = VT3184v2.ndi, USB\VID_160A&PID_3184

;-------------------------------------------------------------------------------
; ndi for 3184
;-------------------------------------------------------------------------------
[VT3184.ndi.NTX86]
Characteristics = 0x84
BusType         = 15
DelReg          = WETU.delreg, WETU.SW.delreg
AddReg          = VT3184.reg, WETU.reg, WETU.SW.NT
CopyFiles       = WETU.CopyFiles.NTX86, WETU.SW.CopyFiles.NTX86

*IfType            = 71 ; IF_TYPE_IEEE80211
*MediaType         = 16	; NdisMediumNative802_11
*PhysicalMediaType = 9  ; NdisPhysicalMediumNative802_11

[VT3184.ndi.NTX86.Services]
AddService      = "VNWUND6V", 2, WETU.Service, WETU.EventLog


;-------------------------------------------------------------------------------
; ndi for 3184v2
;-------------------------------------------------------------------------------
[VT3184v2.ndi.NTX86]
Characteristics = 0x84
BusType         = 15
DelReg          = WETU.delreg, WETU.SW.delreg
AddReg          = VT3184v2.reg, WETU.reg, WETU.SW.NT
CopyFiles       = WETU.CopyFiles.NTX86, WETU.SW.CopyFiles.NTX86

*IfType            = 71 ; IF_TYPE_IEEE80211
*MediaType         = 16	; NdisMediumNative802_11
*PhysicalMediaType = 9  ; NdisPhysicalMediumNative802_11

[VT3184v2.ndi.NTX86.Services]
AddService      = "VNWUND6V", 2, WETU.Service, WETU.EventLog

;-------------------------------------------------------------------------------
; VT3184 specific
;
[VT3184.reg]
HKR, Ndi, DeviceID, 0, "USB\VID_040D&PID_3184"

;-------------------------------------------------------------------------------
; VT3184v2 specific
;
[VT3184v2.reg]
HKR, Ndi, DeviceID, 0, "USB\VID_160A&PID_3184"

;-------------------------------------------------------------------------------
; common driver parameters
;
[WETU.reg]

HKR, Ndi\Interfaces, LowerRange, 0, "wlan,ethernet"
HKR, Ndi\Interfaces, UpperRange, 0, "ndis5"
HKR, Ndi,            Service,    0, "VNWUND6V"

; Persist RF state
HKR, ,                                  RadioOff,               0, "0"

HKR, ,                                  *ReceiveBuffers,        0, "128"
HKR, Ndi\params\*ReceiveBuffers,        ParamDesc,              0, %RXBuffer%
HKR, Ndi\params\*ReceiveBuffers,        default,                0, "128"
HKR, Ndi\params\*ReceiveBuffers,        type,                   0, "int"
HKR, Ndi\params\*ReceiveBuffers,        Min,                    0, "64"
HKR, Ndi\params\*ReceiveBuffers,        Max,                    0, "256"
HKR, Ndi\params\*ReceiveBuffers,        Step,                   0, "1"
HKR, Ndi\params\*ReceiveBuffers,        Base,                   0, "10"

HKR, ,                                  *TransmitBuffers,       0, "128"
HKR, Ndi\params\*TransmitBuffers,       ParamDesc,              0, %TXBuffer%
HKR, Ndi\params\*TransmitBuffers,       default,                0, "128"
HKR, Ndi\params\*TransmitBuffers,       type,                   0, "int"
HKR, Ndi\params\*TransmitBuffers,       Min,                    0, "64"
HKR, Ndi\params\*TransmitBuffers,       Max,                    0, "256"
HKR, Ndi\params\*TransmitBuffers,       Step,                   0, "1"
HKR, Ndi\params\*TransmitBuffers,       Base,                   0, "10"

; Connection Rate
HKR, ,                                  ConnectionRate,         0, "12"
HKR, Ndi\params\ConnectionRate,         ParamDesc,              0, %ConnectionRate%
HKR, Ndi\params\ConnectionRate,         default,                0, "12"
HKR, Ndi\params\ConnectionRate,         type,                   0, "enum"
HKR, Ndi\params\ConnectionRate\enum,    0,                      0, %1M%
HKR, Ndi\params\ConnectionRate\enum,    1,                      0, %2M%
HKR, Ndi\params\ConnectionRate\enum,    2,                      0, %5M%
HKR, Ndi\params\ConnectionRate\enum,    3,                      0, %11M%
HKR, Ndi\params\ConnectionRate\enum,    4,                      0, %6M%
HKR, Ndi\params\ConnectionRate\enum,    5,                      0, %9M%
HKR, Ndi\params\ConnectionRate\enum,    6,                      0, %12M%
HKR, Ndi\params\ConnectionRate\enum,    7,                      0, %18M%
HKR, Ndi\params\ConnectionRate\enum,    8,                      0, %24M%
HKR, Ndi\params\ConnectionRate\enum,    9,                      0, %36M%
HKR, Ndi\params\ConnectionRate\enum,    10,                     0, %48M%
HKR, Ndi\params\ConnectionRate\enum,    11,                     0, %54M%
HKR, Ndi\params\ConnectionRate\enum,    12,                     0, %autoR%

; Channel
HKR, ,                                  Channel,                0, "6"
HKR, Ndi\params\Channel,                ParamDesc,              0, %Channel%
HKR, Ndi\params\Channel,                default,                0, "6"
HKR, Ndi\params\Channel,                type,                   0, "int"
HKR, Ndi\params\Channel,                min,                    0, "1"
HKR, Ndi\params\Channel,                max,                    0, "56"
HKR, Ndi\params\Channel,                step,                   0, "1"
HKR, Ndi\params\*TransmitBuffers,       Base,                   0, "10"

; Preamble Type
HKR, ,                                  PreambleType,           0, "1"
HKR, Ndi\params\PreambleType,           ParamDesc,              0, %PreambleType%
HKR, Ndi\params\PreambleType,           default,                0, "1"
HKR, Ndi\params\PreambleType,           type,                   0, "enum"
HKR, Ndi\params\PreambleType\enum,      0,                      0, %Long%
HKR, Ndi\params\PreambleType\enum,      1,                      0, %Short%

; RTS Threshold
HKR, ,                                  RTSThreshold,           0, "2347"
HKR, Ndi\params\RTSThreshold,           ParamDesc,              0, %RTSThreshold%
HKR, Ndi\params\RTSThreshold,           default,                0, "2347"
HKR, Ndi\params\RTSThreshold,           type,                   0, "int"
HKR, Ndi\params\RTSThreshold,           Min,                    0, "256"
HKR, Ndi\params\RTSThreshold,           Max,                    0, "2347"
HKR, Ndi\params\RTSThreshold,           Step,                   0, "1"
HKR, Ndi\params\RTSThreshold,           Base,                   0, "10"

; Frag Threshold
HKR, ,                                  FragThreshold,          0, "2346"
HKR, Ndi\params\FragThreshold,          ParamDesc,              0, %FragThreshold%
HKR, Ndi\params\FragThreshold,          default,                0, "2346"
HKR, Ndi\params\FragThreshold,          type,                   0, "int"
HKR, Ndi\params\FragThreshold,          Min,                    0, "256"
HKR, Ndi\params\FragThreshold,          Max,                    0, "2346"
HKR, Ndi\params\FragThreshold,          Step,                   0, "1"
HKR, Ndi\params\FragThreshold,          Base,                   0, "10"

; Operation Mode
HKR, ,                                  OperationMode,          0, "0"
HKR, Ndi\params\OperationMode,          ParamDesc,              0, %OperationMode%
HKR, Ndi\params\OperationMode,          default,                0, "0"
HKR, Ndi\params\OperationMode,          type,                   0, "enum"
HKR, Ndi\params\OperationMode\enum,     0,                      0, "Infrastructure"
HKR, Ndi\params\OperationMode\enum,     1,                      0, "Ad-Hoc"

; Beacon Interval
HKR, ,                                  BeaconInterval,         0, "100"
HKR, Ndi\params\BeaconInterval,         ParamDesc,              0, %BeaconInterval%
HKR, Ndi\params\BeaconInterval,         default,                0, "100"
HKR, Ndi\params\BeaconInterval,         type,                   0, "int"
HKR, Ndi\params\BeaconInterval,         Min,                    0, "1"
HKR, Ndi\params\BeaconInterval,         Max,                    0, "1000"
HKR, Ndi\params\BeaconInterval,         Step,                   0, "1"
HKR, Ndi\params\BeaconInterval,         Base,                   0, "10"

; Radio Control
HKR, ,                                  RadioControl,           0, "0"
HKR, Ndi\params\RadioControl,           ParamDesc,              0, %RadioControl%
HKR, Ndi\params\RadioControl,           default,                0, "0"
HKR, Ndi\params\RadioControl,           type,                   0, "enum"
HKR, Ndi\params\RadioControl\enum,      0,                      0, "On"
HKR, Ndi\params\RadioControl\enum,      1,                      0, "Off"

; Antenna Diversity
HKR, ,                                  AntennaDiversity,       0, "0"
HKR, Ndi\params\AntennaDiversity,       ParamDesc,              0, %AntennaDiversity%
HKR, Ndi\params\AntennaDiversity,       default,                0, "0"
HKR, Ndi\params\AntennaDiversity,       type,                   0, "enum"
HKR, Ndi\params\AntennaDiversity\enum,  0,                      0, "Disable"
HKR, Ndi\params\AntennaDiversity\enum,  1,                      0, "Enable"

; User defined Network Address
HKR, ,                                  NetworkAddress,         0, ""
HKR, Ndi\params\NetworkAddress,         ParamDesc,              0, %NetAddress%
HKR, Ndi\params\NetworkAddress,         Default,                0, ""
HKR, Ndi\params\NetworkAddress,         type,                   0, "edit"
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,         Base,                   0, "16"

; DesiredSSID
HKR, ,                                  DesiredSSID,            0, ""
HKR, NDI\params\DesiredSSID,            ParamDesc,              0, %DesiredSSID%
HKR, NDI\params\DesiredSSID,            default,                0, ""
HKR, NDI\params\DesiredSSID,            type,                   0, "edit"
HKR, NDI\params\DesiredSSID,            LimitText,              0, "32"
HKR, NDI\params\DesiredSSID,            optional,               0, "1"

;-------------------------------------------------------------------------------
; 32-bit uninstaller
[WETU.SW.NT]
HKLM, Software\Microsoft\Windows\CurrentVersion\Uninstall\VN_VUIns_WETU_VIA, DisplayName, 0, %VT3184.DeviceDesc%
HKLM, Software\Microsoft\Windows\CurrentVersion\Uninstall\VN_VUIns_WETU_VIA, UninstallString, 0, "Rundll32.exe vuins32.dll,vuins32Ex $WETU $VIA"
HKLM, Software\VN_VUIns\WETU\VIA\DeviceIdList, 3184, 0, "0"

;-------------------------------------------------------------------------------
; Installation for NT
;
[WETU.CopyFiles.NTX86]
VW6UX86V.SYS,,,2

[WETU.SW.CopyFiles.NTX86]
vuins32.dll,,,2
difxapi.dll,,,2

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

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

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

;-------------------------------------------------------------------------------
; DestinationDirs
;
[DestinationDirs]
DefaultDestDir          = 11
WETU.CopyFiles.NTX86    = 12
WETU.SW.CopyFiles.NTX86 = 11

[SourceDisksNames]
1 = %DiskName%,,

[SourceDisksFiles]
VW6UX86V.sys = 1,,
vuins32.dll  = 1,,
difxapi.dll  = 1,,

;-------------------------------------------------------------------------------
; Uninstall/DelFiles/DelReg
;
[WETU.delreg]
HKR,Ndi\Params

[WETU.SW.delreg]
HKLM, Software\Microsoft\Windows\CurrentVersion\Uninstall\VN_VUIns_WETU_VIA
HKLM, Software\VN_VUIns\WETU\VIA

;-------------------------------------------------------------------------------
; Localizable Strings
;
[Strings]
Prov                = "VIA"
DiskName            = "VIA USB Wireless LAN source disk"
ConnectionRate      = "Connection Rate"
Channel             = "IBSS Channel"
autoR               = "Auto-Rate"
1M                  = "  1Mbps"
2M                  = "  2Mbps"
5M                  = "5.5Mbps"
11M                 = " 11Mbps"
6M                  = "  6Mbps"
9M                  = "  9Mbps"
12M                 = " 12Mbps"
18M                 = " 18Mbps"
24M                 = " 24Mbps"
36M                 = " 36Mbps"
48M                 = " 48Mbps"
54M                 = " 54Mbps"
PreambleType        = "Preamble Type"
Long                = "Long"
Short               = "Short"
Disabled            = "Disabled"
Enabled             = "Enabled"
TXBuffer            = "Transmit Buffers"
RXBuffer            = "Receive Buffers"
NetAddress          = "Network Address"
HwDefault           = "Hardware Default"
OperationMode       = "Operation Mode"
DesiredSSID         = "Desired SSID"
802_11_Mode         = "802.11 Mode"
BeaconInterval      = "IBSS Beacon Interval"
RTSThreshold        = "RTS Threshold"
FragThreshold       = "Fragment Threshold"
RadioControl        = "RadioControl"
AntennaDiversity    = "Antenna Diversity"

Manuf                 = "VIA Technologies, Inc."
VT3184.DeviceDesc     = "VIA Technologies USB Wireless LAN Adapter"
WETU.Service.DispName = "VIA Technologies USB Wireless LAN Adapter Driver"
