; /****************************************************************************
; ** DEVELOPED BY AIC **
; ****************************************************************************/
[Version]
Signature   = "$Windows NT$"
Class       = Net
ClassGUID   = {4d36e972-e325-11ce-bfc1-08002be10318}
Provider    = "Tenda"
CatalogFile = aicusbwifi.cat
DriverVer = 10/11/2024,20.55.41.134
PnpLockdown = 1

[Manufacturer]
%AIC%     = AIC, NTamd64

[ControlFlags]
ExcludeFromSelect = *

[AIC.NTamd64]
; DisplayName                   Section         DeviceID
; -----------                   -------         --------
;%AIC.DeviceDesc_88dc%         = aic.ndi,        USB\VID_A69C&PID_88DC&MI_02
;%AIC.DeviceDesc_8d18%         = aic.ndi,        USB\VID_A69C&PID_8d81&MI_02
%AIC.DeviceDesc_88dc%         = aic.ndi,        USB\VID_A69C&PID_88DC
%AIC.DeviceDesc_88dc%         = aic.ndi,        USB\VID_A69C&PID_88DD
%AIC.DeviceDesc_88de%         = aic.ndi,        USB\VID_A69C&PID_88DE
%AIC.DeviceDesc_88dc%         = aic.ndi,        USB\VID_368B&PID_88DF
%AIC.DeviceDesc_2604%         = aic.ndi,        USB\VID_2604&PID_0013
%AIC.DeviceDesc_2604%         = aic.ndi,        USB\VID_2604&PID_0014
%AIC.DeviceDesc_cus%          = aic.ndi,        USB\VID_2604&PID_0015
%AIC.DeviceDesc_cus%          = aic.ndi,        USB\VID_2604&PID_0016
%AIC.DeviceDesc_cus%          = aic.ndi,        USB\VID_2604&PID_0017
%AIC.DeviceDesc_cus%          = aic.ndi,        USB\VID_2604&PID_0018
%AIC.DeviceDesc_cus%          = aic.ndi,        USB\VID_2604&PID_0019
%AIC.DeviceDesc_cus%          = aic.ndi,        USB\VID_2604&PID_001A
%AIC.DeviceDesc_cus%          = aic.ndi,        USB\VID_2604&PID_001B
%AIC.DeviceDesc_cus%          = aic.ndi,        USB\VID_2604&PID_001C
%AIC.DeviceDesc_cus%          = aic.ndi,        USB\VID_2604&PID_001D
%AIC.DeviceDesc_cus%          = aic.ndi,        USB\VID_2604&PID_001E
%AIC.DeviceDesc_2357%         = aic.ndi,        USB\VID_2357&PID_0147
%AIC.DeviceDesc_2C4E%         = aic.ndi,        USB\VID_2C4E&PID_0114
%AIC.DeviceDesc_3625%         = aic.ndi,        USB\VID_3625&PID_0110

[aic.ndi.NTamd64]
Include=netvwifibus.inf
Needs=VWiFiBus.CopyFiles
Characteristics = 0x84
BusType         = 15
AddReg          = aic.reg
CopyFiles       = aic.CopyFiles
*IfType         = 71            ; IF_TYPE_IEEE80211
*MediaType      = 16            ; NdisMediumNative802_11
*PhysicalMediaType = 9          ; NdisPhysicalMediumNative802_11

[aic.ndi.NTamd64.Services]
Include=netvwifibus.inf
Needs=VWiFiBus.Services
AddService = aicusbwifi, 2, aic.Service, aic.EventLog

[aic.ndi.NTamd64.HW]
Include=netvwifibus.inf
Needs=VWiFiBus.PnPFilterRegistration.HW

[aic.reg]
HKR, Ndi,                         Service,    0, "aicusbwifi"

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

HKR, Ndi\params\*ReceiveBuffers,  ParamDesc,  0, "%ReceiveBuffers%"
HKR, Ndi\params\*ReceiveBuffers,  default,    0, "160"
HKR, Ndi\params\*ReceiveBuffers,  min,        0, "1"
HKR, Ndi\params\*ReceiveBuffers,  max,        0, "00000512"
HKR, Ndi\params\*ReceiveBuffers,  step,       0, "1"
HKR, Ndi\params\*ReceiveBuffers,  Base,       0, "10"
HKR, Ndi\params\*ReceiveBuffers,  type,       0, "int"

HKR, Ndi\params\*TransmitBuffers, ParamDesc,  0, "%TransmitBuffers%"
HKR, Ndi\params\*TransmitBuffers, default,    0, "160"
HKR, Ndi\params\*TransmitBuffers, min,        0, "1"
HKR, Ndi\params\*TransmitBuffers, max,        0, "00000512"
HKR, Ndi\params\*TransmitBuffers, step,       0, "1"
HKR, Ndi\params\*TransmitBuffers, Base,       0, "10"
HKR, Ndi\params\*TransmitBuffers, type,       0, "int"

HKR, Ndi\Params\IEEE11abgMode,                   ParamDesc,   0, %11A_B_G_MODE%
HKR, Ndi\Params\IEEE11abgMode,                   Type,        0, "enum"
HKR, Ndi\Params\IEEE11abgMode,                   Default,     0, "2"
HKR, Ndi\Params\IEEE11abgMode,                   Optional,    0, "0"
HKR, Ndi\Params\IEEE11abgMode\enum,              "0",         0, %N_AC_AX_DISABLED_STR%
HKR, Ndi\Params\IEEE11abgMode\enum,              "1",         0, %AC_AX_DISABLED_STR%
HKR, Ndi\Params\IEEE11abgMode\enum,              "2",         0, %N_AC_AX_ENABLED_STR%

