wifi: rtw88: set pkg_type correctly for specific rtw8821c variants
authorSascha Hauer <s.hauer@pengutronix.de>
Mon, 17 Apr 2023 14:03:57 +0000 (16:03 +0200)
committerKalle Valo <kvalo@kernel.org>
Thu, 20 Apr 2023 12:34:38 +0000 (15:34 +0300)
commit97c75e1adeda78b3794936c617d8b86e9ebd54f5
treea66fae86f7b1f058f137ad67c9e0cab630e1530d
parent14705f969d98187a1cc2682e0c9bd2e230b8098f
wifi: rtw88: set pkg_type correctly for specific rtw8821c variants

According to the vendor driver the pkg_type has to be set to '1'
for some rtw8821c variants. As the pkg_type has been hardcoded to
'0', add a field for it in struct rtw_hal and set this correctly
in the rtw8821c part.
With this parsing of a rtw_table is influenced and check_positive()
in phy.c returns true for some cases here. The same is done in the
vendor driver. However, this has no visible effect on the driver
here.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230417140358.2240429-4-s.hauer@pengutronix.de
drivers/net/wireless/realtek/rtw88/main.c
drivers/net/wireless/realtek/rtw88/main.h
drivers/net/wireless/realtek/rtw88/rtw8821c.c