rtl8723du icon indicating copy to clipboard operation
rtl8723du copied to clipboard

Kernel 6.3 fix

Open dmanlfc opened this issue 1 year ago • 5 comments

diff --git a/os_dep/ioctl_cfg80211.c b/os_dep/ioctl_cfg80211.c
index 64541a3641..a2d9d49fcf 100644
--- a/os_dep/ioctl_cfg80211.c
+++ b/os_dep/ioctl_cfg80211.c
@@ -173,6 +173,8 @@ u8 rtw_cfg80211_ch_switch_notify(struct adapter *adapter, u8 ch, u8 bw, u8 offse
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 19, 2)
 	cfg80211_ch_switch_notify(adapter->pnetdev, &chdef);
+#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 3, 0))
+	cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0, 0);
 #else
 	cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0);
 #endif

or use the driver in linux 6.2+ with

CONFIG_RTW88
CONFIG_RTW88_8723DU
CONFIG_WLAN
CONFIG_WLAN_VENDOR_REALTEK

dmanlfc avatar May 15 '23 12:05 dmanlfc

Thanks. I also recommend using the rtw88 driver, either the built-in version in 6.2+, or the later version in https://github.com/lwfinger/rtw88.git.

BTW, I will soo drop maintenance of this repo.

lwfinger avatar May 15 '23 14:05 lwfinger

still useful for older kernel arm systems @lwfinger - thanks for providing it

dmanlfc avatar May 16 '23 07:05 dmanlfc

OK, I will keep it for now. How old a kernel are you describing?

lwfinger avatar May 16 '23 14:05 lwfinger

Some SBC's go back to 4.4 but most are now going to 6.1LTS What is the minimum kernel version for this driver?

dmanlfc avatar May 19 '23 13:05 dmanlfc

It certainly builds on 6.1. I do not know about the 4.4. I cannot even do a test of a kernel that old. My gcc version would croak!

lwfinger avatar May 19 '23 17:05 lwfinger