aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/mlme.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-12-23 07:15:44 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-12-28 16:55:06 -0500
commit98b6218388e345064c3f2d3c161383a18274c638 (patch)
tree3df881c8e15947aeefe31da7fa83980a1530aed3 /net/wireless/mlme.c
parente4da8c37af626001ff704fb29ea14eb58f5f7208 (diff)
mac80211/cfg80211: add station events
When, for instance, a new IBSS peer is found, userspace wants to be notified. Add events for all new stations that mac80211 learns about. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless/mlme.c')
-rw-r--r--net/wireless/mlme.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/net/wireless/mlme.c b/net/wireless/mlme.c
index 11f6469b3f98..3dba19e17271 100644
--- a/net/wireless/mlme.c
+++ b/net/wireless/mlme.c
@@ -707,3 +707,13 @@ void cfg80211_remain_on_channel_expired(struct net_device *dev,
707 channel_type, gfp); 707 channel_type, gfp);
708} 708}
709EXPORT_SYMBOL(cfg80211_remain_on_channel_expired); 709EXPORT_SYMBOL(cfg80211_remain_on_channel_expired);
710
711void cfg80211_new_sta(struct net_device *dev, const u8 *mac_addr,
712 struct station_info *sinfo, gfp_t gfp)
713{
714 struct wiphy *wiphy = dev->ieee80211_ptr->wiphy;
715 struct cfg80211_registered_device *rdev = wiphy_to_dev(wiphy);
716
717 nl80211_send_sta_event(rdev, dev, mac_addr, sinfo, gfp);
718}
719EXPORT_SYMBOL(cfg80211_new_sta);