wifi: rtw89: support MULTI_BSSID and correct BSSID mask of H2C
authorPing-Ke Shih <pkshih@realtek.com>
Mon, 30 May 2022 11:27:43 +0000 (19:27 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 8 Jun 2022 08:10:13 +0000 (11:10 +0300)
commit85393ca610ded5875611d2d81c7cfd90397afe93
treed94f7a2e14cd098d0221625f3b9c4a8264f2c2cd
parent4dfc63c002a555a2c3c34d89009532ad803be876
wifi: rtw89: support MULTI_BSSID and correct BSSID mask of H2C

The BSSID mask of H2C is used to match BSSID of receiving packets.
Normally, we set six bits BSSID mask to exactly match BSSID of packets
sent by target AP. After we support multiple BSSID, it could connect a
nontransmitted BSSID, so we can only match first five bytes of BSSID.
That means we could possibly receive other AP's packets if only the last
byte of BSSID is different from target AP.

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