ath11k: add support for controlling tx power to a station
authorMaharaja Kennadyrajan <mkenna@codeaurora.org>
Wed, 27 Nov 2019 14:08:57 +0000 (14:08 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 29 Nov 2019 07:47:58 +0000 (09:47 +0200)
commit64f1d7e94daaaf53208e9505448406b5c8fbbd8a
tree7d2d5f9ef588ee5af96a3707a855fa3ee186b87e
parentfe201947f8bd4aed649a69e5faf0934652327804
ath11k: add support for controlling tx power to a station

This patch will add the support to control the transmit power
for traffic to a station associated with the AP.

Underlying firmware will enforce that the maximum tx power will
be based on the regulatory requirements. If the user given
transmit power is greater than the allowed tx power in the given
channel, then the firmware will use the maximum tx power in the
same channel.

Max and Min tx power values will depends on number of tx chain
masks. The allowed tx power range values are from 6 to 23.

When 0 is sent to the firmware as tx power, it will revert to
the default tx power for the station.

Signed-off-by: Maharaja Kennadyrajan <mkenna@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath11k/debug.h
drivers/net/wireless/ath/ath11k/mac.c