diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-04-23 10:13:26 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-05-06 15:14:36 -0400 |
commit | 2d0ddec5b2b859f06116f631fc0ffe94fbceb556 (patch) | |
tree | 9bf3cdfcbbefcb34f5984e6d797f488ebe358196 /net/mac80211/scan.c | |
parent | 57c4d7b4c4986037be51476b8e3025d5ba18d8b8 (diff) |
mac80211: unify config_interface and bss_info_changed
The config_interface method is a little strange, it contains the
BSSID and beacon updates, while bss_info_changed contains most
other BSS information for each interface. This patch removes
config_interface and rolls all the information it previously
passed to drivers into bss_info_changed.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/scan.c')
-rw-r--r-- | net/mac80211/scan.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c index 086d21645cbc..04e270abdd22 100644 --- a/net/mac80211/scan.c +++ b/net/mac80211/scan.c | |||
@@ -346,8 +346,8 @@ void ieee80211_scan_completed(struct ieee80211_hw *hw, bool aborted) | |||
346 | if (sdata->vif.type == NL80211_IFTYPE_AP || | 346 | if (sdata->vif.type == NL80211_IFTYPE_AP || |
347 | sdata->vif.type == NL80211_IFTYPE_ADHOC || | 347 | sdata->vif.type == NL80211_IFTYPE_ADHOC || |
348 | sdata->vif.type == NL80211_IFTYPE_MESH_POINT) | 348 | sdata->vif.type == NL80211_IFTYPE_MESH_POINT) |
349 | ieee80211_if_config(sdata, | 349 | ieee80211_bss_info_change_notify( |
350 | IEEE80211_IFCC_BEACON_ENABLED); | 350 | sdata, BSS_CHANGED_BEACON_ENABLED); |
351 | } | 351 | } |
352 | mutex_unlock(&local->iflist_mtx); | 352 | mutex_unlock(&local->iflist_mtx); |
353 | 353 | ||
@@ -387,8 +387,8 @@ static int ieee80211_start_sw_scan(struct ieee80211_local *local) | |||
387 | if (sdata->vif.type == NL80211_IFTYPE_AP || | 387 | if (sdata->vif.type == NL80211_IFTYPE_AP || |
388 | sdata->vif.type == NL80211_IFTYPE_ADHOC || | 388 | sdata->vif.type == NL80211_IFTYPE_ADHOC || |
389 | sdata->vif.type == NL80211_IFTYPE_MESH_POINT) | 389 | sdata->vif.type == NL80211_IFTYPE_MESH_POINT) |
390 | ieee80211_if_config(sdata, | 390 | ieee80211_bss_info_change_notify( |
391 | IEEE80211_IFCC_BEACON_ENABLED); | 391 | sdata, BSS_CHANGED_BEACON_ENABLED); |
392 | 392 | ||
393 | if (sdata->vif.type == NL80211_IFTYPE_STATION) { | 393 | if (sdata->vif.type == NL80211_IFTYPE_STATION) { |
394 | if (sdata->u.mgd.flags & IEEE80211_STA_ASSOCIATED) { | 394 | if (sdata->u.mgd.flags & IEEE80211_STA_ASSOCIATED) { |