You are not logged in.

#1 2022-08-19 03:13:09

urparvezali
Member
Registered: 2022-08-18
Posts: 9

dkms fail to compile rtl8821ce in 5.19.2

==> dkms install --no-depmod rtl8821ce/1.0.5.r140.gbe733dc -k 5.19.2-arch1-1
Error! Bad return status for module build on kernel: 5.19.2-arch1-1 (x86_64)
Consult /var/lib/dkms/rtl8821ce/1.0.5.r140.gbe733dc/build/make.log for more information.
==> WARNING: `dkms install --no-depmod rtl8821ce/1.0.5.r140.gbe733dc -k 5.19.2-arch1-1' exited 10
(3/3) Refreshing PackageKit...

Offline

#2 2022-08-19 03:21:10

loqs
Member
Registered: 2014-03-06
Posts: 17,373

Re: dkms fail to compile rtl8821ce in 5.19.2

https://aur.archlinux.org/packages/rtl8 … ent-878318
Edit:
Please try applying the patch below

diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c
index 244527b..556eb51 100644
--- a/os_dep/linux/ioctl_cfg80211.c
+++ b/os_dep/linux/ioctl_cfg80211.c
@@ -417,7 +417,11 @@ u8 rtw_cfg80211_ch_switch_notify(_adapter *adapter, u8 ch, u8 bw, u8 offset, u8
 	if (ret != _SUCCESS)
 		goto exit;
 
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 19, 2)
 	cfg80211_ch_switch_notify(adapter->pnetdev, &chdef);
+#else
+	cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0);
+#endif
 
 #else
 	int freq = rtw_ch2freq(ch);
@@ -4947,7 +4951,11 @@ static int cfg80211_rtw_change_beacon(struct wiphy *wiphy, struct net_device *nd
 	return ret;
 }
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 19, 2)
 static int cfg80211_rtw_stop_ap(struct wiphy *wiphy, struct net_device *ndev)
+#else
+static int cfg80211_rtw_stop_ap(struct wiphy *wiphy, struct net_device *ndev, unsigned int link_id)
+#endif
 {
 	_adapter *adapter = (_adapter *)rtw_netdev_priv(ndev);
 
@@ -9859,7 +9867,11 @@ void rtw_wdev_unregister(struct wireless_dev *wdev)
 	rtw_cfg80211_indicate_scan_done(adapter, _TRUE);
 
 	#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 11, 0)) || defined(COMPAT_KERNEL_RELEASE)
+	#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 19, 2)
 	if (wdev->current_bss) {
+	#else
+	if (wdev->connected) {
+	#endif
 		RTW_INFO(FUNC_ADPT_FMT" clear current_bss by cfg80211_disconnected\n", FUNC_ADPT_ARG(adapter));
 		rtw_cfg80211_indicate_disconnect(adapter, 0, 1);
 	}

Last edited by loqs (2022-08-19 03:51:05)

Offline

#3 2022-08-19 09:42:23

urparvezali
Member
Registered: 2022-08-18
Posts: 9

Re: dkms fail to compile rtl8821ce in 5.19.2

i dont know how to patch

Offline

#4 2022-08-19 12:49:46

loqs
Member
Registered: 2014-03-06
Posts: 17,373

Re: dkms fail to compile rtl8821ce in 5.19.2

urparvezali wrote:

i dont know how to patch

Please see Patching_packages#Applying_patches.
Edit:
I also created a fork of the PKGBUILD which applies the patch at https://github.com/loqs/rtl8821ce-dkms-git.git

Last edited by loqs (2022-08-19 14:45:20)

Offline

#5 2022-09-29 13:55:06

lenovolobo933
Member
Registered: 2018-12-12
Posts: 60

Re: dkms fail to compile rtl8821ce in 5.19.2

i got this error

[1m[32m==>(B[m[1m Making package: rtl8821ce-dkms-git 1.0.5.r140.gbe733dc-1 (Thu 29 Sep 2022 08:37:44 PM +07)(B[m
[1m[32m==>(B[m[1m Checking runtime dependencies...(B[m
[1m[32m==>(B[m[1m Checking buildtime dependencies...(B[m
[1m[32m==>(B[m[1m Retrieving sources...(B[m
[1m[34m  ->(B[m[1m Updating rtl8821ce git repo...(B[m
[1m[34m  ->(B[m[1m Found rtl8821ce-5.19.2.patch(B[m
[1m[32m==>(B[m[1m Validating source files with sha256sums...(B[m
[1m[32m==>(B[m[1m Extracting sources...(B[m
[1m[34m  ->(B[m[1m Creating working copy of rtl8821ce git repo...(B[m
[1m[32m==>(B[m[1m Starting prepare()...(B[m
patching file os_dep/linux/ioctl_cfg80211.c
Reversed (or previously applied) patch detected!  Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file os_dep/linux/ioctl_cfg80211.c.rej

Offline

#6 2022-09-29 16:03:27

loqs
Member
Registered: 2014-03-06
Posts: 17,373

Re: dkms fail to compile rtl8821ce in 5.19.2

You no longer need the patch as it was applied upstream in https://github.com/tomaspinho/rtl8821ce … 6acc8f9e46

Offline

Board footer

Powered by FluxBB