Skip to contentSkip to conversation

mac80211: fix crash when using AP VLAN interfaces

PATCH Applied Felix Fietkau 2 participants 2 messages Nov 8, 2013 – Nov 11, 2013 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 net/mac80211/iface.c | 1 -
 1 file changed, 1 deletion(-)
net/mac80211/iface.c +0 -1
index ff101ea..36c3a4c 100644
@@ -1325,7 +1325,6 @@ static void ieee80211_setup_sdata(struct ieee80211_sub_if_data *sdata,
 		sdata->vif.bss_conf.bssid = NULL;
 		break;
 	case NL80211_IFTYPE_AP_VLAN:
-		break;
 	case NL80211_IFTYPE_P2P_DEVICE:
 		sdata->vif.bss_conf.bssid = sdata->vif.addr;
 		break;
Signature · 1 line
1.8.3.4 (Apple Git-47)
maintainer Applied
#1 lore raw
Quoted 4 lines · Felix Fietkau

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.

Applied.

It'd be great if you could submit a vlan and 4-addr test to Jouni's hwsim tests :-)

johannes