rtw89: extend role_maintain to support AP mode
authorPing-Ke Shih <pkshih@realtek.com>
Mon, 7 Feb 2022 06:38:54 +0000 (14:38 +0800)
committerKalle Valo <kvalo@kernel.org>
Thu, 10 Feb 2022 08:40:49 +0000 (10:40 +0200)
commitff66964a9467f9f75776decb97b172d8a052498e
tree340ca8ab6db3def2d9420869c66432343ebd62eb
parenta954f29aea5d2cf58feedf83235edf3367229a37
rtw89: extend role_maintain to support AP mode

Fill mac_id and self_role depends on the operation mode.

In AP mode, echo connected station has an unique mac_id, and each vif also
has one mac_id to represent itself.

The self_role is assigned to vif if the operation mode is decided, and
RTW89_SELF_ROLE_AP_CLIENT is assigned to the connected STA in AP 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-2-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/fw.c
drivers/net/wireless/realtek/rtw89/fw.h
drivers/net/wireless/realtek/rtw89/mac.c