aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/sta_info.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-01-20 07:55:18 -0500
committerJohn W. Linville <linville@tuxdriver.com>2012-02-06 14:48:24 -0500
commit077f49392819608084c6d8d20e3dcca230afe07d (patch)
tree7b19e4537933e9c7e0524421d16701576c4b74b2 /net/mac80211/sta_info.c
parentc8987876e9bf9b7b83e75b325586bc77ea8ac825 (diff)
mac80211: simplify AP_VLAN handling
Setting keys and updating TKIP keys must use the BSS sdata (not AP_VLAN), so we translate. Move the translation into driver-ops wrappers instead of having it inline in the code to simplify the normal code flow. The same can be done for sta_add/remove which already does the translation in the wrapper. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
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,