aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/sta_info.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/sta_info.c')
-rw-r--r--net/mac80211/sta_info.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c
index fa0823892b2d..8e1e361c2232 100644
--- a/net/mac80211/sta_info.c
+++ b/net/mac80211/sta_info.c
@@ -764,14 +764,8 @@ int __must_check __sta_info_destroy(struct sta_info *sta)
764 } 764 }
765 } 765 }
766 766
767 if (sta->uploaded) { 767 if (sta->uploaded)
768 if (sdata->vif.type == NL80211_IFTYPE_AP_VLAN)
769 sdata = container_of(sdata->bss,
770 struct ieee80211_sub_if_data,
771 u.ap);
772 drv_sta_remove(local, sdata, &sta->sta); 768 drv_sta_remove(local, sdata, &sta->sta);
773 sdata = sta->sdata;
774 }
775 769
776 /* 770 /*
777 * At this point, after we wait for an RCU grace period, 771 * At this point, after we wait for an RCU grace period,