;; Dnetrtwlanu.inf 
;;
;; DLink Wireless 802.11b/g/n USB 2.0 Network Adapter
;;
;; Copyright (C) 2012 DLink Corp.
;;
;; This release is primarily for WHQL test.
;;

;; FOR XP/Vista/Win7/Win8

[Version]
Signature		= "$Windows NT$"
Class			= Net
ClassGUID		= {4d36e972-e325-11ce-bfc1-08002be10318}
Provider		= %DLink%
CatalogFile.NT	= Dnetrtwlanu.cat		;; for WHQL certified
DriverVer = 07/30/2014,1026.13.0625.2014

[Manufacturer]
%DLink% = DLink,NTx86

[ControlFlags]
ExcludeFromSelect = *

[DLink.NTx86]
;; For 8192EU DLink common		================================================================
%DLink_131E.DeviceDesc% 			= RTL8192eu.ndi, 	USB\VID_2001&PID_3319


;;----------------------------------------------------------------------------
;; Realtek 8192E default installation
;;----------------------------------------------------------------------------
[RTL8192eu.ndi.NT]
AddReg				= NDIS_51.reg, UsbCommon.reg, RTLWLAN.reg, Ndis5UsbRxAgg_Jaguar.reg, 11nWirelessMode.reg, RtlSsOff.reg, TxByTimerOff.reg, Ndis5Set.reg, TimerGPIOSettingCommon.reg, RTL8192EU_COMMON.reg, TcpReorderDisable.reg, WifiConfig.reg
Characteristics		= 0x84
BusType				= 15 
CopyFiles			= RTWlanU.CopyFiles

[RTL8192eu.ndi.NT.Services]
AddService			= RtlWlanu, 2, RtlWlanu.Service, RtlWlanu.EventLog

;;----------------------------------------------------------------------------
;; 8192EU WLAN NIC parameters
;;----------------------------------------------------------------------------
[RTL8192EU_COMMON.reg]
HKR,defaults,UsbTxAggDescNum,0,"15"
HKR,,UsbTxAggDescNum,0,"15"
HKR,,DisableBTCoexist,0,"1"
HKR,,WoWLANMode, 0, "0"

HKR,,LdpcCap,0,"0"
HKR,,StbcCap,0,"48"
HKR,,BeamformCap,0,"48"

HKR,,bEarlymodeEnable,0,"0"

;;
;; OS relative registry.
;;
[NDIS_51.reg]
HKR, Ndi\Interfaces,	UpperRange, 0, "ndis5"
HKR, Ndi\Interfaces,	LowerRange, 0, "ethernet"
HKR, Ndi,				Service,    0, "RtlWlanu"

;*******************************************************************************
; USB common paramters
;*******************************************************************************
[UsbCommon.reg]
HKR,defaults,LedCtrl,0,"1"
HKR,,LedCtrl,0,"1"

HKR,defaults,QoS,0,"1"
HKR,,QoS,0,"1"

HKR,defaults,CcxRm,0,"1"
HKR,,CcxRm,0,"1"

HKR,defaults,CcxOffLineDurUpLimit,0,"0"
HKR,,CcxOffLineDurUpLimit,0,"0"

;; For PDN mode switch.
HKR,,PDNMode,0,"0"

;; For PDN mode switch.
HKR,,DongleSS,0,"1"

;; For Different selective suspend power save level. Now support 1 and 2. 2 is better.
HKR,,SSPwrLvl,0,"2"


;; For Different AC mode Rx parameters.
HKR,,AcUsbDmaTime,0,"10"
HKR,,AcUsbDmaSize,0,"5"
HKR,,AcUsbDmaTime2,0,"32"
HKR,,AcUsbDmaSize2,0,"5"

;; For IO mode switch.
HKR,,NByteAccess,0,"2"

;; For Init mode
HKR,,FWOffload,0,"2"


;-------------------------------------------------------------------------------
;	USB Tx/Rx aggregation
;-------------------------------------------------------------------------------
HKR,defaults,UsbRxAggBlockCount,0,"8"
HKR,,UsbRxAggBlockCount,0,"8"

HKR,defaults,UsbRxAggBlockTimeout,0,"6"
HKR,,UsbRxAggBlockTimeout,0,"6"

HKR,defaults,UsbRxAggPageTimeout,0,"6"
HKR,,UsbRxAggPageTimeout,0,"6"

HKR,defaults,UsbTxAggMode,0,"1"
HKR,,UsbTxAggMode,0,"1"

HKR,defaults,UsbTxAggDescNum,0,"6"
HKR,,UsbTxAggDescNum,0,"6"

