diff options
author | Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> | 2015-02-17 10:12:17 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-03-03 14:36:01 +0100 |
commit | 283dd11994cde99447a6dac203d96c0800e85e82 (patch) | |
tree | e1d24f454786c9a90a5b84c162fd813af26233f2 /drivers/net/wireless/ath/ath9k/debug.c | |
parent | rtlwifi: Remove unused RTL_SUPPORTED_CTRL_FILTER define (diff) | |
download | linux-283dd11994cde99447a6dac203d96c0800e85e82.tar.xz linux-283dd11994cde99447a6dac203d96c0800e85e82.zip |
ath9k: add per-vif TX power capability
Configure the HW with highest TX power among all vif when HW TPC has been
enabled in order to add support to per-vif TX power capability. Use lowest
configured power among all interfaces when TPC is disabled
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/debug.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/debug.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/debug.c b/drivers/net/wireless/ath/ath9k/debug.c index 50a2e0ac3b8b..dbf8f4959642 100644 --- a/drivers/net/wireless/ath/ath9k/debug.c +++ b/drivers/net/wireless/ath/ath9k/debug.c @@ -1156,7 +1156,10 @@ static ssize_t write_file_tpc(struct file *file, const char __user *user_buf, if (tpc_enabled != ah->tpc_enabled) { ah->tpc_enabled = tpc_enabled; - ath9k_hw_set_txpowerlimit(ah, sc->cur_chan->txpower, false); + + mutex_lock(&sc->mutex); + ath9k_set_txpower(sc, NULL); + mutex_unlock(&sc->mutex); } return count; |