• F
    ath9k: clean up and fix ath_tx_count_airtime · a6e56d74
    Felix Fietkau 提交于
    ath_tx_count_airtime is doing a lot of unnecessary work:
    
    - Redundant station lookup
    - Redundant rcu_read_lock/unlock
    - Useless memcpy of bf->rates
    - Useless NULL check of bf->bf_mpdu
    - Redundant lookup of the skb tid
    
    Additionally, it tries to look up the mac80211 queue index from the txq,
    which fails if the frame was delivered via the power save queue.
    
    This patch fixes all of these issues by passing down the right set of
    pointers instead of doing extra work
    
    Cc: stable@vger.kernel.org
    Fixes: 63fefa05 ("ath9k: Introduce airtime fairness scheduling between stations")
    Signed-off-by: NFelix Fietkau <nbd@nbd.name>
    Acked-by: NToke Høiland-Jørgensen <toke@toke.dk>
    Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
    a6e56d74
xmit.c 74.6 KB