Aditya Kumar Singh <quic_adisi@xxxxxxxxxxx> 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@xxxxxxxxxxx/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches