wifi: rtw89: 8852b: try to use NORMAL_CE type firmware first
authorPing-Ke Shih <pkshih@realtek.com>
Mon, 23 Jan 2023 06:54:01 +0000 (14:54 +0800)
committerKalle Valo <kvalo@kernel.org>
Mon, 13 Feb 2023 17:17:36 +0000 (19:17 +0200)
commit7410bd727584ea9b3e1050c56fdf60d883398956
tree436273e12f46d81b7a04022f0f4a979a8864c173
parente5624482ba3e98f0c34fc72bca509c6017266253
wifi: rtw89: 8852b: try to use NORMAL_CE type firmware first

New firmware type NORMAL_CE is introduced to support P2P-PS and hardware
scan, but no LPS-PG mode. After this patch, old firmware with NORMAL type
can still work well.

The use of this new type is the same as before, so we add new type to
avoid taking wrong firmware. Then, driver log can also give clear
information about this change:

  rtw89_8852be 0000:03:00.0: Firmware version 0.29.26.0, cmd version 0, type 5
  rtw89_8852be 0000:03:00.0: Firmware version 0.29.26.0, cmd version 0, type 3

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230123065401.14174-7-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.h
drivers/net/wireless/realtek/rtw89/fw.c
drivers/net/wireless/realtek/rtw89/rtw8852a.c
drivers/net/wireless/realtek/rtw89/rtw8852b.c
drivers/net/wireless/realtek/rtw89/rtw8852c.c