diff options
author | Anna Neal <anna@cozybit.com> | 2008-09-26 17:34:35 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-09-30 20:07:23 +0200 |
commit | 3ed6e0803b4fe95107f6cb5a432587d03cd4d17a (patch) | |
tree | 0b7b231ea5c315451a2efe5f5f74a25d8394d7f7 /drivers/net/wireless/libertas/wext.c | |
parent | mac80211: remove wme_tx_queue and wme_rx_queue from net/mac80211/sta_info.h (diff) | |
download | linux-3ed6e0803b4fe95107f6cb5a432587d03cd4d17a.tar.xz linux-3ed6e0803b4fe95107f6cb5a432587d03cd4d17a.zip |
libertas: Improvements on automatic tx power control via SIOCSIWTXPOW (fixups)
This patch addresses comments from Dan Williams about the patch
committed as "libertas: Improvements on automatic tx power control via
SIOCSIWTXPOW."
Signed-off-by: Anna Neal <anna@cozybit.com>
Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/wext.c')
-rw-r--r-- | drivers/net/wireless/libertas/wext.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/wireless/libertas/wext.c b/drivers/net/wireless/libertas/wext.c index 6ebdd7f161f1..82c3e5a50ea6 100644 --- a/drivers/net/wireless/libertas/wext.c +++ b/drivers/net/wireless/libertas/wext.c @@ -1025,6 +1025,18 @@ static int lbs_set_rate(struct net_device *dev, struct iw_request_info *info, new_rate); goto out; } + if (priv->fwrelease < 0x09000000) { + ret = lbs_set_power_adapt_cfg(priv, 0, + POW_ADAPT_DEFAULT_P0, + POW_ADAPT_DEFAULT_P1, + POW_ADAPT_DEFAULT_P2); + if (ret) + goto out; + } + ret = lbs_set_tpc_cfg(priv, 0, TPC_DEFAULT_P0, TPC_DEFAULT_P1, + TPC_DEFAULT_P2, 1); + if (ret) + goto out; } /* Try the newer command first (Firmware Spec 5.1 and above) */ |