developer | beb7437 | 2022-05-06 16:53:33 +0800 | [diff] [blame] | 1 | diff --git a/net/mac80211/main.c b/net/mac80211/main.c |
| 2 | index 3a442d8..f355cd3 100644 |
| 3 | --- a/net/mac80211/main.c |
| 4 | +++ b/net/mac80211/main.c |
| 5 | @@ -723,8 +723,9 @@ struct ieee80211_hw *ieee80211_alloc_hw_nm(size_t priv_data_len, |
| 6 | air_sched->aql_txq_limit_high = |
| 7 | IEEE80211_DEFAULT_AQL_TXQ_LIMIT_H; |
| 8 | } |
| 9 | - |
| 10 | - local->airtime_flags = AIRTIME_USE_TX | AIRTIME_USE_RX; |
| 11 | + if (wiphy_ext_feature_isset(local->hw.wiphy, |
| 12 | + NL80211_EXT_FEATURE_AIRTIME_FAIRNESS)) |
| 13 | + local->airtime_flags = AIRTIME_USE_TX | AIRTIME_USE_RX; |
| 14 | local->aql_threshold = IEEE80211_AQL_THRESHOLD; |
| 15 | atomic_set(&local->aql_total_pending_airtime, 0); |
| 16 | |
| 17 | -- |
| 18 | 2.18.0 |
| 19 | |