wcn36xx: fix RX BD rate mapping for 5GHz legacy rates
authorBenjamin Li <benl@squareup.com>
Thu, 4 Nov 2021 01:05:48 +0000 (18:05 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 8 Nov 2021 13:22:52 +0000 (15:22 +0200)
commitcfdf6b19e750f7de8ae71a26932f63b52e3bf74c
treebcc8cc3ec74a535480c73c9b75b24ed8ee4a5c83
parentc9c5608fafe4dae975c9644c7d14c51ad3b0ed73
wcn36xx: fix RX BD rate mapping for 5GHz legacy rates

The linear mapping between the BD rate field and the driver's 5GHz
legacy rates table (wcn_5ghz_rates) does not only apply for the latter
four rates -- it applies to all eight rates.

Fixes: 6ea131acea98 ("wcn36xx: Fix warning due to bad rate_idx")
Signed-off-by: Benjamin Li <benl@squareup.com>
Tested-by: Loic Poulain <loic.poulain@linaro.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20211104010548.1107405-3-benl@squareup.com
drivers/net/wireless/ath/wcn36xx/txrx.c