Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kernel 6.3 fix #39

Open
dmanlfc opened this issue May 15, 2023 · 5 comments
Open

Kernel 6.3 fix #39

dmanlfc opened this issue May 15, 2023 · 5 comments

Comments

@dmanlfc
Copy link

dmanlfc commented May 15, 2023

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
@lwfinger
Copy link
Owner

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.

@dmanlfc
Copy link
Author

dmanlfc commented May 16, 2023

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

@lwfinger
Copy link
Owner

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

@dmanlfc
Copy link
Author

dmanlfc commented May 19, 2023

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?

@lwfinger
Copy link
Owner

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!

lyctw added a commit to lyctw/buildroot that referenced this issue Nov 11, 2023
see: lwfinger/rtl8723du#39

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants