linux-postmarketos-allwinner: switch to mainline rtw88 driver
linux-postmarketos-allwinner kernel currently uses custom driver for wifi chip (`/drivers/staging/rtl8723cs`): ```sh $ </proc/config.gz gunzip -d | grep -Ei 'RTL8723|RTW88' # CONFIG_RTW88 is not set CONFIG_RTL8723BS=m CONFIG_RTL8723CS=m ``` ```sh $ lsmod | grep 8723 8723cs 1466368 0 ``` anarsoul was fixing issues with mainline rtw88 driver and believes it is ready. ``` <anarsoul> hey folks <anarsoul> just fyi, I fixed RX/TX performance issues with mainline rtw88_8723cs driver <anarsoul> https://patchwork.kernel.org/project/linux-wireless/patch/20250103075107.1337533-1-anarsoul@gmail.com/ <anarsoul> megi: ^^ <a​narsoul> It'll make megi's life easier if he doesn't need to carry the vendor driver in his tree anymore :) <a​narsoul> The source is available for the vendor driver, however it wasn't easy to find what was wrong with rtw88 <a​narsoul> The issue with the vendor driver is that it carries its own 802.11 stack and pretends to be a fullmac device <a​narsoul> No one knows what vulnerabilities are there in their implementation of 802.11 stack <a​narsoul> rtw88 does it properly and uses mac80211 <a​narsoul> That would definitely need some testing ``` Check if/when we can switch, either automatically if megi drops the custom driver, or manually. --- Update 2025-01-20: Driver is included in megi's kernel 6.13. - https://codeberg.org/megi/linux/src/tag/orange-pi-6.13-20250120-1010 - https://codeberg.org/megi/linux/commit/0c1b44f3b0d16b818c72b3757295844de1196a1f >- apply patches for RTW88 from anarsoul and Fiona Klute to imporve WiFi performance > on Pinephone 2 - https://codeberg.org/megi/linux/commits/branch/orange-pi-6.13/drivers/net/wireless/realtek/rtw88 However staging driver is still present. Will need to disable staging driver kconfig explicitly.
issue