Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mac80211: fix crash when using AP VLAN interfaces

Commit "mac80211: implement SMPS for AP" applies to AP_VLAN as well.
It assumes that sta->sdata->vif.bss_conf.bssid is present, which did not
get set for AP_VLAN.
Initialize it to sdata->vif.addr like for other interface types.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

authored by

Felix Fietkau and committed by
Johannes Berg
57fb089f 7fa322c8

-1
-1
net/mac80211/iface.c
··· 1325 1325 sdata->vif.bss_conf.bssid = NULL; 1326 1326 break; 1327 1327 case NL80211_IFTYPE_AP_VLAN: 1328 - break; 1329 1328 case NL80211_IFTYPE_P2P_DEVICE: 1330 1329 sdata->vif.bss_conf.bssid = sdata->vif.addr; 1331 1330 break;