[PATCH v2 3/3] wifi: ath11k: fix Tx power value during active CAC
Kalle Valo
kvalo at kernel.org
Tue Oct 3 07:31:56 PDT 2023
Aditya Kumar Singh <quic_adisi at quicinc.com> wrote:
> Tx power is fetched from firmware's pdev stats. However, during active
> CAC, firmware does not fill the current Tx power and sends the max
> initialised value filled during firmware init. If host sends this power
> to user space, this is wrong since in certain situations, the Tx power
> could be greater than the max allowed by the regulatory. Hence, host
> should not be fetching the Tx power during an active CAC.
>
> Fix this issue by returning Tx power as 0 during active CAC since it
> is known that during CAC, there will be no transmission happening.
The returning as 0 doesn't seem to match the code. Should I change the sentence to:
"Fix this issue by returning -EAGAIN error so that the user space knows there's
no value available right now."
--
https://patchwork.kernel.org/project/linux-wireless/patch/20230912051857.2284-4-quic_adisi@quicinc.com/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
More information about the ath11k
mailing list