rtw89: maintain assoc/disassoc STA states of firmware and hardware
authorPing-Ke Shih <pkshih@realtek.com>
Mon, 7 Feb 2022 06:38:57 +0000 (14:38 +0800)
committerKalle Valo <kvalo@kernel.org>
Thu, 10 Feb 2022 08:40:50 +0000 (10:40 +0200)
commit1b73e77db1d087fb01b1fd0da6398bcbc93c3baf
treed3ea640cb84fdab8b66b266203bc398df546036a
parentfd7ee4c8ac14b6f07919fa11c7898f9af490e75a
rtw89: maintain assoc/disassoc STA states of firmware and hardware

In AP mode, when a STA associate to us, we need to create an entry in
firmware and hardware, and then they can transmit data properly.

The entry index called mac_id which is assigned when sta_add, and we ask
firmware to create an entry for an associated station. Also, the address
CAM should be filled so hardware can know which packet is ours, and lookup
the mac_id for further use.

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