Skip to content

Commit 764152f

Browse files
Felix Fietkaujmberg-intel
authored andcommitted
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. Cc: stable@vger.kernel.org Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 990baec commit 764152f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎net/mac80211/main.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ static u32 ieee80211_hw_conf_chan(struct ieee80211_local *local)
148148
list_for_each_entry_rcu(sdata, &local->interfaces, list) {
149149
if (!rcu_access_pointer(sdata->vif.chanctx_conf))
150150
continue;
151+
if (sdata->vif.type == NL80211_IFTYPE_AP_VLAN)
152+
continue;
151153
power = min(power, sdata->vif.bss_conf.txpower);
152154
}
153155
rcu_read_unlock();

0 commit comments

Comments
 (0)