rtw89: only STA mode change vif_type mapping dynamically
authorPing-Ke Shih <pkshih@realtek.com>
Mon, 7 Feb 2022 06:38:56 +0000 (14:38 +0800)
committerKalle Valo <kvalo@kernel.org>
Thu, 10 Feb 2022 08:40:50 +0000 (10:40 +0200)
commitfd7ee4c8ac14b6f07919fa11c7898f9af490e75a
treeb1d0c95fce3dc0df653349f975515836a1d44295
parent2ab856cc3a6c337fdbeedfc457194e73147af749
rtw89: only STA mode change vif_type mapping dynamically

vif_type mapping indicates hardware operating mode corresponding to vif
type. In STA mode, hardware mode should be INFRA or NO_LINK mode
dynamically according to association status. Since AP mode don't need to
change this by association status intuitively, just do the mapping in
STA mode.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220207063900.43643-4-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.c
drivers/net/wireless/realtek/rtw89/mac80211.c