diff options
author | Sujith Manoharan <Sujith.Manoharan@atheros.com> | 2010-12-07 16:31:54 +0530 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-12-07 17:08:07 -0500 |
commit | 692d6b175b392512881ab374567e900fc825d487 (patch) | |
tree | de6e197cd2d946efa669408326e09dfa7348618a /drivers/net/wireless/ath/ath9k/htc_drv_main.c | |
parent | 0b5ead91cda63e0db964dadc77601233434f60cb (diff) | |
download | op-kernel-dev-692d6b175b392512881ab374567e900fc825d487.zip op-kernel-dev-692d6b175b392512881ab374567e900fc825d487.tar.gz |
ath9k_htc: Add support for handling TX power configuration
Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/htc_drv_main.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/htc_drv_main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_main.c b/drivers/net/wireless/ath/ath9k/htc_drv_main.c index 87731c2d..fe82e5e 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c @@ -1411,6 +1411,7 @@ static int ath9k_htc_config(struct ieee80211_hw *hw, u32 changed) } } + if (changed & IEEE80211_CONF_CHANGE_PS) { if (conf->flags & IEEE80211_CONF_PS) { ath9k_htc_setpower(priv, ATH9K_PM_NETWORK_SLEEP); @@ -1422,6 +1423,11 @@ static int ath9k_htc_config(struct ieee80211_hw *hw, u32 changed) } } + if (changed & IEEE80211_CONF_CHANGE_POWER) { + priv->txpowlimit = 2 * conf->power_level; + ath_update_txpow(priv); + } + if (changed & IEEE80211_CONF_CHANGE_MONITOR) { if (conf->flags & IEEE80211_CONF_MONITOR) { if (ath9k_htc_add_monitor_interface(priv)) |