Report tx rate from tx status packets instead of receiving periodic mcu event. This improves flexibility, accuracy and AQL performance, and simplifies code flow for better readability. Add some code cleanup Changes since v3: - fix possible NULL pointer dereference in mt7921_mac_add_txs_skb() Changes since v2: - remove magic numbers and introduce definitions for them Changes since v1: - fix rate flags in mt7921_mac_sta_poll() for ht rates Lorenzo Bianconi (5): mt76: mt7921: start reworking tx rate reporting mt76: mt7921: add support for tx status reporting mt76: mt7921: report tx rate directly from tx status mt76: mt7921: remove mcu rate reporting code mt76: mt7921: remove mt7921_sta_stats .../net/wireless/mediatek/mt76/mt7921/init.c | 1 - .../net/wireless/mediatek/mt76/mt7921/mac.c | 369 ++++++++++++------ .../net/wireless/mediatek/mt76/mt7921/mac.h | 20 + .../net/wireless/mediatek/mt76/mt7921/main.c | 28 +- .../net/wireless/mediatek/mt76/mt7921/mcu.c | 133 ------- .../net/wireless/mediatek/mt76/mt7921/mcu.h | 47 --- .../wireless/mediatek/mt76/mt7921/mt7921.h | 21 +- 7 files changed, 293 insertions(+), 326 deletions(-) -- 2.31.1