wifi: rtw89: set data lowest rate according to AP supported rate
authorChih-Kang Chang <gary.chang@realtek.com>
Mon, 20 Mar 2023 09:31:10 +0000 (17:31 +0800)
committerKalle Valo <kvalo@kernel.org>
Mon, 3 Apr 2023 13:37:06 +0000 (16:37 +0300)
commite5307c9cd7ee50accd4e5f28d6a6e09ec11849e3
tree6bc4e686c89a8758b59b8872ae20e434e91c3995
parente749ef968f14a92155b2c3138d7720cf39e65e00
wifi: rtw89: set data lowest rate according to AP supported rate

By default the driver uses the 1M and 6M rate (0x0) for data frames in
2 GHz and 5/6 GHz bands respectively. But the rate that might not AP
supported. Therefore, We modify the data lowest rate according to the
lowest of AP supported rate.

Signed-off-by: Chih-Kang Chang <gary.chang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230320093112.30466-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.c