rtw88: follow the AP basic rates for tx mgmt frame
authorYu-Yen Ting <steventing@realtek.com>
Tue, 2 Nov 2021 02:24:53 +0000 (10:24 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 26 Nov 2021 16:20:01 +0000 (18:20 +0200)
commit2f1367b564c16a1a4d37140db3bf1f4d9851cac7
treeaf8e0afc5623eaa4f89e4eb3d39e992e6abcf547
parent5da7075c1126f70578a111b8ea64d93f56bc84dd
rtw88: follow the AP basic rates for tx mgmt frame

By default the driver uses the 1M and 6M rate for managemnt frames
in 2G and 5G bands respectively. But when the basic rates is
configured from the mac80211, we need to send the management frames
according to the basic rates.

This commit makes the driver use the lowest basic rates to send
the management frames.

Signed-off-by: Yu-Yen Ting <steventing@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20211102022454.10944-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw88/tx.c