2
0

320-mac80211-remove-tx-status-call-to-ieee80211_sta_regi.patch 900 B

1234567891011121314151617181920212223242526
  1. From: Felix Fietkau <[email protected]>
  2. Date: Mon, 17 Aug 2020 13:29:12 +0200
  3. Subject: [PATCH] mac80211: remove tx status call to
  4. ieee80211_sta_register_airtime
  5. All drivers using airtime fairness are calling ieee80211_sta_register_airtime
  6. directly
  7. Signed-off-by: Felix Fietkau <[email protected]>
  8. ---
  9. --- a/net/mac80211/status.c
  10. +++ b/net/mac80211/status.c
  11. @@ -995,12 +995,6 @@ static void __ieee80211_tx_status(struct
  12. ieee80211_sta_tx_notify(sta->sdata, (void *) skb->data,
  13. acked, info->status.tx_time);
  14. - if (info->status.tx_time &&
  15. - wiphy_ext_feature_isset(local->hw.wiphy,
  16. - NL80211_EXT_FEATURE_AIRTIME_FAIRNESS))
  17. - ieee80211_sta_register_airtime(&sta->sta, tid,
  18. - info->status.tx_time, 0);
  19. -
  20. if ((tx_time_est = ieee80211_info_get_tx_time_est(info)) > 0) {
  21. /* Do this here to avoid the expensive lookup of the sta
  22. * in ieee80211_report_used_skb().