;;----------------------------------------------------------------------------
;; Realtek WLAN NIC parameters
;;----------------------------------------------------------------------------
[RTLWLAN.reg]
HKR,defaults,Channel,0,"1"
HKR,,Channel,0,"1"

HKR,defaults,StaUapsd,0,"0"
HKR,,StaUapsd,0,"0"

;;Tx power limit
HKR,,EnableTxPowerLimit,0,"0"

;; For QoS test, 1: WiFi Config and 0: Performance Config
HKR,Ndi\params\QoS,        ParamDesc,  0, "QoS Support"
HKR,Ndi\params\QoS,        type,       0, "enum"
HKR,Ndi\params\QoS,        default,    0, "0"
HKR,Ndi\params\QoS\enum,   "0",        0, "Not Support QoS"
HKR,Ndi\params\QoS\enum,   "1",        0, "Support QoS"
HKR,Ndi\params\QoS\enum,   "2",        0, "Auto"
HKR,defaults,QoS,0,"1"
HKR,,QoS,0,"1"
HKR,,QoS,,"1"


HKR,defaults,RxReorder,0,"1"
HKR,,RxReorder,0,"1"

HKR,,DefaultKeyID,,"0"
HKR,,DefaultKey0,,""
HKR,,DefaultKey1,,""
HKR,,DefaultKey2,,""
HKR,,DefaultKey3,,""

;Leisure Power Save
HKR,defaults,bLeisurePs,0,"0"
HKR,,bLeisurePs,0,"0"

;Fw Control LPS
HKR,defaults,bFwCtrlLPS,0,"1"
HKR,,bFwCtrlLPS,0,"1"

;; LPS Interval
HKR,,LPSIntvl,0,"5"

;BTmode
HKR,,bBTMode,0,"1"

; Reset Tx Hang
HKR,defaults,USBResetTxHang,0,"1"
HKR,,USBResetTxHang,0,"1"

HKR,,WEPinNmode,0,"0"

; OS protocol offload detection and decision
HKR,,ProtocolOffloadDecision,0,"1"

; Win8 FSS mode detection mechanism
HKR,,FSSDetection,0,"1"

;-------------------------------------------------------------------------------
;	Some function ability setting
;-------------------------------------------------------------------------------
HKR,defaults,UPDMEnable,0,"1"
HKR,,UPDMEnable,0,"1"

HKR,defaults,LinkSpeedLevel,0,"0"
HKR,,LinkSpeedLevel,0,"0"

HKR,defaults,AutoConnect,0,"1"
HKR,,AutoConnect,0,"1"

HKR,defaults,RWRetry,0,"0"
HKR,,RWRetry,0,"0"

HKR,defaults,MultiMode,0,"1"
HKR,,MultiMode,0,"1"

HKR,defaults,TxMode,0,"0"
HKR,,TxMode,0,"0"

HKR,defaults,PwrTblSel,0,"0"
HKR,,PwrTblSel,0,"0"
HKR,defaults,PwrByRate,0,"0"
HKR,,PwrByRate,0,"0"
HKR,defaults,PwrRaTbl1,0,"0"
HKR,,PwrRaTbl1,0,"0"
HKR,defaults,PwrRaTbl2,0,"0"
HKR,,PwrRaTbl2,0,"0"
HKR,defaults,PwrRaTbl3,0,"0"
HKR,,PwrRaTbl3,0,"0"
HKR,defaults,PwrRaTbl4,0,"0"
HKR,,PwrRaTbl4,0,"0"
HKR,defaults,PwrRaTbl5,0,"0"
HKR,,PwrRaTbl5,0,"0"
HKR,defaults,PwrRaTbl6,0,"0"
HKR,,PwrRaTbl6,0,"0"
HKR,defaults,PwrRaTbl7,0,"0"
HKR,,PwrRaTbl7,0,"0"
HKR,defaults,PwrRaTbl8,0,"0"
HKR,,PwrRaTbl8,0,"0"
HKR,defaults,PwrRaTbl9,0,"0"
HKR,,PwrRaTbl9,0,"0"
HKR,defaults,PwrRaTbl10,0,"0"
HKR,,PwrRaTbl10,0,"0"
HKR,defaults,PwrRaTbl11,0,"0"
HKR,,PwrRaTbl11,0,"0"
HKR,defaults,PwrRaTbl12,0,"0"
HKR,,PwrRaTbl12,0,"0"
HKR,defaults,PwrRaTbl13,0,"0"
HKR,,PwrRaTbl13,0,"0"
HKR,defaults,PwrRaTbl14,0,"0"
HKR,,PwrRaTbl14,0,"0"
HKR,defaults,PwrRaTbl15,0,"0"
HKR,,PwrRaTbl15,0,"0"
HKR,defaults,PwrRaTbl16,0,"0"
HKR,,PwrRaTbl16,0,"0"

