ath11k: Reconfigure hardware rate for WCN6855 after vdev is started
authorBaochen Qiang <quic_bqiang@quicinc.com>
Wed, 12 Jan 2022 02:54:00 +0000 (10:54 +0800)
committerKalle Valo <quic_kvalo@quicinc.com>
Mon, 17 Jan 2022 12:42:35 +0000 (14:42 +0200)
commitdc7ff75690ea7e1920be08b2b9cc89647667bb90
treea30e43b90a627e9c1680e56b0138c4748eacc6ee
parenta063b650ce5d72585d780d653a123f9f273b7877
ath11k: Reconfigure hardware rate for WCN6855 after vdev is started

There is an issue that WCN6855 tries to connect to an AP using
a hardware rate of 1Mb/s , even though the AP has announced
expected rates as [24, 36, 48, 54] in Probe Response frame.

The reason is that WCN6855 firmware clears hardware rate info
of management frames when vdev starts and uses 1Mb/s as default.
To solve it, reconfigure the rate after vdev is started.

Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-01720.1-QCAHSPSWPL_V1_V2_SILICONZ_LITE-1

Signed-off-by: Baochen Qiang <quic_bqiang@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20220112025400.2222-1-quic_bqiang@quicinc.com
drivers/net/wireless/ath/ath11k/core.h
drivers/net/wireless/ath/ath11k/mac.c