aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/tx.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r--net/mac80211/tx.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index ac48c86ae6b3..7bba49d2b6ca 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -1418,6 +1418,10 @@ static bool need_dynamic_ps(struct ieee80211_local *local)
1418 if (!local->ps_sdata) 1418 if (!local->ps_sdata)
1419 return false; 1419 return false;
1420 1420
1421 /* No point if we're going to suspend */
1422 if (local->quiescing)
1423 return false;
1424
1421 return true; 1425 return true;
1422} 1426}
1423 1427
@@ -1469,7 +1473,7 @@ static void ieee80211_xmit(struct ieee80211_sub_if_data *sdata,
1469 1473
1470 list_for_each_entry_rcu(tmp_sdata, &local->interfaces, 1474 list_for_each_entry_rcu(tmp_sdata, &local->interfaces,
1471 list) { 1475 list) {
1472 if (!netif_running(tmp_sdata->dev)) 1476 if (!ieee80211_sdata_running(tmp_sdata))
1473 continue; 1477 continue;
1474 if (tmp_sdata->vif.type != NL80211_IFTYPE_AP) 1478 if (tmp_sdata->vif.type != NL80211_IFTYPE_AP)
1475 continue; 1479 continue;