View Issue Details

IDProjectCategoryView StatusLast Update
0000167AlmaLinux-8-OTHERpublic2022-01-11 18:17
Reportersabas3dgh Assigned To 
PriorityimmediateSeveritymajorReproducibilityalways
Status newResolutionopen 
PlatformX86_64OSAmlalinuxOS Version8
Summary0000167: rtl8192eu (USB WIFI Dongle) drivers - DKMS build - From Github - Fails [related Bug_ID 0000047]
Description============================
Linux localhost.localdomain 4.18.0-348.7.1.el8_5.x86_64 #1 SMP Tue Dec 21 13:57:48 EST 2021 x86_64 x86_64 x86_64 GNU/Linux

AlmaLinux release 8.5 (Arctic Sphynx)
=============================



 rtl8192eu (USB WIFI Dongle) drivers - DKMS build - From Github - Fails
I used the modified driver repository and I can't build the driver/module;

→ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.18.0-348.7.1.el8_5.x86_64/build M=/home/admin/Downloads/rtl8192eu-linux-driver modules
make[1]: Entering directory '/usr/src/kernels/4.18.0-348.7.1.el8_5.x86_64'
  CC [M] /home/admin/Downloads/rtl8192eu-linux-driver/os_dep/linux/ioctl_cfg80211.o
In file included from /home/admin/Downloads/rtl8192eu-linux-driver/include/drv_types.h:30,
                 from /home/admin/Downloads/rtl8192eu-linux-driver/os_dep/linux/ioctl_cfg80211.c:17:
/home/admin/Downloads/rtl8192eu-linux-driver/include/wifi.h:1038: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /home/admin/Downloads/rtl8192eu-linux-driver/include/osdep_service_linux.h:83,
                 from /home/admin/Downloads/rtl8192eu-linux-driver/include/osdep_service.h:50,
                 from /home/admin/Downloads/rtl8192eu-linux-driver/include/drv_types.h:27,
                 from /home/admin/Downloads/rtl8192eu-linux-driver/os_dep/linux/ioctl_cfg80211.c:17:
./include/linux/ieee80211.h:1660: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF 0x100
 
/home/admin/Downloads/rtl8192eu-linux-driver/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_ch_switch_notify’:
/home/admin/Downloads/rtl8192eu-linux-driver/os_dep/linux/ioctl_cfg80211.c:445:3: error: too few arguments to function ‘cfg80211_ch_switch_started_notify’
   cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/admin/Downloads/rtl8192eu-linux-driver/include/osdep_service_linux.h:93,
                 from /home/admin/Downloads/rtl8192eu-linux-driver/include/osdep_service.h:50,
                 from /home/admin/Downloads/rtl8192eu-linux-driver/include/drv_types.h:27,
                 from /home/admin/Downloads/rtl8192eu-linux-driver/os_dep/linux/ioctl_cfg80211.c:17:
./include/net/cfg80211.h:7673:6: note: declared here
 void cfg80211_ch_switch_started_notify(struct net_device *dev,
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/admin/Downloads/rtl8192eu-linux-driver/os_dep/linux/ioctl_cfg80211.c: At top level:
/home/admin/Downloads/rtl8192eu-linux-driver/os_dep/linux/ioctl_cfg80211.c:9952:3: error: ‘struct cfg80211_ops’ has no member named ‘mgmt_frame_register’
  .mgmt_frame_register = cfg80211_rtw_mgmt_frame_register,
   ^~~~~~~~~~~~~~~~~~~
/home/admin/Downloads/rtl8192eu-linux-driver/os_dep/linux/ioctl_cfg80211.c:9952:25: error: initialization of ‘int (*)(struct wiphy *, struct wireless_dev *, u64)’ {aka ‘int (*)(struct wiphy *, struct wireless_dev *, long long unsigned int)’} from incompatible pointer type ‘void (*)(struct wiphy *, struct wireless_dev *, u16, bool)’ {aka ‘void (*)(struct wiphy *, struct wireless_dev *, short unsigned int, _Bool)’} [-Werror=incompatible-pointer-types]
  .mgmt_frame_register = cfg80211_rtw_mgmt_frame_register,
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/admin/Downloads/rtl8192eu-linux-driver/os_dep/linux/ioctl_cfg80211.c:9952:25: note: (near initialization for ‘rtw_cfg80211_ops.mgmt_tx_cancel_wait’)
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:316: /home/admin/Downloads/rtl8192eu-linux-driver/os_dep/linux/ioctl_cfg80211.o] Error 1
make[1]: *** [Makefile:1571: _module_/home/admin/Downloads/rtl8192eu-linux-driver] Error 2
make[1]: Leaving directory '/usr/src/kernels/4

