aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-12-23 07:15:31 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-12-28 16:54:49 -0500
commit9607e6b66a0d25ca63b70d54a4283fa13d8f7c9d (patch)
tree706cb2c2db2df69fa446eb3848b27107b67f2d25 /net/mac80211
parentd30506e0357e5448c7d38bb3739c451dbe4c174e (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')
-rw-r--r--net/mac80211/cfg.c6
-rw-r--r--net/mac80211/ibss.c4
-rw-r--r--net/mac80211/ieee80211_i.h5
-rw-r--r--net/mac80211/iface.c10
-rw-r--r--net/mac80211/key.c4
-rw-r--r--net/mac80211/main.c2
-rw-r--r--net/mac80211/mesh.c2
-rw-r--r--net/mac80211/mlme.c8
-rw-r--r--net/mac80211/pm.c2
-rw-r--r--net/mac80211/rx.c6
-rw-r--r--net/mac80211/scan.c12
-rw-r--r--net/mac80211/sta_info.c2
-rw-r--r--net/mac80211/status.c2
-rw-r--r--net/mac80211/tx.c2
-rw-r--r--net/mac80211/util.c10
15 files changed, 40 insertions, 37 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 63843e3e576a..fdac1bcbfcc0 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -78,17 +78,15 @@ static int ieee80211_change_iface(struct wiphy *wiphy,
78 enum nl80211_iftype type, u32 *flags, 78 enum nl80211_iftype type, u32 *flags,
79 struct vif_params *params) 79 struct vif_params *params)
80{ 80{
81 struct ieee80211_sub_if_data *sdata; 81 struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
82 int ret; 82 int ret;
83 83
84 if (netif_running(dev)) 84 if (ieee80211_sdata_running(sdata))
85 return -EBUSY; 85 return -EBUSY;
86 86
87 if (!nl80211_params_check(type, params)) 87 if (!nl80211_params_check(type, params))
88 return -EINVAL; 88 return -EINVAL;
89 89
90 sdata = IEEE80211_DEV_TO_SUB_IF(dev);
91
92 ret = ieee80211_if_change_type(sdata, type); 90 ret = ieee80211_if_change_type(sdata, type);
93 if (ret) 91 if (ret)
94 return ret; 92 return ret;
diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c
index ef6c6b2401d1..3a61f3ba85c9 100644
--- a/net/mac80211/ibss.c
+++ b/net/mac80211/ibss.c
@@ -744,7 +744,7 @@ static void ieee80211_ibss_work(struct work_struct *work)
744 if (WARN_ON(local->suspended)) 744 if (WARN_ON(local->suspended))
745 return; 745 return;
746 746
747 if (!netif_running(sdata->dev)) 747 if (!ieee80211_sdata_running(sdata))
748 return; 748 return;
749 749
750 if (local->scanning) 750 if (local->scanning)
@@ -827,7 +827,7 @@ void ieee80211_ibss_notify_scan_completed(struct ieee80211_local *local)
827 827
828 mutex_lock(&local->iflist_mtx); 828 mutex_lock(&local->iflist_mtx);
829 list_for_each_entry(sdata, &local->interfaces, list) { 829 list_for_each_entry(sdata, &local->interfaces, list) {
830 if (!netif_running(sdata->dev)) 830 if (!ieee80211_sdata_running(sdata))
831 continue; 831 continue;
832 if (sdata->vif.type != NL80211_IFTYPE_ADHOC) 832 if (sdata->vif.type != NL80211_IFTYPE_ADHOC)
833 continue; 833 continue;
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
index 88b0ba6c7484..adeae03c26a3 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -960,6 +960,11 @@ void ieee80211_remove_interfaces(struct ieee80211_local *local);
960u32 __ieee80211_recalc_idle(struct ieee80211_local *local); 960u32 __ieee80211_recalc_idle(struct ieee80211_local *local);
961void ieee80211_recalc_idle(struct ieee80211_local *local); 961void ieee80211_recalc_idle(struct ieee80211_local *local);
962 962
963static inline bool ieee80211_sdata_running(struct ieee80211_sub_if_data *sdata)
964{
965 return netif_running(sdata->dev);
966}
967
963/* tx handling */ 968/* tx handling */
964void ieee80211_clear_tx_pending(struct ieee80211_local *local); 969void ieee80211_clear_tx_pending(struct ieee80211_local *local);
965void ieee80211_tx_pending(unsigned long data); 970void ieee80211_tx_pending(unsigned long data);
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c
index a6e6da3cab70..1ceca14331d4 100644
--- a/net/mac80211/iface.c
+++ b/net/mac80211/iface.c
@@ -65,7 +65,7 @@ static int ieee80211_change_mac(struct net_device *dev, void *addr)
65 struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); 65 struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
66 int ret; 66 int ret;
67 67
68 if (netif_running(dev)) 68 if (ieee80211_sdata_running(sdata))
69 return -EBUSY; 69 return -EBUSY;
70 70
71 ret = eth_mac_addr(dev, addr); 71 ret = eth_mac_addr(dev, addr);
@@ -111,7 +111,7 @@ static int ieee80211_open(struct net_device *dev)
111 list_for_each_entry(nsdata, &local->interfaces, list) { 111 list_for_each_entry(nsdata, &local->interfaces, list) {
112 struct net_device *ndev = nsdata->dev; 112 struct net_device *ndev = nsdata->dev;
113 113
114 if (ndev != dev && netif_running(ndev)) { 114 if (ndev != dev && ieee80211_sdata_running(nsdata)) {
115 /* 115 /*
116 * Allow only a single IBSS interface to be up at any 116 * Allow only a single IBSS interface to be up at any
117 * time. This is restricted because beacon distribution 117 * time. This is restricted because beacon distribution
@@ -197,7 +197,7 @@ static int ieee80211_open(struct net_device *dev)
197 struct net_device *ndev = nsdata->dev; 197 struct net_device *ndev = nsdata->dev;
198 198
199 /* 199 /*
200 * No need to check netif_running since we do not allow 200 * No need to check running since we do not allow
201 * it to start up with this invalid address. 201 * it to start up with this invalid address.
202 */ 202 */
203 if (compare_ether_addr(null_addr, ndev->dev_addr) == 0) { 203 if (compare_ether_addr(null_addr, ndev->dev_addr) == 0) {
@@ -756,7 +756,7 @@ int ieee80211_if_change_type(struct ieee80211_sub_if_data *sdata,
756 * and goes into the requested mode. 756 * and goes into the requested mode.
757 */ 757 */
758 758
759 if (netif_running(sdata->dev)) 759 if (ieee80211_sdata_running(sdata))
760 return -EBUSY; 760 return -EBUSY;
761 761
762 /* Purge and reset type-dependent state. */ 762 /* Purge and reset type-dependent state. */
@@ -930,7 +930,7 @@ u32 __ieee80211_recalc_idle(struct ieee80211_local *local)
930 return ieee80211_idle_off(local, "scanning"); 930 return ieee80211_idle_off(local, "scanning");
931 931
932 list_for_each_entry(sdata, &local->interfaces, list) { 932 list_for_each_entry(sdata, &local->interfaces, list) {
933 if (!netif_running(sdata->dev)) 933 if (!ieee80211_sdata_running(sdata))
934 continue; 934 continue;
935 /* do not count disabled managed interfaces */ 935 /* do not count disabled managed interfaces */
936 if (sdata->vif.type == NL80211_IFTYPE_STATION && 936 if (sdata->vif.type == NL80211_IFTYPE_STATION &&
diff --git a/net/mac80211/key.c b/net/mac80211/key.c
index 32ee6d0ee34d..8160d9c5372e 100644
--- a/net/mac80211/key.c
+++ b/net/mac80211/key.c
@@ -443,7 +443,7 @@ void ieee80211_key_link(struct ieee80211_key *key,
443 add_todo(old_key, KEY_FLAG_TODO_DELETE); 443 add_todo(old_key, KEY_FLAG_TODO_DELETE);
444 444
445 add_todo(key, KEY_FLAG_TODO_ADD_DEBUGFS); 445 add_todo(key, KEY_FLAG_TODO_ADD_DEBUGFS);
446 if (netif_running(sdata->dev)) 446 if (ieee80211_sdata_running(sdata))
447 add_todo(key, KEY_FLAG_TODO_HWACCEL_ADD); 447 add_todo(key, KEY_FLAG_TODO_HWACCEL_ADD);
448 448
449 spin_unlock_irqrestore(&sdata->local->key_lock, flags); 449 spin_unlock_irqrestore(&sdata->local->key_lock, flags);
@@ -509,7 +509,7 @@ void ieee80211_enable_keys(struct ieee80211_sub_if_data *sdata)
509{ 509{
510 ASSERT_RTNL(); 510 ASSERT_RTNL();
511 511
512 if (WARN_ON(!netif_running(sdata->dev))) 512 if (WARN_ON(!ieee80211_sdata_running(sdata)))
513 return; 513 return;
514 514
515 ieee80211_todo_for_each_key(sdata, KEY_FLAG_TODO_HWACCEL_ADD); 515 ieee80211_todo_for_each_key(sdata, KEY_FLAG_TODO_HWACCEL_ADD);
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index d4426748ab10..e93bc558d785 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -212,7 +212,7 @@ void ieee80211_bss_info_change_notify(struct ieee80211_sub_if_data *sdata,
212 } 212 }
213 213
214 if (changed & BSS_CHANGED_BEACON_ENABLED) { 214 if (changed & BSS_CHANGED_BEACON_ENABLED) {
215 if (local->quiescing || !netif_running(sdata->dev) || 215 if (local->quiescing || !ieee80211_sdata_running(sdata) ||
216 test_bit(SCAN_SW_SCANNING, &local->scanning)) { 216 test_bit(SCAN_SW_SCANNING, &local->scanning)) {
217 sdata->vif.bss_conf.enable_beacon = false; 217 sdata->vif.bss_conf.enable_beacon = false;
218 } else { 218 } else {
diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c
index e0bd85e3d4b6..61080c5fad50 100644
--- a/net/mac80211/mesh.c
+++ b/net/mac80211/mesh.c
@@ -645,7 +645,7 @@ static void ieee80211_mesh_work(struct work_struct *work)
645 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; 645 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh;
646 struct sk_buff *skb; 646 struct sk_buff *skb;
647 647
648 if (!netif_running(sdata->dev)) 648 if (!ieee80211_sdata_running(sdata))
649 return; 649 return;
650 650
651 if (local->scanning) 651 if (local->scanning)
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 2f9ed8b9c3f0..7f9909340c09 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -604,7 +604,7 @@ static void ieee80211_chswitch_work(struct work_struct *work)
604 container_of(work, struct ieee80211_sub_if_data, u.mgd.chswitch_work); 604 container_of(work, struct ieee80211_sub_if_data, u.mgd.chswitch_work);
605 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; 605 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
606 606
607 if (!netif_running(sdata->dev)) 607 if (!ieee80211_sdata_running(sdata))
608 return; 608 return;
609 609
610 mutex_lock(&ifmgd->mtx); 610 mutex_lock(&ifmgd->mtx);
@@ -750,7 +750,7 @@ void ieee80211_recalc_ps(struct ieee80211_local *local, s32 latency)
750 } 750 }
751 751
752 list_for_each_entry(sdata, &local->interfaces, list) { 752 list_for_each_entry(sdata, &local->interfaces, list) {
753 if (!netif_running(sdata->dev)) 753 if (!ieee80211_sdata_running(sdata))
754 continue; 754 continue;
755 if (sdata->vif.type != NL80211_IFTYPE_STATION) 755 if (sdata->vif.type != NL80211_IFTYPE_STATION)
756 continue; 756 continue;
@@ -1263,7 +1263,7 @@ static void ieee80211_mgd_probe_ap(struct ieee80211_sub_if_data *sdata,
1263 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; 1263 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
1264 bool already = false; 1264 bool already = false;
1265 1265
1266 if (!netif_running(sdata->dev)) 1266 if (!ieee80211_sdata_running(sdata))
1267 return; 1267 return;
1268 1268
1269 if (sdata->local->scanning) 1269 if (sdata->local->scanning)
@@ -2118,7 +2118,7 @@ static void ieee80211_sta_work(struct work_struct *work)
2118 enum rx_mgmt_action rma; 2118 enum rx_mgmt_action rma;
2119 bool anybusy = false; 2119 bool anybusy = false;
2120 2120
2121 if (!netif_running(sdata->dev)) 2121 if (!ieee80211_sdata_running(sdata))
2122 return; 2122 return;
2123 2123
2124 if (local->scanning) 2124 if (local->scanning)
diff --git a/net/mac80211/pm.c b/net/mac80211/pm.c
index 05e161c3cbc5..913dc7e3b29e 100644
--- a/net/mac80211/pm.c
+++ b/net/mac80211/pm.c
@@ -93,7 +93,7 @@ int __ieee80211_suspend(struct ieee80211_hw *hw)
93 break; 93 break;
94 } 94 }
95 95
96 if (!netif_running(sdata->dev)) 96 if (!ieee80211_sdata_running(sdata))
97 continue; 97 continue;
98 98
99 /* disable beaconing */ 99 /* disable beaconing */
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
index 6cbf1a7b3157..f60dfca52196 100644
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -289,7 +289,7 @@ ieee80211_rx_monitor(struct ieee80211_local *local, struct sk_buff *origskb,
289 if (sdata->u.mntr_flags & MONITOR_FLAG_COOK_FRAMES) 289 if (sdata->u.mntr_flags & MONITOR_FLAG_COOK_FRAMES)
290 continue; 290 continue;
291 291
292 if (!netif_running(sdata->dev)) 292 if (!ieee80211_sdata_running(sdata))
293 continue; 293 continue;
294 294
295 if (prev_dev) { 295 if (prev_dev) {
@@ -2056,7 +2056,7 @@ static void ieee80211_rx_cooked_monitor(struct ieee80211_rx_data *rx,
2056 skb->protocol = htons(ETH_P_802_2); 2056 skb->protocol = htons(ETH_P_802_2);
2057 2057
2058 list_for_each_entry_rcu(sdata, &local->interfaces, list) { 2058 list_for_each_entry_rcu(sdata, &local->interfaces, list) {
2059 if (!netif_running(sdata->dev)) 2059 if (!ieee80211_sdata_running(sdata))
2060 continue; 2060 continue;
2061 2061
2062 if (sdata->vif.type != NL80211_IFTYPE_MONITOR || 2062 if (sdata->vif.type != NL80211_IFTYPE_MONITOR ||
@@ -2318,7 +2318,7 @@ static void __ieee80211_rx_handle_packet(struct ieee80211_hw *hw,
2318 } 2318 }
2319 if (!found_sta) { 2319 if (!found_sta) {
2320 list_for_each_entry_rcu(sdata, &local->interfaces, list) { 2320 list_for_each_entry_rcu(sdata, &local->interfaces, list) {
2321 if (!netif_running(sdata->dev)) 2321 if (!ieee80211_sdata_running(sdata))
2322 continue; 2322 continue;
2323 2323
2324 if (sdata->vif.type == NL80211_IFTYPE_MONITOR || 2324 if (sdata->vif.type == NL80211_IFTYPE_MONITOR ||
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 }
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c
index d1a77e79d7a9..f039e761aec1 100644
--- a/net/mac80211/sta_info.c
+++ b/net/mac80211/sta_info.c
@@ -367,7 +367,7 @@ int sta_info_insert(struct sta_info *sta)
367 * something inserts a STA (on one CPU) without holding the RTNL 367 * something inserts a STA (on one CPU) without holding the RTNL
368 * and another CPU turns off the net device. 368 * and another CPU turns off the net device.
369 */ 369 */
370 if (unlikely(!netif_running(sdata->dev))) { 370 if (unlikely(!ieee80211_sdata_running(sdata))) {
371 err = -ENETDOWN; 371 err = -ENETDOWN;
372 goto out_free; 372 goto out_free;
373 } 373 }
diff --git a/net/mac80211/status.c b/net/mac80211/status.c
index 0c0850d37dda..0ebcdda24200 100644
--- a/net/mac80211/status.c
+++ b/net/mac80211/status.c
@@ -351,7 +351,7 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb)
351 rcu_read_lock(); 351 rcu_read_lock();
352 list_for_each_entry_rcu(sdata, &local->interfaces, list) { 352 list_for_each_entry_rcu(sdata, &local->interfaces, list) {
353 if (sdata->vif.type == NL80211_IFTYPE_MONITOR) { 353 if (sdata->vif.type == NL80211_IFTYPE_MONITOR) {
354 if (!netif_running(sdata->dev)) 354 if (!ieee80211_sdata_running(sdata))
355 continue; 355 continue;
356 356
357 if ((sdata->u.mntr_flags & MONITOR_FLAG_COOK_FRAMES) && 357 if ((sdata->u.mntr_flags & MONITOR_FLAG_COOK_FRAMES) &&
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index ac48c86ae6b3..1593a2ffd67a 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -1469,7 +1469,7 @@ static void ieee80211_xmit(struct ieee80211_sub_if_data *sdata,
1469 1469
1470 list_for_each_entry_rcu(tmp_sdata, &local->interfaces, 1470 list_for_each_entry_rcu(tmp_sdata, &local->interfaces,
1471 list) { 1471 list) {
1472 if (!netif_running(tmp_sdata->dev)) 1472 if (!ieee80211_sdata_running(tmp_sdata))
1473 continue; 1473 continue;
1474 if (tmp_sdata->vif.type != NL80211_IFTYPE_AP) 1474 if (tmp_sdata->vif.type != NL80211_IFTYPE_AP)
1475 continue; 1475 continue;
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index b01972579c7c..5ffe9e831b66 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -468,7 +468,7 @@ void ieee80211_iterate_active_interfaces(
468 case NL80211_IFTYPE_MESH_POINT: 468 case NL80211_IFTYPE_MESH_POINT:
469 break; 469 break;
470 } 470 }
471 if (netif_running(sdata->dev)) 471 if (ieee80211_sdata_running(sdata))
472 iterator(data, sdata->vif.addr, 472 iterator(data, sdata->vif.addr,
473 &sdata->vif); 473 &sdata->vif);
474 } 474 }
@@ -502,7 +502,7 @@ void ieee80211_iterate_active_interfaces_atomic(
502 case NL80211_IFTYPE_MESH_POINT: 502 case NL80211_IFTYPE_MESH_POINT:
503 break; 503 break;
504 } 504 }
505 if (netif_running(sdata->dev)) 505 if (ieee80211_sdata_running(sdata))
506 iterator(data, sdata->vif.addr, 506 iterator(data, sdata->vif.addr,
507 &sdata->vif); 507 &sdata->vif);
508 } 508 }
@@ -1056,7 +1056,7 @@ int ieee80211_reconfig(struct ieee80211_local *local)
1056 list_for_each_entry(sdata, &local->interfaces, list) { 1056 list_for_each_entry(sdata, &local->interfaces, list) {
1057 if (sdata->vif.type != NL80211_IFTYPE_AP_VLAN && 1057 if (sdata->vif.type != NL80211_IFTYPE_AP_VLAN &&
1058 sdata->vif.type != NL80211_IFTYPE_MONITOR && 1058 sdata->vif.type != NL80211_IFTYPE_MONITOR &&
1059 netif_running(sdata->dev)) { 1059 ieee80211_sdata_running(sdata)) {
1060 conf.vif = &sdata->vif; 1060 conf.vif = &sdata->vif;
1061 conf.type = sdata->vif.type; 1061 conf.type = sdata->vif.type;
1062 conf.mac_addr = sdata->vif.addr; 1062 conf.mac_addr = sdata->vif.addr;
@@ -1103,7 +1103,7 @@ int ieee80211_reconfig(struct ieee80211_local *local)
1103 /* Finally also reconfigure all the BSS information */ 1103 /* Finally also reconfigure all the BSS information */
1104 list_for_each_entry(sdata, &local->interfaces, list) { 1104 list_for_each_entry(sdata, &local->interfaces, list) {
1105 u32 changed = ~0; 1105 u32 changed = ~0;
1106 if (!netif_running(sdata->dev)) 1106 if (!ieee80211_sdata_running(sdata))
1107 continue; 1107 continue;
1108 switch (sdata->vif.type) { 1108 switch (sdata->vif.type) {
1109 case NL80211_IFTYPE_STATION: 1109 case NL80211_IFTYPE_STATION:
@@ -1131,7 +1131,7 @@ int ieee80211_reconfig(struct ieee80211_local *local)
1131 1131
1132 /* add back keys */ 1132 /* add back keys */
1133 list_for_each_entry(sdata, &local->interfaces, list) 1133 list_for_each_entry(sdata, &local->interfaces, list)
1134 if (netif_running(sdata->dev)) 1134 if (ieee80211_sdata_running(sdata))
1135 ieee80211_enable_keys(sdata); 1135 ieee80211_enable_keys(sdata);
1136 1136
1137 ieee80211_wake_queues_by_reason(hw, 1137 ieee80211_wake_queues_by_reason(hw,