diff options
author | Alex Gal <a.gal@motsai.com> | 2014-01-11 00:21:13 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-01-13 23:46:59 +0400 |
commit | b30d49b294fe339719918965594f12eb7967dca0 (patch) | |
tree | 82a3c33c75f133df773728f22d65693bbb1bd989 /drivers/net/wireless/ti | |
parent | 68458dede7e0055198318dcb0318df3b4f419507 (diff) | |
download | linux-b30d49b294fe339719918965594f12eb7967dca0.tar.xz |
wl12xx: fix tx power setting
The driver ignores BSS_CHANGED_TXPOWER changes.
Fix this by calling ACX_TX_POWER when appropriate.
Signed-off-by: Alex Gal <a.gal@motsai.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ti')
-rw-r--r-- | drivers/net/wireless/ti/wlcore/main.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net/wireless/ti/wlcore/main.c index 18a009e593c7..b46b3116cc55 100644 --- a/drivers/net/wireless/ti/wlcore/main.c +++ b/drivers/net/wireless/ti/wlcore/main.c @@ -4457,6 +4457,16 @@ static void wl1271_op_bss_info_changed(struct ieee80211_hw *hw, if (ret < 0) goto out; + if ((changed & BSS_CHANGED_TXPOWER) && + bss_conf->txpower != wlvif->power_level) { + + ret = wl1271_acx_tx_power(wl, wlvif, bss_conf->txpower); + if (ret < 0) + goto out; + + wlvif->power_level = bss_conf->txpower; + } + if (is_ap) wl1271_bss_info_changed_ap(wl, vif, bss_conf, changed); else |