summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-04-10 15:06:48 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-13 13:32:52 +0200
commit6acde7cd22620cfdddc9b06103479ec03686f1f6 (patch)
treee644bee3a6115d9a825c62c469f90561d0778a47
parent87000b382512cbe9d16a1eba739be9506a0c26f0 (diff)
downloadlwn-6acde7cd22620cfdddc9b06103479ec03686f1f6.tar.gz
lwn-6acde7cd22620cfdddc9b06103479ec03686f1f6.zip
mac80211: exclude AP_VLAN interfaces from tx power calculation
commit 764152ff66f4a8be1f9d7981e542ffdaa5bd7aff upstream. Their power value is initialized to zero. This patch fixes an issue where the configured power drops to the minimum value when AP_VLAN interfaces are created/removed. Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--net/mac80211/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index d767cfb9b45f..c7a7a86afdb8 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -148,6 +148,8 @@ static u32 ieee80211_hw_conf_chan(struct ieee80211_local *local)
list_for_each_entry_rcu(sdata, &local->interfaces, list) {
if (!rcu_access_pointer(sdata->vif.chanctx_conf))
continue;
+ if (sdata->vif.type == NL80211_IFTYPE_AP_VLAN)
+ continue;
power = min(power, sdata->vif.bss_conf.txpower);
}
rcu_read_unlock();