Skip to contentSkip to conversation

mac80211: exclude AP_VLAN interfaces from tx power calculation

PATCH Applied Felix Fietkau 2 participants 2 messages Apr 10, 2014 – Apr 11, 2014 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mac80211: exclude AP_VLAN interfaces from tx power calculation

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.

---
 net/mac80211/main.c | 2 ++
 1 file changed, 2 insertions(+)
net/mac80211/main.c +2 -0
index 4172d42..4c1bf61 100644
@@ -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();
Signature · 1 line
1.8.5.2 (Apple Git-48)
maintainer Applied
#1 lore raw
Quoted 3 lines · Felix Fietkau

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.

Applied.

johannes