OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Oct 2018 23:59:12 +0000 (16:59 -0700)
commit35ba785489480a7ac54d3287ef15374c574c03a7
tree54ee59234cc9c1afb0a5a9ad901ec6f097426f1a
parent882791abd11d3020694baa72b2782ad5a98da2e1
mt76x2: fix mrr idx/count estimation in mt76x2_mac_fill_tx_status()

[ Upstream commit 2d1e9be0016230f3707812243561fbd16f1aea4b ]

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: 7bc04215a66b ("mt76: add driver code for MT76x2e")
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/mediatek/mt76/mt76x2_mac.c