[PATCH ath-next] wifi: ath12k: remove redundant regulatory rules intersection logic in host

Jeff Johnson jeff.johnson at oss.qualcomm.com
Fri May 2 13:57:36 PDT 2025


On 4/30/2025 8:42 AM, Rajat Soni wrote:
> From: Aishwarya R <quic_aisr at quicinc.com>
> 
> Whenever there is a change in the country code settings from the
> user, driver does an intersection of the regulatory rules for this
> new country with the original regulatory rules which were reported
> during initialization time.
> 
> There is also similar logic running in firmware with a difference
> that the intersection in firmware is only done when the country code
> is configuration during boot up time (BDF/OTP). Firmware logic does
> not kick in when no country code is configured during device bring
> up time as the device is always expected to have the country code
> configured properly in the deployment.
> 
> There is a debug/test use case that requires absolute regulatory
> rules to be used for a user configured country code when the device
> is not configured with a particular country code during boot up time.
> 
> To support the above test use case, remove the redundant regulatory
> rules intersection logic in the host driver. Depend on the
> intersection logic in firmware when the device comes up with
> pre-configured country code.
> 
> Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00209-QCAHKSWPL_SILICONZ-1
> Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3
> 
> Signed-off-by: Aishwarya R <quic_aisr at quicinc.com>
> Signed-off-by: Rajat Soni <quic_rajson at quicinc.com>
> ---
>  drivers/net/wireless/ath/ath12k/reg.c | 164 ++------------------------
>  drivers/net/wireless/ath/ath12k/reg.h |   3 +-
>  drivers/net/wireless/ath/ath12k/wmi.c |  24 +---
>  3 files changed, 14 insertions(+), 177 deletions(-)

While this applies cleanly on top of ath-next, it does not apply cleanly on
the pending branch.

Can you please rebase on ath/main-pending, and post a v2 with ath-pending as
the destination branch tag? Don't worry if the patchwork bot ignores it due to
an unknown branch tag.

/jeff



More information about the ath12k mailing list