diff options
Diffstat (limited to 'net/mac80211/sta_info.c')
-rw-r--r-- | net/mac80211/sta_info.c | 5 |
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 |