|
@@ -496,7 +496,9 @@ int ieee80211_do_open(struct wireless_dev *wdev, bool coming_up)
|
|
|
if (!sdata->bss)
|
|
|
return -ENOLINK;
|
|
|
|
|
|
+ mutex_lock(&local->mtx);
|
|
|
list_add(&sdata->u.vlan.list, &sdata->bss->vlans);
|
|
|
+ mutex_unlock(&local->mtx);
|
|
|
|
|
|
master = container_of(sdata->bss,
|
|
|
struct ieee80211_sub_if_data, u.ap);
|
|
@@ -726,8 +728,11 @@ int ieee80211_do_open(struct wireless_dev *wdev, bool coming_up)
|
|
|
drv_stop(local);
|
|
|
err_del_bss:
|
|
|
sdata->bss = NULL;
|
|
|
- if (sdata->vif.type == NL80211_IFTYPE_AP_VLAN)
|
|
|
+ if (sdata->vif.type == NL80211_IFTYPE_AP_VLAN) {
|
|
|
+ mutex_lock(&local->mtx);
|
|
|
list_del(&sdata->u.vlan.list);
|
|
|
+ mutex_unlock(&local->mtx);
|
|
|
+ }
|
|
|
/* might already be clear but that doesn't matter */
|
|
|
clear_bit(SDATA_STATE_RUNNING, &sdata->state);
|
|
|
return res;
|
|
@@ -879,7 +884,9 @@ static void ieee80211_do_stop(struct ieee80211_sub_if_data *sdata,
|
|
|
|
|
|
switch (sdata->vif.type) {
|
|
|
case NL80211_IFTYPE_AP_VLAN:
|
|
|
+ mutex_lock(&local->mtx);
|
|
|
list_del(&sdata->u.vlan.list);
|
|
|
+ mutex_unlock(&local->mtx);
|
|
|
RCU_INIT_POINTER(sdata->vif.chanctx_conf, NULL);
|
|
|
/* no need to tell driver */
|
|
|
break;
|