HKR, Ndi\Params\HeTxMcsMap,                   ParamDesc,   0, %HeTxMcsMap%
HKR, Ndi\Params\HeTxMcsMap,                   Type,        0, "enum"
HKR, Ndi\Params\HeTxMcsMap,                   Default,     0, "2"
HKR, Ndi\Params\HeTxMcsMap\enum,              "1",         0, %HeTxMcsSupport9%
HKR, Ndi\Params\HeTxMcsMap\enum,              "2",         0, %HeTxMcsSupport11%

HKR, Ndi\Params\CountryCode,                   ParamDesc,   0, %CountryCode%
HKR, Ndi\Params\CountryCode,                   Type,        0, "enum"
HKR, Ndi\Params\CountryCode,                   Default,     0, "2"
HKR, Ndi\Params\CountryCode\enum,              "1",         0, %CountryCodeGlobal%
HKR, Ndi\Params\CountryCode\enum,              "2",         0, %CountryCodeLocal%

HKR, Ndi\Params\TxAdaptivityEn,                   ParamDesc,   0, %TxAdaptivityEn%
HKR, Ndi\Params\TxAdaptivityEn,                   Type,        0, "enum"
HKR, Ndi\Params\TxAdaptivityEn,                   Default,     0, "0"
HKR, Ndi\Params\TxAdaptivityEn,                   Optional,    0, "0"
HKR, Ndi\Params\TxAdaptivityEn\enum,              "0",         0, %TxAdaptivityDisabLe%
HKR, Ndi\Params\TxAdaptivityEn\enum,              "1",         0, %TxAdaptivityENabLe%

[aic.Service]
DisplayName     = %AIC.Service.DispName%
ServiceType     = 1             ;SERVICE_KERNEL_DRIVER
StartType       = 3             ;SERVICE_DEMAND_START
ErrorControl    = 1             ;SERVICE_ERROR_NORMAL
ServiceBinary   = %12%\aicusbwifi.sys
LoadOrderGroup  = NDIS

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

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

[aic.CopyFiles]
aicusbwifi.sys,,,2

[SourceDisksNames]
1 = %DiskDescription%,aicusbwifi.sys,,

[SourceDisksFiles]
aicusbwifi.sys = 1
;


[DestinationDirs]
;aic.CopyFiles          = 12
;DefaultDestDirs            = 11
DefaultDestDir            = 12
CoInstaller_CopyFiles	   = 11

;-------------- WDF Coinstaller installation

[aic.ndi.NTAMD64.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[CoInstaller_CopyFiles]
;


;[SourceDisksFiles]
;aicusbwifi.sys = 1
;WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll=1,, ; make sure the number matches with SourceDisksNames

[CoInstaller_AddReg]
;


[aic.ndi.NTAMD64.Wdf]
KmdfService = aicusbwifi, aic_wdfsect

[aic_wdfsect]
KmdfLibraryVersion = 1.15

;---------------------------------------------------------------;

[Strings]
Msft                         = "Microsoft"
AIC 					     = "Tenda"
AIC.DeviceDesc_8800          = "AIC USB WiFi"
AIC.DeviceDesc_88dc          = "AIC88DC USB WiFi"
AIC.DeviceDesc_88de          = "Ugreen USB WiFi"
AIC.DeviceDesc_8d18          = "AIC8800D80 USB WiFi"
AIC.DeviceDesc_2604          = "Tenda Wireless USB Adapter"
AIC.DeviceDesc_cus           = "Wireless LAN WIFI 6 USB Adapter"
AIC.DeviceDesc_2357          = "TP-LINK Wireless N Adapter"
AIC.DeviceDesc_2C4E          = "MERCUSYS Wireless USB Adapter"
AIC.DeviceDesc_3625          = "TP-Link Wireless USB Adapter"
AIC.Service.DispName         = "AIC 802.11 Wireless Device Driver"
DiskDescription              = "AIC USB WiFi Driver"
TransmitBuffers              = "Transmit Buffers"
ReceiveBuffers               = "Receive Buffers"
11A_B_G_MODE                 = "802.11 Wireless Mode"
N_AC_AX_DISABLED_STR         = "2.4GHz 802.11b/g"
AC_AX_DISABLED_STR           = "2.4GHz 802.11b/g/n"
N_AC_AX_ENABLED_STR          = "2.4GHz 802.11b/g/n/ax"
HeTxMcsMap                   = "He Tx Msc Map"
HeTxMcsSupport9              = "He Tx Msc9"
HeTxMcsSupport11             = "He Tx Msc11"
CountryCode                  = "Country Code"
CountryCodeGlobal            = "global"
CountryCodeLocal             = "local"
TxAdaptivityEn               = "Aic Tx Adaptivity"
TxAdaptivityDisabLe          = "Disable Tx Adaptivity"
TxAdaptivityEnabLe           = "Enable Tx Adaptivity"
OtaKey                       = "da681918c11078801e432552b70bd4a95fad9b6d"

