aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_sta.c
diff options
context:
space:
mode:
authorMohamed Abbas <mabbas@linux.intel.com>2008-04-04 19:59:58 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-04-08 16:44:43 -0400
commit84363e6e07f17f8cc580065260907ee3f0520485 (patch)
treef0113ebc756892a55543d8c6511291cad7ec6644 /net/mac80211/ieee80211_sta.c
parent380a942b9177dcae1429fdd0f3639f92d9ab139d (diff)
mac80211: notify mac from low level driver (iwlwifi)
Add new API to MAC80211 to allow low level driver to notify MAC with driver status. Signed-off-by: Mohamed Abbas <mabbas@linux.intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Acked-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
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);