projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b5ead9
)
ath9k_htc: Add support for handling TX power configuration
author
Sujith Manoharan
<
[email protected]
>
Tue, 7 Dec 2010 11:01:54 +0000
(16:31 +0530)
committer
John W. Linville
<
[email protected]
>
Tue, 7 Dec 2010 22:08:07 +0000
(17:08 -0500)
Signed-off-by: Sujith Manoharan <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/ath/ath9k/htc_drv_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath9k/htc_drv_main.c
b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
index 87731c2daae462bfc9755fc19ad1eac9f67d3824..fe82e5e30d82ed2849cb86b02cf1174687c7a202 100644
(file)
--- 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))