the same error (more or less would happen when building from original repositories)
Additional Informationrelated to this bug
https://bugs.almalinux.org/view.php?id=47

lsusb: >>>
[87939.234099] Code: 1f 44 00 00 f3 0f 1e fa 55 48 89 f5 53 48 89 fb 48 83 ec 08 e8 4b ff ff ff 48 8b 3b 48 89 c6 e8 e0 a7 f8 ff 48 89 ee 48 89 df <48> 8b 40 10 48 83 c4 08 5b 5d ff e0 66 66 2e 0f 1f 84 00 00 00 00
[301735.457109] usb 7-1: USB disconnect, device number 2
[301742.027067] usb 2-3: new high-speed USB device number 4 using ehci-pci
[301742.157244] usb 2-3: New USB device found, idVendor=2357, idProduct=0109, bcdDevice= 2.00
[301742.157249] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[301742.157253] usb 2-3: Product: 802.11n NIC
[301742.157256] usb 2-3: Manufacturer: Realtek
[301742.157258] usb 2-3: SerialNumber: 00e04c000001
[301742.636990] usb 2-3: Vendor: Realtek
[301742.636993] usb 2-3: Product: 802.11n NI
[301742.636994] usb 2-3: Serial:
[301742.636996] usb 2-3: rtl8192eu_parse_efuse: dumping efuse (0x200 bytes):
[301742.636998] usb 2-3: 00: 29 81 00 7c 01 40 03 00
[301742.637000] usb 2-3: 08: 40 74 04 50 14 00 00 00
[301742.637013] usb 2-3: 10: 27 27 28 29 29 29 2b 2b
[301742.637014] usb 2-3: 18: 2b 2c 2c f2 ef ef ff ff
[301742.637016] usb 2-3: 20: ff ff ff ff ff ff ff ff
[301742.637017] usb 2-3: 28: ff ff ff ff ff ff ff ff
[301742.637018] usb 2-3: 30: ff ff ff ff ff ff ff ff
[301742.637020] usb 2-3: 38: ff ff 2b 2b 2b 2b 2b 2b
[301742.637021] usb 2-3: 40: 2d 2d 2d 2c 2c f2 ef ef
[301742.637023] usb 2-3: 48: ff ff ff ff ff ff ff ff
[301742.637025] usb 2-3: 50: ff ff ff ff ff ff ff ff
[301742.637026] usb 2-3: 58: ff ff ff ff ff ff ff ff
[301742.637027] usb 2-3: 60: ff ff ff ff ff ff ff ff
[301742.637029] usb 2-3: 68: ff ff ff ff ff ff ff ff
[301742.637030] usb 2-3: 70: ff ff ff ff ff ff ff ff
[301742.637032] usb 2-3: 78: ff ff ff ff ff ff ff ff
[301742.637033] usb 2-3: 80: ff ff ff ff ff ff ff ff
[301742.637035] usb 2-3: 88: ff ff ff ff ff ff ff ff
[301742.637036] usb 2-3: 90: ff ff ff ff ff ff ff ff
[301742.637038] usb 2-3: 98: ff ff ff ff ff ff ff ff
[301742.637039] usb 2-3: a0: ff ff ff ff ff ff ff ff
[301742.637041] usb 2-3: a8: ff ff ff ff ff ff ff ff
[301742.637042] usb 2-3: b0: ff ff ff ff ff ff ff ff
[301742.637044] usb 2-3: b8: a1 1f 1e 00 00 00 ff ff
[301742.637045] usb 2-3: c0: ff 01 00 10 00 00 00 ff
[301742.637047] usb 2-3: c8: 00 00 ff ff ff ff ff ff
[301742.637048] usb 2-3: d0: 57 23 09 01 e7 47 02 50
[301742.637049] usb 2-3: d8: 3e aa 83 f2 4b 0a 03 52
[301742.637051] usb 2-3: e0: 65 61 6c 74 65 6b 20 0e
[301742.637052] usb 2-3: e8: 03 38 30 32 2e 31 31 6e
[301742.637054] usb 2-3: f0: 20 4e 49 43 20 00 00 ff
[301742.637055] usb 2-3: f8: ff ff ff ff ff ff ff ff
[301742.637057] usb 2-3: 100: ff ff ff ff ff ff ff ff
[301742.637058] usb 2-3: 108: ff ff ff ff ff ff ff ff
[301742.637060] usb 2-3: 110: ff ff ff ff ff ff ff 0d
[301742.637061] usb 2-3: 118: 03 00 05 00 30 00 00 00
[301742.637063] usb 2-3: 120: 00 93 ff ff ff ff ff ff
[301742.637064] usb 2-3: 128: ff ff ff ff ff ff ff ff
[301742.637066] usb 2-3: 130: f6 a8 98 2d 03 92 98 00
[301742.637067] usb 2-3: 138: fc 8c 00 11 9b 44 02 0a
[301742.637069] usb 2-3: 140: ff ff ff ff ff ff ff ff
[301742.637070] usb 2-3: 148: ff ff ff ff ff ff ff ff
[301742.637072] usb 2-3: 150: ff ff ff ff ff ff ff ff
[301742.637073] usb 2-3: 158: ff ff ff ff ff ff ff ff
[301742.637074] usb 2-3: 160: ff ff ff ff ff ff ff ff
[301742.637076] usb 2-3: 168: ff ff ff ff ff ff ff ff
[301742.637077] usb 2-3: 170: ff ff ff ff ff ff ff ff
[301742.637079] usb 2-3: 178: ff ff ff ff ff ff ff ff
[301742.637080] usb 2-3: 180: ff ff ff ff ff ff ff ff
[301742.637082] usb 2-3: 188: ff ff ff ff ff ff ff ff
[301742.637083] usb 2-3: 190: ff ff ff ff ff ff ff ff
[301742.637085] usb 2-3: 198: ff ff ff ff ff ff ff ff
[301742.637086] usb 2-3: 1a0: ff ff ff ff ff ff ff ff
[301742.637088] usb 2-3: 1a8: ff ff ff ff ff ff ff ff
[301742.637089] usb 2-3: 1b0: ff ff ff ff ff ff ff ff
[301742.637091] usb 2-3: 1b8: ff ff ff ff ff ff ff ff
[301742.637093] usb 2-3: 1c0: ff ff ff ff ff ff ff ff
[301742.637094] usb 2-3: 1c8: ff ff ff ff ff ff ff ff
[301742.637096] usb 2-3: 1d0: ff ff ff ff ff ff ff ff
[301742.637097] usb 2-3: 1d8: ff ff ff ff ff ff ff ff
[301742.637098] usb 2-3: 1e0: ff ff ff ff ff ff ff ff
[301742.637100] usb 2-3: 1e8: ff ff ff ff ff ff ff ff
[301742.637101] usb 2-3: 1f0: ff ff ff ff ff ff ff ff
[301742.637103] usb 2-3: 1f8: ff ff ff ff ff ff ff ff
[301742.637106] usb 2-3: RTL8192EU rev B (SMIC) 2T2R, TX queues 3, WiFi=1, BT=0, GPS=0, HI PA=0
[301742.637108] usb 2-3: RTL8192EU MAC: 50:3e:aa:83:f2:4b
[301742.637110] usb 2-3: rtl8xxxu: Loading firmware rtlwifi/rtl8192eu_nic.bin
[301742.664017] usb 2-3: Firmware revision 19.0 (signature 0x92e1)
[301743.708628] usbcore: registered new interface driver rtl8xxxu
[301743.777950] rtl8xxxu 2-3:1.0 wlp0s29f7u3: renamed from wlan0
[301743.806331] IPv6: ADDRCONF(NETDEV_UP): wlp0s29f7u3: link is not ready
[301743.840926] IPv6: ADDRCONF(NETDEV_UP): wlp0s29f7u3: link is not ready
[301743.946174] IPv6: ADDRCONF(NETDEV_UP): wlp0s29f7u3: link is not ready
[301743.966340] IPv6: ADDRCONF(NETDEV_UP): wlp0s29f7u3: link is not ready
[301745.272812] IPv6: ADDRCONF(NETDEV_UP): wlp0s29f7u3: link is not ready
[301746.480838] wlp0s29f7u3: authenticate with 5c:6a:80:48:ea:d8
[301746.505111] wlp0s29f7u3: send auth to 5c:6a:80:48:ea:d8 (try 1/3)
[301746.712442] wlp0s29f7u3: send auth to 5c:6a:80:48:ea:d8 (try 2/3)
[301746.920260] wlp0s29f7u3: send auth to 5c:6a:80:48:ea:d8 (try 3/3)
[301747.128056] wlp0s29f7u3: authentication with 5c:6a:80:48:ea:d8 timed out
[301748.624730] wlp0s29f7u3: authenticate with 5c:6a:80:48:ea:d8
[301748.651316] wlp0s29f7u3: send auth to 5c:6a:80:48:ea:d8 (try 1/3)
[301748.856053] wlp0s29f7u3: send auth to 5c:6a:80:48:ea:d8 (try 2/3)
[301749.065199] wlp0s29f7u3: send auth to 5c:6a:80:48:ea:d8 (try 3/3)
[301749.273067] wlp0s29f7u3: authentication with 5c:6a:80:48:ea:d8 timed out
TagsNo tags attached.
abrt_hash
URL

