diff options
author | Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> | 2015-01-14 12:55:08 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2015-01-23 10:28:51 +0100 |
commit | db82d8a966ded064bd4cf0e1fcca13442f50d0ae (patch) | |
tree | 1f88497368334a23af9afe6f2beb9def150238d9 /net/mac80211/iface.c | |
parent | nl80211: Allow set network namespace by fd (diff) | |
download | linux-db82d8a966ded064bd4cf0e1fcca13442f50d0ae.tar.xz linux-db82d8a966ded064bd4cf0e1fcca13442f50d0ae.zip |
mac80211: enable TPC through mac80211 stack
Control per packet Transmit Power Control (TPC) in lower drivers
according to TX power settings configured by the user. In particular TPC is
enabled if value passed in enum nl80211_tx_power_setting is
NL80211_TX_POWER_LIMITED (allow using less than specified from userspace),
whereas TPC is disabled if nl80211_tx_power_setting is set to
NL80211_TX_POWER_FIXED (use value configured from userspace)
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/iface.c')
-rw-r--r-- | net/mac80211/iface.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index 677422e11e07..4371c123a95e 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c @@ -73,9 +73,10 @@ bool __ieee80211_recalc_txpower(struct ieee80211_sub_if_data *sdata) return false; } -void ieee80211_recalc_txpower(struct ieee80211_sub_if_data *sdata) +void ieee80211_recalc_txpower(struct ieee80211_sub_if_data *sdata, + bool update_bss) { - if (__ieee80211_recalc_txpower(sdata)) + if (__ieee80211_recalc_txpower(sdata) || update_bss) ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_TXPOWER); } |