]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: ath12k: fix mac pdev frequency range update
authorAditya Kumar Singh <aditya.kumar.singh@oss.qualcomm.com>
Tue, 20 May 2025 04:36:52 +0000 (10:06 +0530)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Wed, 21 May 2025 01:08:38 +0000 (18:08 -0700)
commit0d777aa2ca77584b339ce195db86fe0ee7dda5d5
treeb9b72c94c07b3e1d49707ca1733f9c8442cd9e68
parent08e3cc13b0d050860f41b4eaaa21c789af968b98
wifi: ath12k: fix mac pdev frequency range update

The current implementation of per-pdev frequency range updates assumes that
each pdev supports only a single band. As a result in ath12k_regd_update(),
bands are handled using an if-else structure, which limits updates to only
one of the band per pdev. This assumption does not hold for all chipsets.
For example, the WCN7850 supports multiple bands within a single pdev.

Hence to accommodate such cases, update the logic to account for all band
cases by handling each band in a separate if conditions instead of the
previous if-else structure.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.4.1-00199-QCAHKSWPL_SILICONZ-1

Fixes: 13324cecbb2c ("wifi: ath12k: Update frequency range if reg rules changes")
Signed-off-by: Aditya Kumar Singh <aditya.kumar.singh@oss.qualcomm.com>
Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com>
Link: https://patch.msgid.link/20250520-fix_freq_range_update-v1-1-e061fd147b87@oss.qualcomm.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath12k/mac.c
drivers/net/wireless/ath/ath12k/reg.c