;; DLink RTLWLANE PCI-E Wireless LAN Network Interface Cards.
;;
;; Copyright 2014, DLink Corporation
;;

[version]
Signature   	= "$Windows NT$"
Class       	= Net
ClassGUID   	= {4d36e972-e325-11ce-bfc1-08002be10318}
Provider    	= %DLink%
CatalogFile 	= Dnetrtwlane63x.cat                               ;; for WHQL certified
DriverVer 		= 08/15/2014,2013.4.0715.2014

[Manufacturer]
%DLink% = DLink,NTamd64.6.3

[ControlFlags]
ExcludeFromSelect = *

[DLink.NTamd64.6.3]

;;*******************************************************************************
;; RTK COMMON DEVICE DESC
;;*******************************************************************************
;;----------------------------------------------------------------------------
;; For 8812A RTK common
;;----------------------------------------------------------------------------

%DLINK8812e.DeviceDesc%		= RTL8812ae.ndi,		PCI\VEN_10EC&DEV_8812&SUBSYS_33051186

;;----------------------------------------------------------------------------
;; Realtek default installation
;;----------------------------------------------------------------------------
[RTL8812ae.ndi.NT]
AddReg          	= NDIS_62.reg, RTLWLAN.reg, 11acWirelessMode.reg, RTL8812ae.Common.reg, MSIEnable.reg, FWLPSEnable.reg, 32kDisable.reg, WowlanDisable.reg, EarlyModeDisable.reg, TcpReorderEnable.reg, CIHVS.reg, LPSAuto.reg, AMDIOICDisable.reg
Include         	= netvwifibus.inf
Needs				= VWiFiBus.CopyFiles
Characteristics 	= 0x84
BusType         	= 5
CopyFiles       	= RTWlanE.CopyFiles
*IfType         	= 71		; IF_TYPE_IEEE80211
*MediaType      	= 16		; NdisMediumNative802_11
*PhysicalMediaType 	= 9		; NdisPhysicalMediumNative802_11

[RTL8812ae.ndi.NT.Services]
AddService 	= RTWlanE, 2, RTWlanE.Service, RTWlanE.EventLog
Include 	= netvwifibus.inf
Needs 		= VWiFiBus.Services

[RTL8812ae.ndi.NT.HW]
Include = netvwifibus.inf
Needs 	= VWiFiBus.PnPFilterRegistration
AddReg  = RTWlanE.MSI.AddReg

;*******************************************************************************
; RTL8812AE Special Parameters
;*******************************************************************************
[RTL8812ae.Common.reg]
HKR,,EnableTxPowerLimit,0,"0"
;HKR,,DecryptCustomFile,,"1"
;HKR,,PwrByRateFile,0,"TXPWR_8812A_ASUS_Enc.txt"

;;****************************************************************************
;; OS relative registry
;;****************************************************************************
;;----------------------------------------------------------------------------
;; NDIS Common Parameters
;;----------------------------------------------------------------------------
[NDIS_62.reg]
HKR, Ndi,                       Service,    0, "RTWlanE"
HKR, Ndi\Interfaces,		UpperRange, 0, "ndis5,mdcwifi,wifipro"
HKR, Ndi\Interfaces,		LowerRange, 0, "wlan,ethernet,vwifi"

;;----------------------------------------------------------------------------
;; RTWLAN Common Parameters
;;----------------------------------------------------------------------------
[RTLWLAN.reg]
HKR,defaults,			AH_BcnIntv, 	0, "1000"
HKR,Ndi\params\AH_BcnIntv, 	default, 	0, "100"
HKR,Ndi\params\AH_BcnIntv,	ParamDesc, 	0, %AH_BCNINTV_STR%
HKR,Ndi\params\AH_BcnIntv, 	type, 		0, "int"
HKR,Ndi\params\AH_BcnIntv, 	min, 		0, "20"
HKR,Ndi\params\AH_BcnIntv, 	max, 		0, "1000"
HKR,Ndi\params\AH_BcnIntv, 	step, 		0, "1"

HKR,Ndi\params\Dot11dEnable,        ParamDesc,  0, %DOT11_ENABLE_STR%
HKR,Ndi\params\Dot11dEnable,        type,       0, "enum"
HKR,Ndi\params\Dot11dEnable,        default,    0, "0"
HKR,Ndi\params\Dot11dEnable\enum,   "0",        0, %DISABLE_STR%
HKR,Ndi\params\Dot11dEnable\enum,   "1",        0, %ENABLE_STR%
HKR,defaults,Dot11dEnable,0,"0"
HKR,,Dot11dEnable,0,"0"

;Roaming Sensitivity Level
HKR,Ndi\Params\RegROAMSensitiveLevel, ParamDesc, 0, %ROAMING_SENSITIVITY_STR%
HKR,Ndi\Params\RegROAMSensitiveLevel, Type,      0, "enum"
HKR,Ndi\Params\RegROAMSensitiveLevel, Default,   0, "80"
HKR,Ndi\Params\RegROAMSensitiveLevel\enum, "127",  0, %DISABLE_STR%
HKR,Ndi\Params\RegROAMSensitiveLevel\enum, "65",  0, %HIGH_STR%
HKR,Ndi\Params\RegROAMSensitiveLevel\enum, "70",  0, %MIDDLE_STR%
HKR,Ndi\Params\RegROAMSensitiveLevel\enum, "80",  0, %LOW_STR%

