diff options
Diffstat (limited to 'net/mac80211/sta_info.c')
-rw-r--r-- | net/mac80211/sta_info.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c index be59456e8a42..396a94806de9 100644 --- a/net/mac80211/sta_info.c +++ b/net/mac80211/sta_info.c | |||
@@ -509,6 +509,9 @@ static void __sta_info_unlink(struct sta_info **sta) | |||
509 | local->num_sta--; | 509 | local->num_sta--; |
510 | local->sta_generation++; | 510 | local->sta_generation++; |
511 | 511 | ||
512 | if (sdata->vif.type == NL80211_IFTYPE_AP_VLAN) | ||
513 | rcu_assign_pointer(sdata->u.vlan.sta, NULL); | ||
514 | |||
512 | if (local->ops->sta_notify) { | 515 | if (local->ops->sta_notify) { |
513 | if (sdata->vif.type == NL80211_IFTYPE_AP_VLAN) | 516 | if (sdata->vif.type == NL80211_IFTYPE_AP_VLAN) |
514 | sdata = container_of(sdata->bss, | 517 | sdata = container_of(sdata->bss, |