diff options
author | Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> | 2015-02-17 04:12:17 -0500 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-03-03 08:36:01 -0500 |
commit | 283dd11994cde99447a6dac203d96c0800e85e82 (patch) | |
tree | e1d24f454786c9a90a5b84c162fd813af26233f2 /drivers/net/wireless/ath/ath9k/debug.c | |
parent | be1f8d31c93b770347b2cc9e2dd37189baf1177f (diff) |
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, | |||
1156 | 1156 | ||
1157 | if (tpc_enabled != ah->tpc_enabled) { | 1157 | if (tpc_enabled != ah->tpc_enabled) { |
1158 | ah->tpc_enabled = tpc_enabled; | 1158 | ah->tpc_enabled = tpc_enabled; |
1159 | ath9k_hw_set_txpowerlimit(ah, sc->cur_chan->txpower, false); | 1159 | |
1160 | mutex_lock(&sc->mutex); | ||
1161 | ath9k_set_txpower(sc, NULL); | ||
1162 | mutex_unlock(&sc->mutex); | ||
1160 | } | 1163 | } |
1161 | 1164 | ||
1162 | return count; | 1165 | return count; |