HKR,defaults,GainOffsetFCCLow,0,"0"
HKR,,GainOffsetFCCLow,0,"0"
HKR,defaults,GainOffsetFCC,0,"0"
HKR,,GainOffsetFCC,0,"0"
HKR,defaults,GainOffsetFCCHigh,0,"0"
HKR,,GainOffsetFCCHigh,0,"0"

HKR,defaults,GainOffsetMKKLow,0,"0"
HKR,,GainOffsetMKKLow,0,"0"
HKR,defaults,GainOffsetMKK,0,"0"
HKR,,GainOffsetMKK,0,"0"
HKR,defaults,GainOffsetMKKHigh,0,"0"
HKR,,GainOffsetMKKHigh,0,"0"

HKR,defaults,GainOffsetETSILow,0,"0"
HKR,,GainOffsetETSILow,0,"0"
HKR,defaults,GainOffsetETSI,0,"0"
HKR,,GainOffsetETSI,0,"0"
HKR,defaults,GainOffsetETSIHigh,0,"0"
HKR,,GainOffsetETSIHigh,0,"0"

HKR,defaults,RxSC,0,"0"
HKR,,RxSC,0,"0"

HKR,defaults,TxSC,0,"0"
HKR,,TxSC,0,"0"

;Dynamic batch indication
HKR,defaults,DynamicBatchEnable,0,"1"
HKR,,DynamicBatchEnable,0,"1"

HKR,defaults,BINumber,0,"10"
HKR,,BINumber,0,"10"

HKR,Ndi\params\EnableAdaptivity, 		ParamDesc, 	0, "EnableAdaptivity"
HKR,Ndi\params\EnableAdaptivity, 		type, 		0, "enum"
HKR,Ndi\params\EnableAdaptivity, 		default, 	0, "0"
HKR,Ndi\params\EnableAdaptivity\enum, 	"0", 		0, "Disable"
HKR,Ndi\params\EnableAdaptivity\enum, 	"1", 		0, "Enable"
HKR,defaults,EnableAdaptivity, 0, "0"
HKR,,EnableAdaptivity, 0, "0"

;-------------------------------------------------------------------------------
;	USB Tx/Rx aggregation OS Relative
;-------------------------------------------------------------------------------
[Ndis5UsbRxAgg_Jaguar.reg]
HKR,defaults,UsbRxAggMode,0,"0"
HKR,,UsbRxAggMode,0,"0"
HKR,defaults,UsbRxAggPageCount,0,"72"
HKR,,UsbRxAggPageCount,0,"72"

;;----------------------------------------------------------------------------
;; Wireless Mode Related Parameters
;;----------------------------------------------------------------------------
[11nWirelessMode.reg]
HKR,Ndi\params\WirelessMode, 		ParamDesc, 	0, %WL_MODE_STR%
HKR,Ndi\params\WirelessMode, 		type, 		0, "enum"
HKR,Ndi\params\WirelessMode, 		default, 	0, "8"
HKR,Ndi\params\WirelessMode\enum, 	"2", 		0, %IEEE_802_11B_STR%
HKR,Ndi\params\WirelessMode\enum, 	"4", 		0, %IEEE_802_11BG_STR%
HKR,Ndi\params\WirelessMode\enum, 	"8", 		0, %IEEE_802_11BGN_STR%
HKR,defaults,WirelessMode, 0, "8"
HKR,,WirelessMode, 0, "8"

;; 40MHz Support in 11n
HKR,Ndi\params\BWSetting,        ParamDesc,  0, "Bandwidth"
HKR,Ndi\params\BWSetting,        type,       0, "enum"
HKR,Ndi\params\BWSetting,        default,    0, "1"
HKR,Ndi\params\BWSetting\enum,   "0",        0, "20MHz Only"
HKR,Ndi\params\BWSetting\enum,   "1",        0, "20_40MHz"
HKR,,BWSetting,0,"1"

HKR,,Channel,0,"10"

;-------------------------------------------------------------------------------
;	USB selective suspend.
;-------------------------------------------------------------------------------
[RtlSsOff.reg]
HKR,,EnableUsbSS,0,"0"

;-------------------------------------------------------------------------------
;	TX path selection.
;-------------------------------------------------------------------------------
[TxByTimerOff.reg]
HKR,,SendPacketByTimer,0,"0"

