diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-12-23 07:15:31 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-12-28 16:54:49 -0500 |
commit | 9607e6b66a0d25ca63b70d54a4283fa13d8f7c9d (patch) | |
tree | 706cb2c2db2df69fa446eb3848b27107b67f2d25 /net/mac80211/scan.c | |
parent | d30506e0357e5448c7d38bb3739c451dbe4c174e (diff) |
mac80211: add ieee80211_sdata_running
Instead of always using netif_running(sdata->dev)
use ieee80211_sdata_running(sdata) now which is
just an inline containing netif_running() for now.
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 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c index 66da0ab1d8fa..ae1830056521 100644 --- a/net/mac80211/scan.c +++ b/net/mac80211/scan.c | |||
@@ -346,7 +346,7 @@ void ieee80211_scan_completed(struct ieee80211_hw *hw, bool aborted) | |||
346 | 346 | ||
347 | mutex_lock(&local->iflist_mtx); | 347 | mutex_lock(&local->iflist_mtx); |
348 | list_for_each_entry(sdata, &local->interfaces, list) { | 348 | list_for_each_entry(sdata, &local->interfaces, list) { |
349 | if (!netif_running(sdata->dev)) | 349 | if (!ieee80211_sdata_running(sdata)) |
350 | continue; | 350 | continue; |
351 | 351 | ||
352 | /* Tell AP we're back */ | 352 | /* Tell AP we're back */ |
@@ -396,7 +396,7 @@ static int ieee80211_start_sw_scan(struct ieee80211_local *local) | |||
396 | 396 | ||
397 | mutex_lock(&local->iflist_mtx); | 397 | mutex_lock(&local->iflist_mtx); |
398 | list_for_each_entry(sdata, &local->interfaces, list) { | 398 | list_for_each_entry(sdata, &local->interfaces, list) { |
399 | if (!netif_running(sdata->dev)) | 399 | if (!ieee80211_sdata_running(sdata)) |
400 | continue; | 400 | continue; |
401 | 401 | ||
402 | /* disable beaconing */ | 402 | /* disable beaconing */ |
@@ -526,7 +526,7 @@ static int ieee80211_scan_state_decision(struct ieee80211_local *local, | |||
526 | /* check if at least one STA interface is associated */ | 526 | /* check if at least one STA interface is associated */ |
527 | mutex_lock(&local->iflist_mtx); | 527 | mutex_lock(&local->iflist_mtx); |
528 | list_for_each_entry(sdata, &local->interfaces, list) { | 528 | list_for_each_entry(sdata, &local->interfaces, list) { |
529 | if (!netif_running(sdata->dev)) | 529 | if (!ieee80211_sdata_running(sdata)) |
530 | continue; | 530 | continue; |
531 | 531 | ||
532 | if (sdata->vif.type == NL80211_IFTYPE_STATION) { | 532 | if (sdata->vif.type == NL80211_IFTYPE_STATION) { |
@@ -571,7 +571,7 @@ static void ieee80211_scan_state_leave_oper_channel(struct ieee80211_local *loca | |||
571 | */ | 571 | */ |
572 | mutex_lock(&local->iflist_mtx); | 572 | mutex_lock(&local->iflist_mtx); |
573 | list_for_each_entry(sdata, &local->interfaces, list) { | 573 | list_for_each_entry(sdata, &local->interfaces, list) { |
574 | if (!netif_running(sdata->dev)) | 574 | if (!ieee80211_sdata_running(sdata)) |
575 | continue; | 575 | continue; |
576 | 576 | ||
577 | if (sdata->vif.type == NL80211_IFTYPE_STATION) { | 577 | if (sdata->vif.type == NL80211_IFTYPE_STATION) { |
@@ -603,7 +603,7 @@ static void ieee80211_scan_state_enter_oper_channel(struct ieee80211_local *loca | |||
603 | */ | 603 | */ |
604 | mutex_lock(&local->iflist_mtx); | 604 | mutex_lock(&local->iflist_mtx); |
605 | list_for_each_entry(sdata, &local->interfaces, list) { | 605 | list_for_each_entry(sdata, &local->interfaces, list) { |
606 | if (!netif_running(sdata->dev)) | 606 | if (!ieee80211_sdata_running(sdata)) |
607 | continue; | 607 | continue; |
608 | 608 | ||
609 | /* Tell AP we're back */ | 609 | /* Tell AP we're back */ |
@@ -727,7 +727,7 @@ void ieee80211_scan_work(struct work_struct *work) | |||
727 | /* | 727 | /* |
728 | * Avoid re-scheduling when the sdata is going away. | 728 | * Avoid re-scheduling when the sdata is going away. |
729 | */ | 729 | */ |
730 | if (!netif_running(sdata->dev)) { | 730 | if (!ieee80211_sdata_running(sdata)) { |
731 | ieee80211_scan_completed(&local->hw, true); | 731 | ieee80211_scan_completed(&local->hw, true); |
732 | return; | 732 | return; |
733 | } | 733 | } |