168d6458a523bf00b105050bea1354461ae438b9
[openwrt/staging/aparcar.git] /
1 From: Felix Fietkau <nbd@nbd.name>
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
6 All drivers using airtime fairness are calling ieee80211_sta_register_airtime
7 directly
8
9 Signed-off-by: Felix Fietkau <nbd@nbd.name>
10 ---
11
12 --- a/net/mac80211/status.c
13 +++ b/net/mac80211/status.c
14 @@ -997,12 +997,6 @@ static void __ieee80211_tx_status(struct
15 ieee80211_sta_tx_notify(sta->sdata, (void *) skb->data,
16 acked, info->status.tx_time);
17
18 - if (info->status.tx_time &&
19 - wiphy_ext_feature_isset(local->hw.wiphy,
20 - NL80211_EXT_FEATURE_AIRTIME_FAIRNESS))
21 - ieee80211_sta_register_airtime(&sta->sta, tid,
22 - info->status.tx_time, 0);
23 -
24 if ((tx_time_est = ieee80211_info_get_tx_time_est(info)) > 0) {
25 /* Do this here to avoid the expensive lookup of the sta
26 * in ieee80211_report_used_skb().