[Ndis5Set.reg]
HKR,Ndi\params\PSPXlinkMode,			ParamDesc,  0, %PSP_XLINK_STR%
HKR,Ndi\params\PSPXlinkMode,			type,       0, "enum"
HKR,Ndi\params\PSPXlinkMode,			default,    0, "0"
HKR,Ndi\params\PSPXlinkMode\enum,		"0",        0, %DISABLE_STR%
HKR,Ndi\params\PSPXlinkMode\enum,		"1",        0, %ENABLE_STR%
HKR,defaults,PSPXlinkMode,0,"0"
HKR,,PSPXlinkMode,0,"0"

; Hw Beacon Max Error
HKR,,bBcnMaxErrorRegEnable,0,"0"

;Inactive Power Save
HKR,defaults,InactivePs,0,"0"
HKR,,InactivePs,0,"0"

HKR,defaults,AggDMEnable,0,"0"
HKR,,AggDMEnable,0,"0"

;-------------------------------------------------------------------------------
;     Timer GPIO.
;-------------------------------------------------------------------------------
[TimerGPIOSettingCommon.reg]
;; For GPIO detect setting.
HKR,,TimerGPIO,0,"0"
HKR,,GPIODelay,0,"2000"
HKR,,GPIOBack,0,"2000"

;;----------------------------------------------------------------------------
;; TCP Reorder Control Parameters
;;----------------------------------------------------------------------------
[TcpReorderDisable.reg]
HKR,,TcpReorder,0,"0"

;*****************************************************************************
; For Wifi config
;*****************************************************************************
[WifiConfig.reg]
;; For WiFi test, 1: WiFi Config and 0: Performance Config
HKR,Ndi\params\WiFiConfg,        ParamDesc,  0, "WiFi Config"
HKR,Ndi\params\WiFiConfg,        type,       0, "enum"
HKR,Ndi\params\WiFiConfg,        default,    0, "0"
HKR,Ndi\params\WiFiConfg\enum,   "0",        0, "Performance"
HKR,Ndi\params\WiFiConfg\enum,   "1",        0, "WiFi"
HKR,defaults,WiFiConfg,0,"0"
HKR,,WiFiConfg,0,"0"
HKR,,WiFiConfg,,"0"

;;
;; OS relative service.
;;
[RtlWlanu.Service]
DisplayName    	= %RtlWlanu.DeviceDesc.DispName%
ServiceType    	= 1		; %SERVICE_KERNEL_DRIVER%
StartType      	= 3		; %SERRVICE_DEMAND_START%
ErrorControl   	= 1		; %SERRVICE_ERROR_NORMAL%
ServiceBinary  	= %12%\DRTWlanU_XP.sys
LoadOrderGroup 	= NDIS

;;
;; OS relative event log.
;;
[RtlWlanu.EventLog]
AddReg 			= RtlWlanu.AddEventLog.reg

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

;*******************************************************************************
; Destination Directory
;*******************************************************************************
[RTWlanU.CopyFiles]
DRTWlanU_XP.sys,,,2

[DestinationDirs]
DefaultDestDir     	= 11
RTWlanU.CopyFiles	= 12
CoInstaller.CopyFiles = 11

;;****************************************************************************
;; Source Files
;;****************************************************************************
[SourceDisksFiles]
DRTWlanU_XP.sys = 1
rtlCoInst.dll = 1
rtlCoInst.dat = 1

[SourceDisksNames]
1=%DISKNAME%,,,

[CoInstaller.AddReg]
HKR,,CoInstallers32,0x10000,"rtlCoInst.DLL,rtlCoInst"

[CoInstaller.CopyFiles]
rtlCoInst.dll,,,0x04
rtlCoInst.dat,,,0x04

;*******************************************************************************
; Strings
;*******************************************************************************
[Strings]
WL_MODE_STR					= "Wireless Mode"
IEEE_802_11B_STR 			= "IEEE 802.11b"
IEEE_802_11BG_STR 			= "IEEE 802.11b/g"
IEEE_802_11BGN_STR 			= "IEEE 802.11b/g/n"
PSP_XLINK_STR				= "PSP XLink Mode"
DISABLE_STR					= "Disable"
ENABLE_STR					= "Enable"

;*******************************************************************************
;	Source disk name
;*******************************************************************************
DISKNAME							= "Realtek Wireless LAN 802.11n USB 2.0 Network Adapter Driver Disk"
RtlWlanu.DeviceDesc.DispName		= "Realtek Wireless LAN 802.11n USB 2.0 Network Adapter"

;*******************************************************************************
; manufacture description
;*******************************************************************************
DLink					= "D-Link Corporation"

;*******************************************************************************
; RTL8192E Device description
;*******************************************************************************
DLink_131E.DeviceDesc					= "D-Link DWA-131 Wireless N Nano USB Adapter(rev.E)"
DLink_131E.DeviceDesc.DispName			= "D-Link DWA-131 Wireless N Nano USB Adapter(rev.E)"