]> git.baikalelectronics.ru Git - kernel.git/commit
mt76x2: fix mrr idx/count estimation in mt76x2_mac_fill_tx_status()
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>
Mon, 4 Jun 2018 09:19:41 +0000 (11:19 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 27 Jun 2018 16:05:15 +0000 (19:05 +0300)
commita8ae92fa2680e8a6f2378c288b575430dd7064f9
tree7f2f7b0fef5b9275689934f3fb7f042274ce3d3e
parent0daa92349b10742de642e1124061860e5c3af1ce
mt76x2: fix mrr idx/count estimation in mt76x2_mac_fill_tx_status()

Fix mcs and attempt count estimation in mt76x2_mac_fill_tx_status routine
if the number of tx retries reported by the hw is grater than
IEEE80211_TX_MAX_RATES

Fixes: a5cc4a4a96dc ("mt76: add driver code for MT76x2e")
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mediatek/mt76/mt76x2_mac.c