aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r--net/mac80211/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index b864ebc6ab8f..43e5aadd7a89 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -564,7 +564,7 @@ ieee80211_get_vif_queues(struct ieee80211_local *local,
564{ 564{
565 unsigned int queues; 565 unsigned int queues;
566 566
567 if (sdata && local->hw.flags & IEEE80211_HW_QUEUE_CONTROL) { 567 if (sdata && ieee80211_hw_check(&local->hw, QUEUE_CONTROL)) {
568 int ac; 568 int ac;
569 569
570 queues = 0; 570 queues = 0;
@@ -592,7 +592,7 @@ void __ieee80211_flush_queues(struct ieee80211_local *local,
592 * If no queue was set, or if the HW doesn't support 592 * If no queue was set, or if the HW doesn't support
593 * IEEE80211_HW_QUEUE_CONTROL - flush all queues 593 * IEEE80211_HW_QUEUE_CONTROL - flush all queues
594 */ 594 */
595 if (!queues || !(local->hw.flags & IEEE80211_HW_QUEUE_CONTROL)) 595 if (!queues || !ieee80211_hw_check(&local->hw, QUEUE_CONTROL))
596 queues = ieee80211_get_vif_queues(local, sdata); 596 queues = ieee80211_get_vif_queues(local, sdata);
597 597
598 ieee80211_stop_queues_by_reason(&local->hw, queues, 598 ieee80211_stop_queues_by_reason(&local->hw, queues,
@@ -2046,7 +2046,7 @@ int ieee80211_reconfig(struct ieee80211_local *local)
2046 * about the sessions, but we and the AP still think they 2046 * about the sessions, but we and the AP still think they
2047 * are active. This is really a workaround though. 2047 * are active. This is really a workaround though.
2048 */ 2048 */
2049 if (hw->flags & IEEE80211_HW_AMPDU_AGGREGATION) { 2049 if (ieee80211_hw_check(hw, AMPDU_AGGREGATION)) {
2050 mutex_lock(&local->sta_mtx); 2050 mutex_lock(&local->sta_mtx);
2051 2051
2052 list_for_each_entry(sta, &local->sta_list, list) { 2052 list_for_each_entry(sta, &local->sta_list, list) {