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 498cdd435d73..cb06d8e56496 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -1390,7 +1390,11 @@ static int ieee80211_skb_resize(struct ieee80211_local *local,
1390static bool need_dynamic_ps(struct ieee80211_local *local) 1390static bool need_dynamic_ps(struct ieee80211_local *local)
1391{ 1391{
1392 /* driver doesn't support power save */ 1392 /* driver doesn't support power save */
1393 if (!(local->hw.flags & IEEE80211_HW_PS_NULLFUNC_STACK)) 1393 if (!(local->hw.flags & IEEE80211_HW_SUPPORTS_PS))
1394 return false;
1395
1396 /* hardware does dynamic power save */
1397 if (local->hw.flags & IEEE80211_HW_SUPPORTS_DYNAMIC_PS)
1394 return false; 1398 return false;
1395 1399
1396 /* dynamic power save disabled */ 1400 /* dynamic power save disabled */