HKR,Ndi\params\PreambleMode,        ParamDesc,  0, %PREAMBLE_MODE_STR%
HKR,Ndi\params\PreambleMode,        type,       0, "enum"
HKR,Ndi\params\PreambleMode,        default,    0, "2"
HKR,Ndi\params\PreambleMode\enum,   "1",        0, %LONG_PREAMBLE_STR%
HKR,Ndi\params\PreambleMode\enum,   "2",        0, %LONG_SHORT_PREAMBLE_STR%
HKR,defaults,PreambleMode,0,"2"
HKR,,PreambleMode,0,"2"

;HKR,Ndi\params\TxPowerLevel,        ParamDesc,  0, %TX_POWER_LEVEL_STR%
;HKR,Ndi\params\TxPowerLevel,        type,       0, "enum"
;HKR,Ndi\params\TxPowerLevel,        default,    0, "0"
;HKR,Ndi\params\TxPowerLevel\enum,   "0",        0, %AUTO_STR%
;HKR,Ndi\params\TxPowerLevel\enum,   "1",        0, %HIGH_TX_POWER_STR%
;HKR,Ndi\params\TxPowerLevel\enum,   "2",        0, %MIDDLE_TX_POWER_STR%
;HKR,Ndi\params\TxPowerLevel\enum,   "3",        0, %LOW_TX_POWER_STR%
;HKR,Ndi\params\TxPowerLevel\enum,   "4",        0, %VERY_LOW_TX_POWER_STR%
;HKR,defaults,TxPowerLevel,0,"0"
;HKR,,TxPowerLevel,0,"0"

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


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

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

;; RF Off
;HKR,defaults,HwSwRfOffD3,0,"0"
HKR,,HwSwRfOffD3,0,"0"

;; ASPM
HKR,defaults,PciASPM,0,"5"
HKR,,PciASPM,0,"5"

;; CLK REQ Support
HKR,defaults,ClkReqSupport,0,"0"
HKR,,ClkReqSupport,0,"0"

;; Delay selection for clock request to EPHY
HKR,defaults,ClkDelayToEphy,0,"0"
HKR,,ClkDelayToEphy,0,"0"

;Keep Alive Mechanism
HKR,,KeepAliveLevel,0,"1"

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

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

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

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

HKR,,Locale,0,%LOCALE_STR%

;;----------------------------------------------------------------------------
;; Workaround
;;----------------------------------------------------------------------------

;; Fix Tx/Rx hang
HKR,defaults,RuntimeResetDMA,0,"1"
HKR,,RuntimeResetDMA,0,"1"

;; PCI ignore EIOS
HKR,defaults,PciIgnoreEIOS,0,"1"
HKR,,PciIgnoreEIOS,0,"1"

