aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211
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/mac80211
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/mac80211')
-rw-r--r--net/mac80211/sta_info.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c
index f039e761aec1..47da552ce8a6 100644
--- a/net/mac80211/sta_info.c
+++ b/net/mac80211/sta_info.c
@@ -359,6 +359,7 @@ int sta_info_insert(struct sta_info *sta)
359{ 359{
360 struct ieee80211_local *local = sta->local; 360 struct ieee80211_local *local = sta->local;
361 struct ieee80211_sub_if_data *sdata = sta->sdata; 361 struct ieee80211_sub_if_data *sdata = sta->sdata;
362 struct station_info sinfo;
362 unsigned long flags; 363 unsigned long flags;
363 int err = 0; 364 int err = 0;
364 365
@@ -408,6 +409,10 @@ int sta_info_insert(struct sta_info *sta)
408 409
409 spin_unlock_irqrestore(&local->sta_lock, flags); 410 spin_unlock_irqrestore(&local->sta_lock, flags);
410 411
412 sinfo.filled = 0;
413 sinfo.generation = local->sta_generation;
414 cfg80211_new_sta(sdata->dev, sta->sta.addr, &sinfo, GFP_ATOMIC);
415
411#ifdef CONFIG_MAC80211_DEBUGFS 416#ifdef CONFIG_MAC80211_DEBUGFS
412 /* 417 /*
413 * Debugfs entry adding might sleep, so schedule process 418 * Debugfs entry adding might sleep, so schedule process