summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/init.c
diff options
context:
space:
mode:
authorArik Nemtsov <arik@wizery.com>2011-06-27 22:06:34 +0300
committerLuciano Coelho <coelho@ti.com>2011-07-05 21:51:05 +0300
commit097f882153f0ec13617074fa3bdb683b8215e20c (patch)
tree53554edb12af51ce9d658e9bfd37704d241a787c /drivers/net/wireless/wl12xx/init.c
parent6cfa5cffde202cabbf0d64c9225ce89f7f7a0d0f (diff)
downloadop-kernel-dev-097f882153f0ec13617074fa3bdb683b8215e20c.zip
op-kernel-dev-097f882153f0ec13617074fa3bdb683b8215e20c.tar.gz
wl12xx: always initialize AP-mode max power level
Sometimes we only get the Tx power level via op->config when the FW is off. Record the received power level when this happens and use it to initialize the firmware during boot. Signed-off-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/init.c')
-rw-r--r--drivers/net/wireless/wl12xx/init.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/init.c b/drivers/net/wireless/wl12xx/init.c
index ebfde94..c3e9a2e 100644
--- a/drivers/net/wireless/wl12xx/init.c
+++ b/drivers/net/wireless/wl12xx/init.c
@@ -455,6 +455,11 @@ static int wl1271_ap_hw_init(struct wl1271 *wl)
if (ret < 0)
return ret;
+ /* initialize Tx power */
+ ret = wl1271_acx_tx_power(wl, wl->power_level);
+ if (ret < 0)
+ return ret;
+
return 0;
}
OpenPOWER on IntegriCloud