Commit 57fb089f authored by Felix Fietkau's avatar Felix Fietkau Committed by Johannes Berg

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: default avatarFelix Fietkau <>
Signed-off-by: default avatarJohannes Berg <>
parent 7fa322c8
......@@ -1325,7 +1325,6 @@ static void ieee80211_setup_sdata(struct ieee80211_sub_if_data *sdata,
sdata->vif.bss_conf.bssid = NULL;
case NL80211_IFTYPE_AP_VLAN:
sdata->vif.bss_conf.bssid = sdata->vif.addr;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment