Advertisement
Guest User

Untitled

a guest
Jun 16th, 2022
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.13 KB | None | 0 0
  1. --- a/net/mac80211/tx.c
  2. +++ b/net/mac80211/tx.c
  3. @@ -3819,9 +3819,9 @@ encap_out:
  4.      * Because of that, we register estimated tx time as airtime if either
  5.      * AQL or ATF support is missing.
  6.      */
  7. -   if (!wiphy_ext_feature_isset(local->hw.wiphy, NL80211_EXT_FEATURE_AQL) ||
  8. -       !wiphy_ext_feature_isset(local->hw.wiphy,
  9. -                    NL80211_EXT_FEATURE_AIRTIME_FAIRNESS))
  10. +   if (!wiphy_ext_feature_isset(local->hw.wiphy, NL80211_EXT_FEATURE_AQL) &&
  11. +       wiphy_ext_feature_isset(local->hw.wiphy,
  12. +                   NL80211_EXT_FEATURE_AIRTIME_FAIRNESS))
  13.         ieee80211_register_airtime(txq, airtime, 0);
  14.  
  15.     if (!wiphy_ext_feature_isset(local->hw.wiphy, NL80211_EXT_FEATURE_AQL))
  16. @@ -3912,14 +3912,23 @@ static void __ieee80211_insert_txq(struc
  17.     struct airtime_info *air_info = to_airtime_info(&txqi->txq);
  18.     u32 aql_time = 0;
  19.  
  20. +   airtime_sched_delete(&air_sched->active_txqs, &air_info->schedule_order);
  21. +
  22. +   if (!wiphy_ext_feature_isset(local->hw.wiphy,
  23. +                    NL80211_EXT_FEATURE_AIRTIME_FAIRNESS)) {
  24. +       air_info->v_t_cur = ktime_get_boottime_ns();
  25. +       goto out;
  26. +   }
  27. +
  28.     if (wiphy_ext_feature_isset(local->hw.wiphy, NL80211_EXT_FEATURE_AQL)) {
  29.         aql_time = atomic_read(&air_info->aql_tx_pending);
  30.         aql_time *= air_info->weight_reciprocal;
  31.         aql_time >>= IEEE80211_RECIPROCAL_SHIFT_STA - IEEE80211_WEIGHT_SHIFT;
  32.     }
  33.  
  34. -   airtime_sched_delete(&air_sched->active_txqs, &air_info->schedule_order);
  35.     air_info->v_t_cur = air_info->v_t + aql_time;
  36. +
  37. +out:
  38.     airtime_sched_insert(&air_sched->active_txqs, &air_info->schedule_order);
  39.  }
  40.  
  41. --- a/drivers/net/wireless/ath/ath10k/mac.c
  42. +++ b/drivers/net/wireless/ath/ath10k/mac.c
  43. @@ -10100,11 +10100,6 @@ int ath10k_mac_register(struct ath10k *a
  44.         wiphy_ext_feature_set(ar->hw->wiphy,
  45.                       NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT);
  46.  
  47. -   if (ath10k_peer_stats_enabled(ar) ||
  48. -       test_bit(WMI_SERVICE_REPORT_AIRTIME, ar->wmi.svc_map))
  49. -       wiphy_ext_feature_set(ar->hw->wiphy,
  50. -                     NL80211_EXT_FEATURE_AIRTIME_FAIRNESS);
  51. -
  52.     if (test_bit(WMI_SERVICE_RTT_RESPONDER_ROLE, ar->wmi.svc_map))
  53.         wiphy_ext_feature_set(ar->hw->wiphy,
  54.                       NL80211_EXT_FEATURE_ENABLE_FTM_RESPONDER);
  55.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement