Centos-kernel-stream-9/drivers/net/wireless
Jose Ignacio Tornos Martinez fd3dade59b wifi: ath11k: restore country code during resume
JIRA: https://issues.redhat.com/browse/RHEL-34696

commit 7f0343b7b8710436c1e6355c71782d32ada47e0c
Author: Baochen Qiang <quic_bqiang@quicinc.com>
Date:   Tue May 21 11:08:11 2024 +0300

    wifi: ath11k: restore country code during resume
    
    We got report that regdomain is not correct after
    return from hibernation:
    
    Before hibernation:
    % iw reg get
    [...]
    phy#0 (self-managed)
    country CH: DFS-ETSI
            (2402 - 2482 @ 40), (N/A, 20), (N/A)
            (5170 - 5250 @ 80), (N/A, 23), (N/A), NO-OUTDOOR, AUTO-BW
            (5250 - 5330 @ 80), (N/A, 23), (0 ms), NO-OUTDOOR, DFS, AUTO-BW
            (5490 - 5590 @ 80), (N/A, 30), (0 ms), DFS, AUTO-BW
            (5590 - 5650 @ 40), (N/A, 30), (600000 ms), DFS, AUTO-BW
            (5650 - 5730 @ 80), (N/A, 30), (0 ms), DFS, AUTO-BW
            (5735 - 5875 @ 80), (N/A, 14), (N/A), AUTO-BW
    
    After hibernation:
    % iw reg get
    [...]
    phy#0 (self-managed)
    country na: DFS-UNSET
            (2402 - 2472 @ 40), (N/A, 20), (N/A)
            (2457 - 2482 @ 20), (N/A, 20), (N/A), PASSIVE-SCAN
            (5170 - 5330 @ 160), (N/A, 20), (N/A), AUTO-BW, PASSIVE-SCAN
            (5490 - 5730 @ 160), (N/A, 20), (N/A), AUTO-BW, PASSIVE-SCAN
            (5735 - 5895 @ 160), (N/A, 20), (N/A), AUTO-BW, PASSIVE-SCAN
            (5945 - 7125 @ 160), (N/A, 30), (N/A), AUTO-BW, PASSIVE-SCAN
    
    The reason is, during resume, firmware is reinitialized but host does
    not send current country code to firmware. So default reg rules with
    country code set to 'na' is uploaded to host, as shown above.
    
    Fix it by restoring country code to firmware during resume.
    
    Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.30
    
    Fixes: 166a490f59ac ("wifi: ath11k: support hibernation")
    Signed-off-by: Baochen Qiang <quic_bqiang@quicinc.com>
    Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
    Link: https://msgid.link/20240520024148.5472-3-quic_bqiang@quicinc.com

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2024-06-17 09:20:10 +02:00
..
admtek wifi: mac80211: simplify non-chanctx drivers 2024-06-17 09:19:15 +02:00
ath wifi: ath11k: restore country code during resume 2024-06-17 09:20:10 +02:00
atmel wifi: mac80211: simplify non-chanctx drivers 2024-06-17 09:19:15 +02:00
broadcom wifi: brcmfmac: pcie: handle randbuf allocation failure 2024-06-17 09:20:06 +02:00
intel wifi: iwlwifi: mvm: don't change BA sessions during restart 2024-06-17 09:20:09 +02:00
intersil wifi: mac80211: simplify non-chanctx drivers 2024-06-17 09:19:15 +02:00
marvell wifi: mwifiex: Refactor 1-element array into flexible array in struct mwifiex_ie_types_chan_list_param_set 2024-06-17 09:19:28 +02:00
mediatek wifi: mt76: connac: use muar idx 0xe for non-mt799x as well 2024-06-17 09:20:08 +02:00
microchip wifi: wilc1000: revert reset line logic flip 2024-06-17 09:19:42 +02:00
quantenna wifi: cfg80211/mac80211: move puncturing into chandef 2024-06-17 09:19:17 +02:00
ralink wifi: rt2x00: silence sparse warnings 2024-06-17 09:19:51 +02:00
realtek wifi: rtw89: pci: correct TX resource checking for PCI DMA channel of firmware command 2024-06-17 09:20:08 +02:00
rsi wifi: mac80211: simplify non-chanctx drivers 2024-06-17 09:19:15 +02:00
st wifi: mac80211: simplify non-chanctx drivers 2024-06-17 09:19:15 +02:00
ti wifi: mac80211: add support to call csa_finish on a link 2024-06-17 09:19:21 +02:00
virtual wifi: mac80211_hwsim: init peer measurement result 2024-06-17 09:20:05 +02:00
zydas wifi: mac80211: simplify non-chanctx drivers 2024-06-17 09:19:15 +02:00
Kconfig
Makefile