diff mbox

[v4] wl12xx: fix tx power setting

Message ID CAN44aq2=SLJz0e1JLEg+OmoQ8fxpmrbokvWyjW3MokLbbr1vKA@mail.gmail.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Alex Gal Jan. 10, 2014, 3:41 p.m. UTC
My bad for the wrong 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(+)

    else

Comments

Luca Coelho Jan. 10, 2014, 3:54 p.m. UTC | #1
On Fri, 2014-01-10 at 10:41 -0500, Alex Gal wrote:
> My bad for the wrong format.

Please don't include this kind of comment in the commit log.  If you
want to tell something about the version of the patch (which should not
be in the log itself), add it after the '---' below the Signed-off-by
line.

--
Luca.

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/net/wireless/ti/wlcore/main.c
b/drivers/net/wireless/ti/wlcore/main.c
index e9da47c..89d2310 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);