;/* 
;  Copyright (c) 2020 Microsoft
;  All Rights Reserved.
;  Confidential and Proprietary - Microsoft.
;*/

[Version]
Signature          = "$Windows NT$"
Class              = Extension
ClassGUID          = {e2f84ce7-8efa-411c-aa69-97454ca4cb57}
Provider           = %SRFC%
DriverVer = 08/22/2024,1.14.356.0
ExtensionId        = {c6062e29-a222-44de-bcb3-eb503467f8ca}
CatalogFile.NT     = miscWlanExt_x64.cat
PnpLockDown        = 1

[Manufacturer]
%SRFC%  = QUALCOMM, NTamd64.10.0

[QUALCOMM.NTamd64.10.0]
%WLAN.DeviceDesc%    = QcWlan.ndi.NTamd64, PCI\VEN_17CB&DEV_1107

[QcWlan.ndi.NTamd64]
AddReg = Remap.Reg, UNII4.Reg, enableHwRfKill.reg, misc.reg, Telemery.reg

; ----------------------------------------------------------------------------
; DisableReport6GAPtoOS = 0 / Not present - No 6E limitation
; DisableReport6GAPtoOS = 1. Don’t indicate all 6G AP to OS when regulatory domain is WW.
; DisableReport6GAPtoOS = 2. Don’t indicate 6G SP AP to OS. – MSFT request
; ----------------------------------------------------------------------------
;[DisableSP.Reg]
;HKR, ,                                   DisableReport6GAPtoOS,                      0x00010001, 2

; ----------------------------------------------------------------------------
; subbandCTLEnable:- disable = 0; enable = 1; enable SA remap = 3
; RemapCA5GCTL:- 0: disable remap, 1: ETSI, 2: MKK, 3: CHN, 4: KOR, 5: USER_DEF).
; RemapSA6GSubbandCTL:- 0: disable remap, 1: FCC
; ----------------------------------------------------------------------------
[Remap.Reg]
HKR, ,                                   subbandCTLEnable,                      0x00010001, 3
HKR, ,                                   RemapCA5GCTL,                      	0x00010001, 2
HKR, ,                                   RemapSA6GSubbandCTL,                   0x00010001, 0

; ----------------------------------------------------------------------------
; UNII-4 is disable in US by default. enable_5dot9_ghz=1 in WLAN registry and 
; COMMON_BDF_HEADER.baseBdfHeader.enableRegulatory5Dot9=1 in BDF can enable UNII-4 bnad for US.
; ----------------------------------------------------------------------------
[UNII4.Reg]
HKR, ,					 enable_5dot9_ghz,			0x00010001, 1	

; ----------------------------------------------------------------------------
; x86 design should use internal clock and set EnableHardwareRFKill 0 
; ----------------------------------------------------------------------------
[enableHwRfKill.reg]
HKR, , EnableHardwareRFKill, 0x00010001, 0

; ----------------------------------------------------------------------------
; p2pUsePassiveChan :  Flag enabling hotspot
;                      BIT 0 - Allow SAP and P2PGO to use passive channel (5180-5240)
;                      BIT 1 - Allow P2PGC to use indoor channel
;                      BIT 2 - Allow SAP to use indoor channel when STA was connected with AP on the same channel.
;                      BIT 3 - Allow P2PGO to use indoor channel when STA was connected with AP on the same channel.
;                      BIT 4 - Allow SAP to use indoor channel
;                      BIT 5 - Allow P2PGO to use indoor channel  
; AntennaGain6G     :  Antenna Gain to meet AFC (Automated Frequency Coordination) requirements for the FCC                
;                   :  The unit of antGain6GSPWAR  is 1db, put 8db.
; CountryToDisable11be : Disable/Enable 11be for the below countries by setting the bit. 1 - disable   0 - enable
;	                   BIT  31~4 - reserved
;	                   BIT  3    - Korea
;	                   BIT  2    - Belarus
;	                   BIT  1    - Russia
;	                   BIT  0    - Ukraine                            
; ----------------------------------------------------------------------------
[misc.reg]
HKR, , p2pUsePassiveChan, 0x00010001, 4
HKR, , AntennaGain6G, 0x00010001, 8
HKR, , CountryToDisable11be, 0x00010001, 7

; ----------------------------------------------------------------------------
; WI-Fi Telemery Event                           
[Telemery.reg]
HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\EventLog-System\{bb6f5b93-635c-47be-816f-e895e77064a8},Enabled,0x00010001,1
HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\EventLog-System\{bb6f5b93-635c-47be-816f-e895e77064a8},EnableLevel,0x00010001,0
HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\EventLog-System\{bb6f5b93-635c-47be-816f-e895e77064a8},EnableProperty,0x00010001,1

; ----------------------------------------------------------------------------
; Temporary changes to avoid WI-Fi Crash - Disable power save 
; Issue is fixed with correct clock mapping in the UEFI and remove workaround
; ----------------------------------------------------------------------------
;[wowEnable.reg]
;HKR, , PCIEPolicy, 0x00010001, 1
;HKR, , IdlePowerSave, 0x00010001, 0
;HKR, , ProtocolPowerSave, 0x00010001, 0

;[S0Idle.reg]
;HKR, , *IdleRestriction, 0x00000000, 1
;HKR, Ndi\Params\*IdleRestriction,                            ParamDesc,      0, "Idle Power Down Restriction"
;HKR, Ndi\Params\*IdleRestriction,                            default,        0, "1"
;HKR, Ndi\Params\*IdleRestriction,                            type,           0, "enum"
;HKR, Ndi\Params\*IdleRestriction\enum,                       "0",            0, "Disabled"
;HKR, Ndi\Params\*IdleRestriction\enum,                       "1",            0, "Enabled"

[Strings]
SRFC                        = "Surface"
WLAN.DeviceDesc             = "Qualcomm WCN785x Wi-Fi 7 Dual Band Simultaneous (DBS) WiFiCx Network Adapter"
