aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_sta.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/ieee80211_sta.c')
-rw-r--r--net/mac80211/ieee80211_sta.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211_sta.c b/net/mac80211/ieee80211_sta.c
index 9e30333aa81e..89481c919cb6 100644
--- a/net/mac80211/ieee80211_sta.c
+++ b/net/mac80211/ieee80211_sta.c
@@ -4225,3 +4225,26 @@ int ieee80211_sta_disassociate(struct net_device *dev, u16 reason)
4225 ieee80211_set_disassoc(dev, ifsta, 0); 4225 ieee80211_set_disassoc(dev, ifsta, 0);
4226 return 0; 4226 return 0;
4227} 4227}
4228
4229void ieee80211_notify_mac(struct ieee80211_hw *hw,
4230 enum ieee80211_notification_types notif_type)
4231{
4232 struct ieee80211_local *local = hw_to_local(hw);
4233 struct ieee80211_sub_if_data *sdata;
4234
4235 switch (notif_type) {
4236 case IEEE80211_NOTIFY_RE_ASSOC:
4237 rcu_read_lock();
4238 list_for_each_entry_rcu(sdata, &local->interfaces, list) {
4239
4240 if (sdata->vif.type == IEEE80211_IF_TYPE_STA) {
4241 ieee80211_sta_req_auth(sdata->dev,
4242 &sdata->u.sta);
4243 }
4244
4245 }
4246 rcu_read_unlock();
4247 break;
4248 }
4249}
4250EXPORT_SYMBOL(ieee80211_notify_mac);