]> git.baikalelectronics.ru Git - kernel.git/commit
rtl8xxxu: Pass tx_info to fill_txdesc in order to have access to retry count
authorJes Sorensen <Jes.Sorensen@redhat.com>
Fri, 18 Nov 2016 21:44:27 +0000 (16:44 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 25 Nov 2016 09:51:01 +0000 (11:51 +0200)
commit07cd04e8fb72afe4e9aea823cadca57d3e9a15f4
tree245c53c8b205c4a26eceb52946d5f04a2f8832ae
parentd15666735c2abfcaca1ff8a1ebfa290015db4654
rtl8xxxu: Pass tx_info to fill_txdesc in order to have access to retry count

In order to obtain retry count for a given rate we need to pass the
full struct ieee80211_tx_info to the function setting the rate in he
TX descriptor.

This uncovered a huge bug where the old code would use struct
ieee80211_rate.flags to test for rate parameters, which is always
zero, instead of the flags value from struct ieee80211_tx_rate.

Time to find a brown paper bag :(

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c