linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3] wl12xx: fix tx power setting
@ 2014-01-09 19:02 Alex Gal
  2014-01-10 14:34 ` John W. Linville
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Gal @ 2014-01-09 19:02 UTC (permalink / raw)
  To: linux-wireless; +Cc: linville

Sorry for the previous format.

Fixes wl12xx tx power.

Signed-off-by: Alex Gal <a.gal@motsai.com>
---
 drivers/net/wireless/ti/wlcore/main.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/drivers/net/wireless/ti/wlcore/main.c
b/drivers/net/wireless/ti/wlcore/main.c
index e9da47c..cbbfc50 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
-- 
1.8.5.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-01-10 14:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-09 19:02 [PATCH v3] wl12xx: fix tx power setting Alex Gal
2014-01-10 14:34 ` John W. Linville

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).