Activities

sabas3dgh

2021-12-31 16:00

reporter   ~0000467

it seems that it won't build under 4.18 alma linux kernel. Need a fix; thanks.

toracat

2022-01-02 20:07

reporter   ~0000469

@sabas3dgh

I uploaded a patch file that will allow compiling the code. I don't have the relevant device, so have no idea if the driver actually works.
rtl8192eu.patch (1,258 bytes)   
--- os_dep/linux/ioctl_cfg80211.c.orig	2022-01-02 11:38:57.841191219 -0800
+++ os_dep/linux/ioctl_cfg80211.c	2022-01-02 11:58:40.939268454 -0800
@@ -439,7 +439,7 @@ u8 rtw_cfg80211_ch_switch_notify(_adapte
 
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0))
 	if (started) {
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 18, 0))
 		cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0, false);
 #else
 		cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0);
@@ -7456,7 +7456,7 @@ exit:
 	return ret;
 }
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 8, 0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 18, 0)
 static void cfg80211_rtw_mgmt_frame_register(struct wiphy *wiphy,
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 6, 0))
 	struct wireless_dev *wdev,
@@ -9920,7 +9920,7 @@ static struct cfg80211_ops rtw_cfg80211_
 
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)) || defined(COMPAT_KERNEL_RELEASE)
 	.mgmt_tx = cfg80211_rtw_mgmt_tx,
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 8, 0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 18, 0)
 	.mgmt_frame_register = cfg80211_rtw_mgmt_frame_register,
 #else
 	.update_mgmt_frame_registrations = cfg80211_rtw_mgmt_frame_register,
rtl8192eu.patch (1,258 bytes)   

toracat

2022-01-11 18:17

reporter   ~0000476

@sabas3dgh

Did the patch work? If so, could you confirm it so that this ticket can be closed as 'resolved'?

Issue History

Date Modified Username Field Change
2021-12-31 09:38 sabas3dgh New Issue
2021-12-31 16:00 sabas3dgh Note Added: 0000467
2022-01-02 20:07 toracat Note Added: 0000469
2022-01-02 20:07 toracat File Added: rtl8192eu.patch
2022-01-11 18:17 toracat Note Added: 0000476