[11acWirelessMode.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, 	"8", 		0, %AUTO_STR%
HKR,Ndi\params\WirelessMode\enum, 	"1", 		0, %IEEE_802_11A_STR%
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, 	"16", 		0, %IEEE_802_11BGN_STR%
HKR,Ndi\params\WirelessMode\enum, 	"32", 		0, %IEEE_802_11AN_STR%
HKR,Ndi\params\WirelessMode\enum, 	"64", 		0, %IEEE_802_11ANAC_STR%
HKR,defaults,WirelessMode, 0, "8"
HKR,,WirelessMode, 0, "8"

HKR,,Channel,0,"36"

;; RF Type
HKR,,RFType,0,"15"

;; RFE Enable
HKR,,EnRFEType,0,"1"

HKR,defaults,BWSetting,0,"2"
HKR,,BWSetting,0,"2"

;;----------------------------------------------------------------------------
;; MSI Control Parameters
;;----------------------------------------------------------------------------
[MSIEnable.reg]
HKR,,MSISupport,0,"1"

;;----------------------------------------------------------------------------
;; LPS Control Parameters
;;----------------------------------------------------------------------------
[FWLPSEnable.reg]
HKR,,bFwCtrlLPS,0,"1"

;;----------------------------------------------------------------------------
;; LPS 32k Control Parameters
;;----------------------------------------------------------------------------
[32kDisable.reg]
HKR,,bLowPowerEnable,0,"0"

[WowlanDisable.reg]
HKR,,WoWLANLPSLevel,0,"0"
HKR,,ARPOffloadEnable,0,"0"
HKR,,GTKOffloadEnable,0,"0"

;;----------------------------------------------------------------------------
;; Earlymode Control Parameters
;;----------------------------------------------------------------------------
[EarlyModeEnable.reg]
HKR,,bEarlymodeEnable,0,"1"
[EarlyModeDisable.reg]
HKR,,bEarlymodeEnable,0,"0"
;;----------------------------------------------------------------------------
;; TCP Reorder Control Parameters
;;----------------------------------------------------------------------------
[TcpReorderEnable.reg]
HKR,,TcpReorder,0,"1"

;;----------------------------------------------------------------------------
;; IHV Service Reg for CCX
;;----------------------------------------------------------------------------
[CIHVS.reg]
HKR, Ndi\IHVExtensions, ExtensibilityDLL,       0,  "%SystemRoot%\system32\Rtlihvs.dll"
HKR, Ndi\IHVExtensions, UIExtensibilityCLSID,   0,  "{6C2A8CCA-B2A2-4d81-A3B2-4E15F445C312}"
HKR, Ndi\IHVExtensions, GroupName,              0,  "Realtek CCX SDK IHV Service"
HKR, Ndi\IHVExtensions, AdapterOUI,             0x00010001, 0x00e04c

;;----------------------------------------------------------------------------
;; LPS OnOFF Parameters
;;----------------------------------------------------------------------------
;Leisure Power Save
[LPSAuto.reg]
HKR,defaults,bLeisurePs,0,"2"
HKR,,bLeisurePs,0,"2"

;;----------------------------------------------------------------------------
;; AMD IOIC Parameters
;;----------------------------------------------------------------------------
[AMDIOICDisable.reg]
HKR,,IsAMDIOIC,0,"0"

;;****************************************************************************
;; OS relative service.
;;****************************************************************************
[RTWlanE.Service]
DisplayName     = %RTWlanE.DeviceDesc.DispName%
ServiceType     = 1 		;SERVICE_KERNEL_DRIVER
StartType       = 3 		;SERVICE_DEMAND_START
ErrorControl    = 1 		;SERVICE_ERROR_NORMAL
ServiceBinary   = %12%\Drtwlane.sys
LoadOrderGroup  = NDIS

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

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

[RTWlanE.CopyFiles]
Drtwlane.sys,,,2

[RTWlanE.MSI.AddReg]
HKR, "Interrupt Management", 0x00000010 
HKR, "Interrupt Management\MessageSignaledInterruptProperties", 0x00000010
HKR, "Interrupt Management\MessageSignaledInterruptProperties", MSISupported, 0x00010001, 1
HKR, "Interrupt Management\MessageSignaledInterruptProperties", MessageNumberLimit, 0x00010001, 1

;;****************************************************************************
;; Destination Directory
;;****************************************************************************
[DestinationDirs]
RTWlanE.CopyFiles        = 12
DefaultDestDir             = 11        ; LDID_SYS
CIHVS.CopyFiles					= 11
RtlUI2.CopyFiles				= 10
CoInstaller.CopyFiles = 11

;;****************************************************************************
;; Source Files
;;****************************************************************************
[CIHVS.CopyFiles]
Rtlihvs.dll,,,2
RtlEXTUI.DLL,,,2

[RegisterUIExt]
11,,RtlExtUI.dll,1

[RtlUI2.CopyFiles]
RtlUI2.exe,,,2

[SourceDisksNames]
1 = %DISKNAME%,,,

[SourceDisksFiles]
Drtwlane.sys = 1
Rtlihvs.dll = 1
rtlCoInst.dll = 1
rtlCoInst.dat = 1

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

[CoInstaller.CopyFiles]
rtlCoInst.dll,,,0x04
rtlCoInst.dat,,,0x04
;;****************************************************************************
;; Strings
;;****************************************************************************
[Strings]
DLink							= "D-Link Corporation"
DLINK8812e.DeviceDesc			= "D-Link DWA-582 Wireless AC1200 Dual Band PCI Express Adapter" 

AH_BCNINTV_STR 					= "Beacon Interval"
DOT11_ENABLE_STR				= "802.11d"
DISABLE_STR 					= "Disabled"
ENABLE_STR 						= "Enabled"

ROAMING_SENSITIVITY_STR			= "Roaming Sensitivity Level"
HIGH_STR						= "High"
MIDDLE_STR						= "Middle"
LOW_STR							= "Low"

PREAMBLE_MODE_STR				= "Preamble Mode"
LONG_PREAMBLE_STR 				= "Long only"
LONG_SHORT_PREAMBLE_STR			= "Short & long"

LOCALE_STR						= "0000"
WL_MODE_STR						= "Wireless Mode"
AUTO_STR 						= "Auto"
IEEE_802_11A_STR 				= "IEEE 802.11a"
IEEE_802_11B_STR 				= "IEEE 802.11b"
IEEE_802_11BG_STR 				= "IEEE 802.11b/g"
IEEE_802_11BGN_STR 				= "IEEE 802.11b/g/n"
IEEE_802_11AN_STR				= "IEEE 802.11a/n"	
IEEE_802_11ANAC_STR				= "IEEE 802.11a/n/ac"

;;Source disk name
DISKNAME 						= "D-Link DWA-582 Wireless AC1200 Dual Band PCI Express Adapter Driver Disk"
RTWlanE.DeviceDesc.DispName		= "D-Link DWA-582 Wireless AC1200 Dual Band PCI Express Adapter"