wifi: rtw89: fix AP mode authentication transmission failed
authorPo-Hao Huang <phhuang@realtek.com>
Thu, 16 Feb 2023 08:28:07 +0000 (16:28 +0800)
committerKalle Valo <kvalo@kernel.org>
Fri, 17 Feb 2023 09:34:08 +0000 (11:34 +0200)
commit0731d0b664f26f54b6293421af54da15b9eb1c8c
tree8dc9a8a60db29025656cdeed4468d15201715161
parent4a267bc5ea8f159b614d0549030216d0434eccca
wifi: rtw89: fix AP mode authentication transmission failed

For some ICs, packets can't be sent correctly without initializing
CMAC table first. Previous flow do this initialization after
associated, results in authentication response fails to transmit.
Move the initialization up front to a proper place to solve this.

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