rtw89: add addr_cam field to sta to support AP mode
authorPing-Ke Shih <pkshih@realtek.com>
Mon, 7 Feb 2022 06:38:55 +0000 (14:38 +0800)
committerKalle Valo <kvalo@kernel.org>
Thu, 10 Feb 2022 08:40:49 +0000 (10:40 +0200)
commit2ab856cc3a6c337fdbeedfc457194e73147af749
tree503972fb136029a5bf299e7973227d71a73d2bf3
parentff66964a9467f9f75776decb97b172d8a052498e
rtw89: add addr_cam field to sta to support AP mode

In AP mode, each connected station needs an entry of address CAM. The
address CAM of vif is still needed to assit in AP itself.

For station mode, it still uses vif's address CAM.

Add a help macro rtw89_get_addr_cam_of() to get addr_cam from vif or sta
for all use cases.

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-3-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/cam.c
drivers/net/wireless/realtek/rtw89/core.c
drivers/net/wireless/realtek/rtw89/core.h