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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 09:53:46 +0000 (10:53 +0100)
commit2fe056d9791a2eba23d9a9a31842483bcc7f7bc1
treeffbd8f2aba9337e5d6b5308663f2fb4b919489ce
parent22406ed4e389b261cbe4353f3f6dfcecadd37e06
wcn36xx: fix RX BD rate mapping for 5GHz legacy rates

[ Upstream commit cfdf6b19e750f7de8ae71a26932f63b52e3bf74c ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/ath/wcn36xx/txrx.c