diff options
author | Sujith Manoharan <Sujith.Manoharan@atheros.com> | 2010-12-07 06:01:54 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-12-07 17:08:07 -0500 |
commit | 692d6b175b392512881ab374567e900fc825d487 (patch) | |
tree | de6e197cd2d946efa669408326e09dfa7348618a | |
parent | 0b5ead91cda63e0db964dadc77601233434f60cb (diff) |
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>
-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 87731c2daae4..fe82e5e30d82 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) | |||
1411 | } | 1411 | } |
1412 | 1412 | ||
1413 | } | 1413 | } |
1414 | |||
1414 | if (changed & IEEE80211_CONF_CHANGE_PS) { | 1415 | if (changed & IEEE80211_CONF_CHANGE_PS) { |
1415 | if (conf->flags & IEEE80211_CONF_PS) { | 1416 | if (conf->flags & IEEE80211_CONF_PS) { |
1416 | ath9k_htc_setpower(priv, ATH9K_PM_NETWORK_SLEEP); | 1417 | ath9k_htc_setpower(priv, ATH9K_PM_NETWORK_SLEEP); |
@@ -1422,6 +1423,11 @@ static int ath9k_htc_config(struct ieee80211_hw *hw, u32 changed) | |||
1422 | } | 1423 | } |
1423 | } | 1424 | } |
1424 | 1425 | ||
1426 | if (changed & IEEE80211_CONF_CHANGE_POWER) { | ||
1427 | priv->txpowlimit = 2 * conf->power_level; | ||
1428 | ath_update_txpow(priv); | ||
1429 | } | ||
1430 | |||
1425 | if (changed & IEEE80211_CONF_CHANGE_MONITOR) { | 1431 | if (changed & IEEE80211_CONF_CHANGE_MONITOR) { |
1426 | if (conf->flags & IEEE80211_CONF_MONITOR) { | 1432 | if (conf->flags & IEEE80211_CONF_MONITOR) { |
1427 | if (ath9k_htc_add_monitor_interface(priv)) | 1433 | if (ath9k_htc_add_monitor_interface(priv)) |