Code Monkey home page Code Monkey logo

rtl8188eu's People

Contributors

ivanovborislav avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

rtl8188eu's Issues

can't build on ubuntu for ARM

I wanted to build this driver for my pcDuino3B board which has a rtl8188EU wireless LAN card.
The SoC of pcDuino3B is sunxi7i A20 (arm). Version of the Linux Kernel I used is 6.0.2.
I modified the Makefile of the driver as below:
CONFIG_PLATFORM_I386_PC = n CONFIG_PLATFORM_ARM_SUNxI = y CONFIG_PLATFORM_ARM_SUN7I = y

At first, an error occurred saying "mach/sys_config.h is missing", so I copied "arch/arm/mach-sunxi/include/mach" folder from official linux-3.4-sunxi source code which doesn't appear in the mainline Linux Kernel source code to the driver's "platform" folder.
Then, it proceeds with another error saying "script_parser_fetch function was not declared". After searching on the web, I found that this function may come from some tools from sunxi which I didn't find somewhere.
The two errors both come from "platform/platform_ARM_SUNxI_usb.c".

I found another rtl8188eu driver by an unofficial maintainer:
https://github.com/lwfinger/rtl8188eu

The above driver can be built and loaded with the above Linux Kernel 6.0.2. But it cannot work properly on pcDuino3B with a long existed issue.
lwfinger/rtl8188eu#235

lpapp ~ $ sudo wpa_supplicant -Dwext -B -i wlp0s29u1u2 -c /etc/wpa_supplicant/example.conf
Successfully initialized wpa_supplicant
rfkill: Cannot get wiphy information
ioctl[SIOCSIWAP]: Operation not permitted
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
lpapp ~ $ sudo wpa_supplicant -B -i wlp0s29u1u2 -c /etc/wpa_supplicant/example.conf
Successfully initialized wpa_supplicant
nl80211: Driver does not support authentication/association or connect commands
nl80211: deinit ifname=wlp0s29u1u2 disabled_11b_rates=0
wlp0s29u1u2: Failed to initialize driver interface

Is it possible to combine these two drivers together?

Thanks very much!

Reference:
https://github.com/allwinner-zh/linux-3.4-sunxi

i cant ap mode enable

hi there
i use your wpa_supplicant.conf and the final command doesnt work ! ()
i change channel and ssid ; not work.
Screenshot_2023-05-09_22_35_00
Screenshot_2023-05-09_23_04_24
Screenshot_2023-05-09_23_04_43

please help me.
(WN722n v3)
and then i use this config . but client dont connect to ap !

interface=wlan0
driver=nl80211
ssid=wpa3
hw_mode=g
channel=7
macaddr_acl=0
ignore_broadcast_ssid=0

Linux kernel 5.17 build error

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.17.0-gentoo/build M=/usr/src/rtl8188eu  modules
make[1]: вход в каталог «/usr/src/linux-5.17.0-gentoo»
  CC [M]  /usr/src/rtl8188eu/os_dep/osdep_service.o
  CC [M]  /usr/src/rtl8188eu/os_dep/linux/os_intfs.o
  CC [M]  /usr/src/rtl8188eu/os_dep/linux/rtw_proc.o
In file included from /usr/src/rtl8188eu/os_dep/linux/rtw_proc.c:17:
In file included from /usr/src/rtl8188eu/include/drv_types.h:78:
/usr/src/rtl8188eu/include/rtw_recv.h:817:52: warning: variable 'buf_star' is uninitialized when used here [-Wuninitialized]
        precv_frame = rxmem_to_recvframe((unsigned char *)buf_star);
                                                          ^~~~~~~~
/usr/src/rtl8188eu/include/rtw_recv.h:815:14: note: initialize the variable 'buf_star' to silence this warning
        u8 *buf_star;
                    ^
                     = NULL
In file included from /usr/src/rtl8188eu/os_dep/osdep_service.c:19:
In file included from /usr/src/rtl8188eu/include/drv_types.h:78:
/usr/src/rtl8188eu/include/rtw_recv.h:817:52: warning: variable 'buf_star' is uninitialized when used here [-Wuninitialized]
        precv_frame = rxmem_to_recvframe((unsigned char *)buf_star);
                                                          ^~~~~~~~
/usr/src/rtl8188eu/include/rtw_recv.h:815:14: note: initialize the variable 'buf_star' to silence this warning
        u8 *buf_star;
                    ^
                     = NULL
In file included from /usr/src/rtl8188eu/os_dep/linux/os_intfs.c:17:
In file included from /usr/src/rtl8188eu/include/drv_types.h:78:
/usr/src/rtl8188eu/include/rtw_recv.h:817:52: warning: variable 'buf_star' is uninitialized when used here [-Wuninitialized]
        precv_frame = rxmem_to_recvframe((unsigned char *)buf_star);
                                                          ^~~~~~~~
/usr/src/rtl8188eu/include/rtw_recv.h:815:14: note: initialize the variable 'buf_star' to silence this warning
        u8 *buf_star;
                    ^
                     = NULL
/usr/src/rtl8188eu/os_dep/osdep_service.c:1312:2: error: implicit declaration of function 'complete_and_exit' [-Werror,-Wimplicit-function-declaration]
        complete_and_exit(comp, 0);
        ^
/usr/src/rtl8188eu/os_dep/linux/rtw_proc.c:250:27: error: implicit declaration of function 'PDE_DATA' [-Werror,-Wimplicit-function-declaration]
        ssize_t index = (ssize_t)PDE_DATA(inode);
                                 ^
/usr/src/rtl8188eu/os_dep/linux/rtw_proc.c:250:27: note: did you mean 'NODE_DATA'?
./include/linux/mmzone.h:1100:35: note: 'NODE_DATA' declared here
static inline struct pglist_data *NODE_DATA(int nid)
                                  ^
/usr/src/rtl8188eu/os_dep/linux/rtw_proc.c:276:27: error: implicit declaration of function 'PDE_DATA' [-Werror,-Wimplicit-function-declaration]
        ssize_t index = (ssize_t)PDE_DATA(file_inode(file));
                                 ^
1 warning and 1 error generated.
make[2]: *** [scripts/Makefile.build:288: /usr/src/rtl8188eu/os_dep/osdep_service.o] Ошибка 1
make[2]: *** Ожидание завершения заданий…
/usr/src/rtl8188eu/os_dep/linux/rtw_proc.c:5691:27: error: implicit declaration of function 'PDE_DATA' [-Werror,-Wimplicit-function-declaration]
        ssize_t index = (ssize_t)PDE_DATA(inode);
                                 ^
/usr/src/rtl8188eu/os_dep/linux/rtw_proc.c:5717:27: error: implicit declaration of function 'PDE_DATA' [-Werror,-Wimplicit-function-declaration]
        ssize_t index = (ssize_t)PDE_DATA(file_inode(file));
                                 ^
/usr/src/rtl8188eu/os_dep/linux/rtw_proc.c:5880:27: error: implicit declaration of function 'PDE_DATA' [-Werror,-Wimplicit-function-declaration]
        ssize_t index = (ssize_t)PDE_DATA(inode);
                                 ^
/usr/src/rtl8188eu/os_dep/linux/rtw_proc.c:5906:27: error: implicit declaration of function 'PDE_DATA' [-Werror,-Wimplicit-function-declaration]
        ssize_t index = (ssize_t)PDE_DATA(file_inode(file));
                                 ^
1 warning and 6 errors generated.
/usr/src/rtl8188eu/os_dep/linux/os_intfs.c:1637:14: error: passing 'const unsigned char *' to parameter of type 'void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
        _rtw_memcpy(pnetdev->dev_addr, sa->sa_data, ETH_ALEN); /* set mac addr to net_device */
                    ^~~~~~~~~~~~~~~~~
/usr/src/rtl8188eu/include/osdep_service.h:313:31: note: passing argument to parameter 'dec' here
extern void     _rtw_memcpy(void *dec, const void *sour, u32 sz);
                                  ^
make[2]: *** [scripts/Makefile.build:288: /usr/src/rtl8188eu/os_dep/linux/rtw_proc.o] Ошибка 1
/usr/src/rtl8188eu/os_dep/linux/os_intfs.c:2173:14: error: passing 'const unsigned char *' to parameter of type 'void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
        _rtw_memcpy(ndev->dev_addr, adapter_mac_addr(adapter), ETH_ALEN);
                    ^~~~~~~~~~~~~~
/usr/src/rtl8188eu/include/osdep_service.h:313:31: note: passing argument to parameter 'dec' here
extern void     _rtw_memcpy(void *dec, const void *sour, u32 sz);
                                  ^
1 warning and 2 errors generated.
make[2]: *** [scripts/Makefile.build:288: /usr/src/rtl8188eu/os_dep/linux/os_intfs.o] Ошибка 1
make[1]: *** [Makefile:1831: /usr/src/rtl8188eu] Ошибка 2
make[1]: выход из каталога «/usr/src/linux-5.17.0-gentoo»
make: *** [Makefile:2489: modules] Ошибка 2

uname -r: 5.17.0-gentoo

Idea: Add dkms support?

Just for your consideration (this example assumes x86/x86_64):

# cd /root
# git clone https://github.com/ivanovborislav/rtl8188eu.git
# cd rtl8188eu

# nano dkms.conf
PACKAGE_NAME="rtl8188eu"
PACKAGE_VERSION="5.13.3"
MAKE[0]="'make' -j$(nproc) KVER=${kernelver} KSRC=/lib/modules/${kernelver}/build"
CLEAN="'make' clean"
BUILT_MODULE_NAME[0]="8188eu"
DEST_MODULE_LOCATION[0]="/kernel/drivers/net/wireless"
AUTOINSTALL="yes"

# mkdir -p /usr/src/rtl8188eu-5.13.3/
# cp -ar /root/rtl8188eu/* /usr/src/rtl8188eu-5.13.3/
# dkms add -m rtl8188eu -v 5.13.3
# dkms build -m rtl8188eu -v 5.13.3
# dkms install -m rtl8188eu -v 5.13.3
# dkms status

# dkms status
rtl8188eu, 5.13.3, 5.10.0-19-686-pae, i686: installed

# dkms status
rtl8188eu, 5.13.3, 5.10.0-19-amd64, x86_64: installed

Of course for Pi would need to change Makefile. But the same basic steps should work. By the way, I have seen a couple of Makefiles that figure out the architecture, so you don't have to do the Pi specific tweaks of the Makefile.

Would not be to hard to create a install-driver and remove-driver scripts. If your are open to a PR?

Build error in Fedora 36

make[1]: Entering directory '/usr/src/kernels/5.19.4-200.fc36.x86_64'
  CC [M]  /home/d4v1d/Downloads/rtl8188eu/os_dep/linux/ioctl_cfg80211.o
/home/d4v1d/Downloads/rtl8188eu/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_ch_switch_notify’:
/home/d4v1d/Downloads/rtl8188eu/os_dep/linux/ioctl_cfg80211.c:478:9: error: too few arguments to function ‘cfg80211_ch_switch_notify’
  478 |         cfg80211_ch_switch_notify(adapter->pnetdev, &chdef);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/d4v1d/Downloads/rtl8188eu/include/osdep_service_linux.h:98,
                 from /home/d4v1d/Downloads/rtl8188eu/include/osdep_service.h:54,
                 from /home/d4v1d/Downloads/rtl8188eu/include/drv_types.h:27,
                 from /home/d4v1d/Downloads/rtl8188eu/os_dep/linux/ioctl_cfg80211.c:17:
./include/net/cfg80211.h:7967:6: note: declared here
 7967 | void cfg80211_ch_switch_notify(struct net_device *dev,
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/d4v1d/Downloads/rtl8188eu/os_dep/linux/ioctl_cfg80211.c: At top level:
/home/d4v1d/Downloads/rtl8188eu/os_dep/linux/ioctl_cfg80211.c:10419:20: error: initialization of ‘int (*)(struct wiphy *, struct net_device *, unsigned int)’ from incompatible pointer type ‘int (*)(struct wiphy *, struct net_device *)’ [-Werror=incompatible-pointer-types]
10419 |         .stop_ap = cfg80211_rtw_stop_ap,
      |                    ^~~~~~~~~~~~~~~~~~~~
/home/d4v1d/Downloads/rtl8188eu/os_dep/linux/ioctl_cfg80211.c:10419:20: note: (near initialization for ‘rtw_cfg80211_ops.stop_ap’)
/home/d4v1d/Downloads/rtl8188eu/os_dep/linux/ioctl_cfg80211.c:10463:24: error: initialization of ‘int (*)(struct wiphy *, struct wireless_dev *, unsigned int,  struct cfg80211_chan_def *)’ from incompatible pointer type ‘int (*)(struct wiphy *, struct wireless_dev *, struct cfg80211_chan_def *)’ [-Werror=incompatible-pointer-types]
10463 |         .get_channel = cfg80211_rtw_get_channel,
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~
/home/d4v1d/Downloads/rtl8188eu/os_dep/linux/ioctl_cfg80211.c:10463:24: note: (near initialization for ‘rtw_cfg80211_ops.get_channel’)
/home/d4v1d/Downloads/rtl8188eu/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_wdev_unregister’:
/home/d4v1d/Downloads/rtl8188eu/os_dep/linux/ioctl_cfg80211.c:10699:17: error: ‘struct wireless_dev’ has no member named ‘current_bss’
10699 |         if (wdev->current_bss) {
      |                 ^~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:249: /home/d4v1d/Downloads/rtl8188eu/os_dep/linux/ioctl_cfg80211.o] Error 1
make[1]: *** [Makefile:1851: /home/d4v1d/Downloads/rtl8188eu] Error 2
make[1]: Leaving directory '/usr/src/kernels/5.19.4-200.fc36.x86_64'
make: *** [Makefile:2489: modules] Error 2```

iw dev del hangs in OpenWrt

Hi,
the driver was successfully built for OpenWrt using buildroot, but doesn't recognize my adapter (TL-WN 722N v3).
Seems like the module is loaded ok, but when inserting an adapter it fails to init.
Kernel log and other info are below:

[ 18.323455] RTW: module init start
[ 18.326938] RTW: rtl8188eu v5.13.3-17-gb1925f81a.20210615
[ 18.332310] RTW: build time: Sep 3 2022 02:55:34
[ 18.337089] RTW: rtw_inetaddr_notifier_register
[ 18.341786] usbcore: registered new interface driver rtl8188eu
[ 18.347679] RTW: module init ret=0

[ 309.844214] usb 1-1: new high-speed USB device number 2 using xhci-mtk
[ 310.026773] RTW:
[ 310.026773] usb_endpoint_descriptor(0):
[ 310.032562] RTW: bLength=7
[ 310.035612] RTW: bDescriptorType=5
[ 310.039051] RTW: bEndpointAddress=81
[ 310.042633] RTW: wMaxPacketSize=512
[ 310.046201] RTW: bInterval=0
[ 310.049339] RTW: RT_usb_endpoint_is_bulk_in = 1
[ 310.053855] RTW:
[ 310.053855] usb_endpoint_descriptor(1):
[ 310.059657] RTW: bLength=7
[ 310.062613] RTW: bDescriptorType=5
[ 310.066294] RTW: bEndpointAddress=2
[ 310.069987] RTW: wMaxPacketSize=512
[ 310.073464] RTW: bInterval=0
[ 310.076397] RTW: RT_usb_endpoint_is_bulk_out = 2
[ 310.081219] RTW:
[ 310.081219] usb_endpoint_descriptor(2):
[ 310.087197] RTW: bLength=7
[ 310.090074] RTW: bDescriptorType=5
[ 310.093467] RTW: bEndpointAddress=3
[ 310.097006] RTW: wMaxPacketSize=512
[ 310.100697] RTW: bInterval=0
[ 310.103571] RTW: RT_usb_endpoint_is_bulk_out = 3
[ 310.108225] RTW: nr_endpoint=3, in_num=1, out_num=2
[ 310.108225]
[ 310.114786] RTW: USB_SPEED_HIGH
[ 310.118131] RTW: CHIP TYPE: RTL8188E
[ 310.122105] RTW: Chip Version Info: CHIP_8188E_T4_1T1R_RomVer(0)
[ 310.128540] RTW: _ConfigNormalChipOutEP_8188E OutEpQueueSel(0x05), OutEpNumber(2)
[ 310.136480] RTW: EEPROM type is E-FUSE
[ 310.140324] RTW: Boot from EFUSE, Autoload OK !
[ 310.147528] RTW: SetHwReg: bMacPwrCtrlOn=1
[ 310.151830] bFWReady == _FALSE call reset 8051...
[ 310.157552] RTW: =====> _8051Reset88E(): 8051 reset success .
[ 310.177755] RTW: efuse_read_phymap_from_txpktbuf bcnhead:0
[ 310.183546] RTW: efuse_read_phymap_from_txpktbuf len:125
[ 310.194430] RTW: efuse_read_phymap_from_txpktbuf read count:123
[ 310.200662] RTW: HW EFUSE
[ 310.203306] RTW: 0x000: 29 81 00 6C 0B 00 00 00 00 0C 00 00 00 00 00 00
[ 310.210723] RTW: 0x010: 30 30 2F 2F 2F 2F 34 34 33 32 32 F1 FF FF FF FF
[ 310.218090] RTW: 0x020: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 310.225230] RTW: 0x030: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 310.232705] RTW: 0x040: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 310.240023] RTW: 0x050: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 310.247361] RTW: 0x060: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 310.254876] RTW: 0x070: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 310.261972] RTW: 0x080: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 310.269094] RTW: 0x090: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 310.276618] RTW: 0x0A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 310.283716] RTW: 0x0B0: FF FF FF FF FF FF FF FF A1 2F 18 00 00 00 00 00
[ 310.290838] RTW: 0x0C0: 00 01 00 10 00 00 00 00 00 03 FF FF FF FF FF FF
[ 310.298382] RTW: 0x0D0: 57 23 0C 01 43 66 00 D0 37 45 AE F4 AF 09 03 52
[ 310.305524] RTW: 0x0E0: 65 61 6C 74 65 6B 0D 03 38 30 32 2E 31 31 6E 20
[ 310.313022] RTW: 0x0F0: 4E 49 43 0C 03 30 30 45 30 34 43 30 30 30 31 00
[ 310.320154] RTW: 0x100: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 310.327672] RTW: 0x110: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 310.334808] RTW: 0x120: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 310.342293] RTW: 0x130: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 310.349426] RTW: 0x140: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 310.356969] RTW: 0x150: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 310.364061] RTW: 0x160: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 310.371566] RTW: 0x170: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 310.378695] RTW: 0x180: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 310.386224] RTW: 0x190: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 310.393321] RTW: 0x1A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 310.400444] RTW: 0x1B0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 310.407982] RTW: 0x1C0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 310.415311] RTW: 0x1D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 310.422626] RTW: 0x1E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 310.429755] RTW: 0x1F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 310.437311] RTW: EEPROM ID=0x8129
[ 310.440614] RTW: VID = 0x2357, PID = 0x010C
[ 310.444816] RTW: Customer ID: 0x00, SubCustomer ID: 0xCD
[ 310.450302] RTW: Hal_ReadPowerSavingMode88E...bHWPwrPindetect(0)-bHWPowerdown(0) ,bSupportRemoteWakeup(1)
[ 310.459870] RTW: ### PS params=> power_mgnt(2),usbss_enable(0) ###
[ 310.466342] RTW: EEPROMRegulatory = 0x1
[ 310.470360] RTW: hal_com_config_channel_plan chplan:0x21
[ 310.475888] RTW: crystal_cap: 0x2f
[ 310.479457] RTW: EEPROM Customer ID: 0x 0
[ 310.483447] RTW: Board Type: 0x 0
[ 310.486786] RTW: ThermalMeter = 0x18
[ 310.490541] RTW: pHalData->ExternalPA_2G = 0 , pHalData->ExternalLNA_2G = 0
[ 310.497513] RTW: pHalData->TypeGLNA is 0x0
[ 310.501786] RTW: pHalData->rfe_type is 0xff
[ 310.505994] RTW: rtw_hal_read_chip_info in 370 ms
[ 310.510910] RTW: [RF_PATH] ver_id.RF_TYPE:RF_1T1R
[ 310.515642] RTW: [RF_PATH] HALSPEC's rf_reg_trx_path_bmp:0x11, rf_reg_path_avail_num:1, max_tx_cnt:1
[ 310.524782] RTW: [RF_PATH] PG's trx_path_bmp:0x00, max_tx_cnt:0
[ 310.530873] RTW: [RF_PATH] Registry's trx_path_bmp:0x00, tx_path_lmt:0, rx_path_lmt:0
[ 310.538915] RTW: [RF_PATH] HALDATA's trx_path_bmp:0x11, max_tx_cnt:1
[ 310.545469] RTW: [RF_PATH] HALDATA's rf_type:RF_1T1R, NumTotalRFPath:1
[ 310.552168] RTW: rtw_hal_rfpath_init trx_path_bmp:0x11(RF_1T1R), NumTotalRFPath:1, max_tx_cnt:1
[ 310.560871] RTW: [TRX_Nss] HALSPEC - tx_nss:1, rx_nss:1
[ 310.566307] RTW: [TRX_Nss] Registry - tx_nss:0, rx_nss:0
[ 310.571794] RTW: [TRX_Nss] HALDATA - tx_nss:1, rx_nss:1
[ 310.577038] RTW: rtw_hal_trxnss_init tx_nss:1, rx_nss:1
[ 310.582445] RTW: txpath=0x1, rxpath=0x1
[ 310.586308] RTW: txpath_1ss:0x1, num:1
[ 310.590560] RTW: init_mlme_default_rate_set: support CCK
[ 310.596215] RTW: init_mlme_default_rate_set: support OFDM
[ 310.602600] RTW: NR_RECVBUFF: 8, recvbuf_nr: 8
[ 310.607431] RTW: MAX_RECVBUF_SZ: 15360
[ 310.611205] RTW: NR_PREALLOC_RECV_SKB: 8
[ 310.615157] RTW: Enable CONFIG_FIX_NR_BULKIN_BUFFER
[ 310.620704] RTW: rtw_alloc_macid((null)) if1, mac_addr:ff:ff:ff:ff:ff:ff macid:1
[ 310.628213] RTW: rtw_init_pwrctrl_priv: IPS_mode=1, LPS_mode=2, LPS_level=0
[ 310.635234] RTW: IQK FW offload:disable
[ 310.639140] RTW: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
[ 310.648436] RTW: phy_ConfigBBWithPgParaFile(): No File PHY_REG_PG.txt, Load from HWImg Array!
[ 310.657024] RTW: default power by rate loaded
[ 310.661385] RTW: init_channel_set_from_rtk_priv((null)) ChannelPlan ID:0x21, ch num:13
[ 310.670237] RTW: rtw_macaddr_cfg mac addr:d0:37:45:ae:f4:af
[ 310.675838] RTW: bDriverStopped:True, bSurpriseRemoved:False, bup:0, hw_init_completed:0
[ 310.684197] RTW: rtw_cfg80211_init_wiphy_band:rf_type=0
[ 310.689631] RTW: [HT] HAL Support STBC = 0x01
[ 310.693983] RTW: rtw_wiphy_alloc((null))
[ 310.698168] RTW: rtw_wdev_alloc(padapter=09c77e86)
[ 310.703146] RTW: rtw_wiphy_register((null))
[ 310.707358] RTW: Register RTW cfg80211 vendor cmd(0x67) interface
[ 310.713643] ------------[ cut here ]------------
[ 310.718540] WARNING: CPU: 0 PID: 796 at backports-5.15.58-1/net/wireless/core.c:785 0x82a80c5c [cfg80211@2b77c6c7+0x45f40]
[ 310.729776] Modules linked in: pppoe ppp_async nft_fib_inet nf_flow_table_ipv6 nf_flow_table_ipv4 nf_flow_table_inet 8188eu pppox ppp_generic nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject nft_redir nft_quota nft_objref nft_numgen nft_nat nft_masq nft_log nft_limit nft_hash nft_flow_offload nft_fib_ipv6 nft_fib_ipv4 nft_fib nft_ct nft_counter nft_chain_nat nf_tables nf_nat nf_flow_table nf_conntrack mt76x2e mt76x2_common mt76x02_lib mt7603e mt76 mac80211 cfg80211 slhc nfnetlink nf_reject_ipv6 nf_reject_ipv4 nf_log_ipv6 nf_log_ipv4 nf_log_common nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c crc_ccitt compat ledtrig_usbport sha256_generic libsha256 seqiv jitterentropy_rng drbg hmac cmac leds_gpio xhci_plat_hcd xhci_pci xhci_mtk xhci_hcd gpio_button_hotplug usbcore nls_base usb_common crc32c_generic
[ 310.801286] CPU: 0 PID: 796 Comm: kworker/0:3 Not tainted 5.10.138 #0
[ 310.807768] Workqueue: usb_hub_wq 0x82485a08 [usbcore@e59c15c6+0x23fc0]
[ 310.814360] Stack : 00000000 807200d8 809a0000 c0c12000 00000000 00000000 00000000 00000000
[ 310.822704] 00000000 00000000 00000000 00000000 00000000 00000001 829677f0 449ed92d
[ 310.831047] 82967888 00000000 00000000 82967680 00000038 80399864 ffffffea 00000000
[ 310.839392] 8296768c 000001c8 807c2868 ffffffff 829677d0 806ef0cc 00000000 806f0000
[ 310.847738] 00000009 837672c4 82ebfc00 c0c12000 00000018 80403190 00055bef 00072fef
[ 310.856084] ...
[ 310.858522] Call Trace:
[ 310.858547] [<80399864>] 0x80399864
[ 310.864452] [<80403190>] 0x80403190
[ 310.867927] [<80007b08>] 0x80007b08
[ 310.871397] [<80007b10>] 0x80007b10
[ 310.874868] [<8037e984>] 0x8037e984
[ 310.878347] [<82a80c5c>] 0x82a80c5c [cfg80211@2b77c6c7+0x45f40]
[ 310.884239] [<8007fa1c>] 0x8007fa1c
[ 310.887719] [<82a80c5c>] 0x82a80c5c [cfg80211@2b77c6c7+0x45f40]
[ 310.893609] [<8002ff38>] 0x8002ff38
[ 310.897089] [<82a80c5c>] 0x82a80c5c [cfg80211@2b77c6c7+0x45f40]
[ 310.902981] [<80030000>] 0x80030000
[ 310.906469] [<82a80c5c>] 0x82a80c5c [cfg80211@2b77c6c7+0x45f40]
[ 310.912373] [<8007fa1c>] 0x8007fa1c
[ 310.915862] [<836a3038>] 0x836a3038 [8188eu@67a92391+0x183db0]
[ 310.921677] [<836a257c>] 0x836a257c [8188eu@67a92391+0x183db0]
[ 310.927488] [<8367d2d0>] 0x8367d2d0 [8188eu@67a92391+0x183db0]
[ 310.933298] [<836a2af0>] 0x836a2af0 [8188eu@67a92391+0x183db0]
[ 310.939105] [<80083418>] 0x80083418
[ 310.942583] [<8367e598>] 0x8367e598 [8188eu@67a92391+0x183db0]
[ 310.948393] [<8007fa1c>] 0x8007fa1c
[ 310.951882] [<8367e7b0>] 0x8367e7b0 [8188eu@67a92391+0x183db0]
[ 310.957695] [<836810ec>] 0x836810ec [8188eu@67a92391+0x183db0]
[ 310.963527] [<82490084>] 0x82490084 [usbcore@e59c15c6+0x23fc0]
[ 310.969333] [<80414ed8>] 0x80414ed8
[ 310.972808] [<804158ac>] 0x804158ac
[ 310.976279] [<8041619c>] 0x8041619c
[ 310.979753] [<8041611c>] 0x8041611c
[ 310.983225] [<8041334c>] 0x8041334c
[ 310.986711] [<80415eb0>] 0x80415eb0
[ 310.990185] [<80383d68>] 0x80383d68
[ 310.993667] [<804147e0>] 0x804147e0
[ 310.997144] [<80410250>] 0x80410250
[ 311.000623] [<8248c148>] 0x8248c148 [usbcore@e59c15c6+0x23fc0]
[ 311.006456] [<8248ebd8>] 0x8248ebd8 [usbcore@e59c15c6+0x23fc0]
[ 311.012285] [<8248cd14>] 0x8248cd14 [usbcore@e59c15c6+0x23fc0]
[ 311.018121] [<82499884>] 0x82499884 [usbcore@e59c15c6+0x23fc0]
[ 311.023941] [<8248f374>] 0x8248f374 [usbcore@e59c15c6+0x23fc0]
[ 311.029751] [<8041611c>] 0x8041611c
[ 311.033224] [<804158ac>] 0x804158ac
[ 311.036698] [<8041619c>] 0x8041619c
[ 311.040171] [<8041611c>] 0x8041611c
[ 311.043641] [<8041334c>] 0x8041334c
[ 311.047127] [<80415eb0>] 0x80415eb0
[ 311.050602] [<80383d68>] 0x80383d68
[ 311.054083] [<804147e0>] 0x804147e0
[ 311.057560] [<80410250>] 0x80410250
[ 311.061035] [<80408d24>] 0x80408d24
[ 311.064532] [<82485488>] 0x82485488 [usbcore@e59c15c6+0x23fc0]
[ 311.070361] [<824869c0>] 0x824869c0 [usbcore@e59c15c6+0x23fc0]
[ 311.076168] [<80064870>] 0x80064870
[ 311.079662] [<80060714>] 0x80060714
[ 311.083136] [<80049d00>] 0x80049d00
[ 311.086615] [<8004a0e4>] 0x8004a0e4
[ 311.090085] [<80049f64>] 0x80049f64
[ 311.093562] [<80049f64>] 0x80049f64
[ 311.097037] [<80050c10>] 0x80050c10
[ 311.100507] [<80050ad4>] 0x80050ad4
[ 311.103979] [<80050ad4>] 0x80050ad4
[ 311.107454] [<80050ad4>] 0x80050ad4
[ 311.110924] [<80002f38>] 0x80002f38
[ 311.114403]
[ 311.116268] ---[ end trace defb7fa35784cd5c ]---
[ 311.121107] ------------[ cut here ]------------
[ 311.125792] WARNING: CPU: 0 PID: 796 at backports-5.15.58-1/net/wireless/core.c:882 0x82a812dc [cfg80211@2b77c6c7+0x45f40]
[ 311.137082] Modules linked in: pppoe ppp_async nft_fib_inet nf_flow_table_ipv6 nf_flow_table_ipv4 nf_flow_table_inet 8188eu pppox ppp_generic nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject nft_redir nft_quota nft_objref nft_numgen nft_nat nft_masq nft_log nft_limit nft_hash nft_flow_offload nft_fib_ipv6 nft_fib_ipv4 nft_fib nft_ct nft_counter nft_chain_nat nf_tables nf_nat nf_flow_table nf_conntrack mt76x2e mt76x2_common mt76x02_lib mt7603e mt76 mac80211 cfg80211 slhc nfnetlink nf_reject_ipv6 nf_reject_ipv4 nf_log_ipv6 nf_log_ipv4 nf_log_common nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c crc_ccitt compat ledtrig_usbport sha256_generic libsha256 seqiv jitterentropy_rng drbg hmac cmac leds_gpio xhci_plat_hcd xhci_pci xhci_mtk xhci_hcd gpio_button_hotplug usbcore nls_base usb_common crc32c_generic
[ 311.208645] CPU: 0 PID: 796 Comm: kworker/0:3 Tainted: G W 5.10.138 #0
[ 311.216503] Workqueue: usb_hub_wq 0x82485a08 [usbcore@e59c15c6+0x23fc0]
[ 311.223090] Stack : 00000000 807200d8 809a0000 c0c12000 00000000 00000000 00000000 00000000
[ 311.231435] 00000000 00000000 00000000 00000000 00000000 00000001 829677f0 449ed92d
[ 311.239779] 82967888 00000000 00000000 82967680 00000038 80399864 ffffffea 00000000
[ 311.248125] 8296768c 00000212 807c2868 ffffffff 829677d0 806ef0cc 00000000 806f0000
[ 311.256470] 00000009 837672c4 82ebfc00 c0c12000 00000018 80403190 00000000 80980000
[ 311.264816] ...
[ 311.267255] Call Trace:
[ 311.267276] [<80399864>] 0x80399864
[ 311.273179] [<80403190>] 0x80403190
[ 311.276656] [<80007b08>] 0x80007b08
[ 311.280127] [<80007b10>] 0x80007b10
[ 311.283596] [<8037e984>] 0x8037e984
[ 311.287076] [<82a812dc>] 0x82a812dc [cfg80211@2b77c6c7+0x45f40]
[ 311.292967] [<8007fa1c>] 0x8007fa1c
[ 311.296448] [<82a812dc>] 0x82a812dc [cfg80211@2b77c6c7+0x45f40]
[ 311.302338] [<8002ff38>] 0x8002ff38
[ 311.305819] [<82a812dc>] 0x82a812dc [cfg80211@2b77c6c7+0x45f40]
[ 311.311711] [<80030000>] 0x80030000
[ 311.315199] [<82a812dc>] 0x82a812dc [cfg80211@2b77c6c7+0x45f40]
[ 311.321103] [<8007fa1c>] 0x8007fa1c
[ 311.324592] [<836a3038>] 0x836a3038 [8188eu@67a92391+0x183db0]
[ 311.330407] [<836a257c>] 0x836a257c [8188eu@67a92391+0x183db0]
[ 311.336218] [<8367d2d0>] 0x8367d2d0 [8188eu@67a92391+0x183db0]
[ 311.342029] [<836a2af0>] 0x836a2af0 [8188eu@67a92391+0x183db0]
[ 311.347836] [<80083418>] 0x80083418
[ 311.351314] [<8367e598>] 0x8367e598 [8188eu@67a92391+0x183db0]
[ 311.357123] [<8007fa1c>] 0x8007fa1c
[ 311.360612] [<8367e7b0>] 0x8367e7b0 [8188eu@67a92391+0x183db0]
[ 311.366426] [<836810ec>] 0x836810ec [8188eu@67a92391+0x183db0]
[ 311.372258] [<82490084>] 0x82490084 [usbcore@e59c15c6+0x23fc0]
[ 311.378063] [<80414ed8>] 0x80414ed8
[ 311.381538] [<804158ac>] 0x804158ac
[ 311.385010] [<8041619c>] 0x8041619c
[ 311.388484] [<8041611c>] 0x8041611c
[ 311.391956] [<8041334c>] 0x8041334c
[ 311.395442] [<80415eb0>] 0x80415eb0
[ 311.398916] [<80383d68>] 0x80383d68
[ 311.402398] [<804147e0>] 0x804147e0
[ 311.405875] [<80410250>] 0x80410250
[ 311.409353] [<8248c148>] 0x8248c148 [usbcore@e59c15c6+0x23fc0]
[ 311.415187] [<8248ebd8>] 0x8248ebd8 [usbcore@e59c15c6+0x23fc0]
[ 311.421016] [<8248cd14>] 0x8248cd14 [usbcore@e59c15c6+0x23fc0]
[ 311.426851] [<82499884>] 0x82499884 [usbcore@e59c15c6+0x23fc0]
[ 311.432671] [<8248f374>] 0x8248f374 [usbcore@e59c15c6+0x23fc0]
[ 311.438481] [<8041611c>] 0x8041611c
[ 311.441954] [<804158ac>] 0x804158ac
[ 311.445428] [<8041619c>] 0x8041619c
[ 311.448901] [<8041611c>] 0x8041611c
[ 311.452370] [<8041334c>] 0x8041334c
[ 311.455856] [<80415eb0>] 0x80415eb0
[ 311.459331] [<80383d68>] 0x80383d68
[ 311.462812] [<804147e0>] 0x804147e0
[ 311.466288] [<80410250>] 0x80410250
[ 311.469764] [<80408d24>] 0x80408d24
[ 311.473259] [<82485488>] 0x82485488 [usbcore@e59c15c6+0x23fc0]
[ 311.479089] [<824869c0>] 0x824869c0 [usbcore@e59c15c6+0x23fc0]
[ 311.484896] [<80064870>] 0x80064870
[ 311.488391] [<80060714>] 0x80060714
[ 311.491865] [<80049d00>] 0x80049d00
[ 311.495343] [<8004a0e4>] 0x8004a0e4
[ 311.498814] [<80049f64>] 0x80049f64
[ 311.502291] [<80049f64>] 0x80049f64
[ 311.505766] [<80050c10>] 0x80050c10
[ 311.509236] [<80050ad4>] 0x80050ad4
[ 311.512708] [<80050ad4>] 0x80050ad4
[ 311.516183] [<80050ad4>] 0x80050ad4
[ 311.519653] [<80002f38>] 0x80002f38
[ 311.523130]
[ 311.525026] ---[ end trace defb7fa35784cd5d ]---
[ 311.529895] ------------[ cut here ]------------
[ 311.534831] WARNING: CPU: 0 PID: 796 at target-mipsel_24kc_musl/linux-ramips_mt7621/rtl8188eu/os_dep/linux/os_intfs.c:3729 0x8367e5f8 [8188eu@67a92391+0x183db0]
[ 311.549154] Modules linked in: pppoe ppp_async nft_fib_inet nf_flow_table_ipv6 nf_flow_table_ipv4 nf_flow_table_inet 8188eu pppox ppp_generic nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject nft_redir nft_quota nft_objref nft_numgen nft_nat nft_masq nft_log nft_limit nft_hash nft_flow_offload nft_fib_ipv6 nft_fib_ipv4 nft_fib nft_ct nft_counter nft_chain_nat nf_tables nf_nat nf_flow_table nf_conntrack mt76x2e mt76x2_common mt76x02_lib mt7603e mt76 mac80211 cfg80211 slhc nfnetlink nf_reject_ipv6 nf_reject_ipv4 nf_log_ipv6 nf_log_ipv4 nf_log_common nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c crc_ccitt compat ledtrig_usbport sha256_generic libsha256 seqiv jitterentropy_rng drbg hmac cmac leds_gpio xhci_plat_hcd xhci_pci xhci_mtk xhci_hcd gpio_button_hotplug usbcore nls_base usb_common crc32c_generic
[ 311.620521] CPU: 0 PID: 796 Comm: kworker/0:3 Tainted: G W 5.10.138 #0
[ 311.628618] Workqueue: usb_hub_wq 0x82485a08 [usbcore@e59c15c6+0x23fc0]
[ 311.635212] Stack : 00000000 807200d8 809a0000 c0c12000 00000000 00000000 00000000 00000000
[ 311.643560] 00000000 00000000 00000000 00000000 00000000 00000001 82967880 449ed92d
[ 311.651903] 82967918 00000000 00000000 82967710 00000038 80399864 ffffffea 00000000
[ 311.660248] 8296771c 0000025c 807c2868 ffffffff 82967860 806ef0cc 00000000 806f0000
[ 311.668594] 00000009 00000000 82ebfc00 c0c12000 00000018 80403190 00000000 80980000
[ 311.676939] ...
[ 311.679377] Call Trace:
[ 311.679401] [<80399864>] 0x80399864
[ 311.685307] [<80403190>] 0x80403190
[ 311.688783] [<80007b08>] 0x80007b08
[ 311.692253] [<80007b10>] 0x80007b10
[ 311.695725] [<8037e984>] 0x8037e984
[ 311.699203] [<8367e5f8>] 0x8367e5f8 [8188eu@67a92391+0x183db0]
[ 311.705008] [<8007fa1c>] 0x8007fa1c
[ 311.708487] [<8367e5f8>] 0x8367e5f8 [8188eu@67a92391+0x183db0]
[ 311.714291] [<8002ff38>] 0x8002ff38
[ 311.717767] [<8367e5f8>] 0x8367e5f8 [8188eu@67a92391+0x183db0]
[ 311.723571] [<80030000>] 0x80030000
[ 311.727050] [<836a2af0>] 0x836a2af0 [8188eu@67a92391+0x183db0]
[ 311.732867] [<8367e5f8>] 0x8367e5f8 [8188eu@67a92391+0x183db0]
[ 311.738676] [<8007fa1c>] 0x8007fa1c
[ 311.742166] [<8367e7b0>] 0x8367e7b0 [8188eu@67a92391+0x183db0]
[ 311.747979] [<836810ec>] 0x836810ec [8188eu@67a92391+0x183db0]
[ 311.753811] [<82490084>] 0x82490084 [usbcore@e59c15c6+0x23fc0]
[ 311.759616] [<80414ed8>] 0x80414ed8
[ 311.763091] [<804158ac>] 0x804158ac
[ 311.766563] [<8041619c>] 0x8041619c
[ 311.770036] [<8041611c>] 0x8041611c
[ 311.773508] [<8041334c>] 0x8041334c
[ 311.776995] [<80415eb0>] 0x80415eb0
[ 311.780470] [<80383d68>] 0x80383d68
[ 311.783951] [<804147e0>] 0x804147e0
[ 311.787428] [<80410250>] 0x80410250
[ 311.790907] [<8248c148>] 0x8248c148 [usbcore@e59c15c6+0x23fc0]
[ 311.796740] [<8248ebd8>] 0x8248ebd8 [usbcore@e59c15c6+0x23fc0]
[ 311.802569] [<8248cd14>] 0x8248cd14 [usbcore@e59c15c6+0x23fc0]
[ 311.808405] [<82499884>] 0x82499884 [usbcore@e59c15c6+0x23fc0]
[ 311.814227] [<8248f374>] 0x8248f374 [usbcore@e59c15c6+0x23fc0]
[ 311.820036] [<8041611c>] 0x8041611c
[ 311.823508] [<804158ac>] 0x804158ac
[ 311.826982] [<8041619c>] 0x8041619c
[ 311.830455] [<8041611c>] 0x8041611c
[ 311.833925] [<8041334c>] 0x8041334c
[ 311.837410] [<80415eb0>] 0x80415eb0
[ 311.840885] [<80383d68>] 0x80383d68
[ 311.844368] [<804147e0>] 0x804147e0
[ 311.847844] [<80410250>] 0x80410250
[ 311.851317] [<80408d24>] 0x80408d24
[ 311.854814] [<82485488>] 0x82485488 [usbcore@e59c15c6+0x23fc0]
[ 311.860643] [<824869c0>] 0x824869c0 [usbcore@e59c15c6+0x23fc0]
[ 311.866449] [<80064870>] 0x80064870
[ 311.869944] [<80060714>] 0x80060714
[ 311.873418] [<80049d00>] 0x80049d00
[ 311.876896] [<8004a0e4>] 0x8004a0e4
[ 311.880366] [<80049f64>] 0x80049f64
[ 311.883844] [<80049f64>] 0x80049f64
[ 311.887318] [<80050c10>] 0x80050c10
[ 311.890789] [<80050ad4>] 0x80050ad4
[ 311.894263] [<80050ad4>] 0x80050ad4
[ 311.897737] [<80050ad4>] 0x80050ad4
[ 311.901205] [<80002f38>] 0x80002f38
[ 311.904684]
[ 311.906618] ---[ end trace defb7fa35784cd5e ]---
[ 311.911234] RTW: rtw_wdev_free(wdev=bd39dea1)
[ 311.915959] RTW: rtw_wiphy_free((null))
[ 311.920092] RTW: rtw_usb_primary_adapter_deinit((null))
[ 311.925338] RTW: rtw_dev_unload: bup==_FALSE
[ 311.929922] RTW: +r871xu_dev_remove, hw_init_completed=0
[ 311.936087] RTW: WARN free_recv_skb_queue not empty, 8

lsmod | grep 8188

8188eu 1588656 0
cfg80211 286528 6 8188eu,mt76x2_common,mt76x02_lib,mt7603e,mt76,mac80211
usbcore 147392 6 8188eu,ledtrig_usbport,xhci_plat_hcd,xhci_pci,xhci_mtk,xhci_hcd

lsusb

Bus 002 Device 001: ID 1d6b:0003 Linux 5.10.138 xhci-hcd xHCI Host Controller
Bus 001 Device 002: ID 2357:010c Realtek 802.11n NIC
Bus 001 Device 001: ID 1d6b:0002 Linux 5.10.138 xhci-hcd xHCI Host Controller

uname -r

5.10.138

Xiaomi Router 3G v1 using OpenWrt 22.03.0 r19685-512e76967f (ramips/mt7621)

Any suggestions how to fix it?

Kernel Headers

┌──(root㉿kali)-[~/rtl8188eu]
└─# sudo apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package linux-headers-4.19.157-perf-gcbd64b102864
E: Couldn't find any package by glob 'linux-headers-4.19.157-perf-gcbd64b102864'
E: Couldn't find any package by regex 'linux-headers-4.19.157-perf-gcbd64b102864'

Help request: compiled fine on RPi OS Buster, but RPi OS Bullseye

First of all, let me say thank you for your excellent project. I've been looking for a project like this for a long time and finally found this. It works fine with these steps on the RPi OS Buster which is available on the Raspberry Pi Imager as Raspberry Pi OS Lite (Legacy) and version of kernel is 5.10.103+.
But on the RPi OS Bullseye which is available as Raspberry Pi OS Lite (32-bit) and version of kernel is 5.15.84+, I got the below error:

Creating symlink /var/lib/dkms/rtl8188eu/5.15.84+/source ->
                 /usr/src/rtl8188eu-5.15.84+

DKMS: add completed.
Error! echo
Your kernel headers for kernel 5.15.84+ cannot be found at
/lib/modules/5.15.84+/build or /lib/modules/5.15.84+/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
rtl8188eu, 5.15.84+: added

The /lib/modules/ folder is as follows:

pi@raspberrypi:~/gc_setups $ ls /lib/modules
5.15.84+  5.15.84-v7+  5.15.84-v7l+  5.15.84-v8+  6.1.21+  6.1.21-v7+  6.1.21-v7l+

I can see there are unexpected folders for kernel version 6.1.21 created. Also, in the collect folder 5.15.84+ is as follows:

pi@raspberrypi:~/gc_setups $ ls /lib/modules/5.15.84+
kernel             modules.builtin            modules.builtin.modinfo  modules.devname  modules.symbols
modules.alias      modules.builtin.alias.bin  modules.dep              modules.order    modules.symbols.bin
modules.alias.bin  modules.builtin.bin        modules.dep.bin          modules.softdep

There was neither a build folder nor a source folder.

On the contrary, in the 6.1.21+, the build folder was created:

pi@raspberrypi:~/gc_setups $ ls /lib/modules/6.1.21+
build

I guess that as if the dkms is confusing as the kernel version of 5.15.84 and 6.1.21 but no idea why.

Do you have any suggestions on what I've missed steps or how I can fix it? Thank you for your kind help.

Build fails on Ubuntu 23.04

Using DKMS with Ubuntu 23.04, Kernel 6.2.0-1003-lowlatency

DKMS make.log for 8188eu-git for kernel 6.2.0-1003-lowlatency (x86_64)
ven 12 mag 2023, 12:13:51, CEST
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.19.0-1023-lowlatency/build M=/var/lib/dkms/8188eu/git/build  modules
make[1]: Entering directory '/usr/src/linux-headers-5.19.0-1023-lowlatency'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.2.0-3ubuntu1) 12.2.0
  You are using:           gcc-12 (Ubuntu 12.2.0-17ubuntu1) 12.2.0
  CC [M]  /var/lib/dkms/8188eu/git/build/core/rtw_ap.o
  CC [M]  /var/lib/dkms/8188eu/git/build/core/rtw_br_ext.o
  CC [M]  /var/lib/dkms/8188eu/git/build/core/rtw_cmd.o
  CC [M]  /var/lib/dkms/8188eu/git/build/core/rtw_debug.o
In file included from /var/lib/dkms/8188eu/git/build/core/rtw_cmd.c:22:
/var/lib/dkms/8188eu/git/build/core/rtw_cmd.c: In function ‘rtw_cmd_thread’:
/var/lib/dkms/8188eu/git/build/include/osdep_service.h:70:23: error: implicit declaration of function ‘complete_and_exit’ [-Werror=implicit-function-declaration]
   70 | #define thread_exit() complete_and_exit(NULL, 0)
      |                       ^~~~~~~~~~~~~~~~~
/var/lib/dkms/8188eu/git/build/core/rtw_cmd.c:387:9: note: in expansion of macro ‘thread_exit’
  387 |         thread_exit();
      |         ^~~~~~~~~~~
/var/lib/dkms/8188eu/git/build/core/rtw_br_ext.c:24:10: fatal error: net/ipx.h: No such file or directory
   24 | #include <net/ipx.h>
      |          ^~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:257: /var/lib/dkms/8188eu/git/build/core/rtw_br_ext.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/var/lib/dkms/8188eu/git/build/core/rtw_cmd.c:388:1: error: control reaches end of non-void function [-Werror=return-type]
  388 | }
      | ^
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:258: /var/lib/dkms/8188eu/git/build/core/rtw_cmd.o] Error 1
make[1]: *** [Makefile:1850: /var/lib/dkms/8188eu/git/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.19.0-1023-lowlatency'
make: *** [Makefile:155: modules] Error 2

Compilation error

I got this error while compiling on Debian 12 (bookworm) with kernel 6.1.0-12-amd64:

/var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/wifi_regd.c:409:36: error: ‘REGULATORY_IGNORE_STALE_KICKOFF’ undeclared (first usein this function)
409 | wiphy->regulatory_flags |= REGULATORY_IGNORE_STALE_KICKOFF;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I commented that line, then make was successful and it works.
similar issue here:
morrownr/88x2bu-20210702#165 (comment)

iw dev does not find adapter

ifconfig can find the adapter... iw dev not. I've used latest kali with fresh driver installation. Don't know why suddenly I won't show anymore.

ifconfig
wlan0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 50:3e:aa:75:df:cc  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
iw dev
‎

Interface doesn't show up

I have a wn723n; and I have installed the driver on a tegra tx2 and can't get the interface to show.

$ ifconfig
docker0   Link encap:Ethernet  HWaddr 02:42:98:12:0d:d6  
          inet addr:172.17.0.1  Bcast:0.0.0.0  Mask:255.255.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth0      Link encap:Ethernet  HWaddr 48:b0:2d:0e:10:51  
          inet addr:10.1.9.105  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::4ab0:2dff:fe0e:1051/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:801 errors:0 dropped:143 overruns:0 frame:0
          TX packets:203 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:115320 (115.3 KB)  TX bytes:34980 (34.9 KB)
          Interrupt:43 

l4tbr0    Link encap:Ethernet  HWaddr 72:87:35:b9:19:fa  
          inet addr:192.168.55.1  Bcast:192.168.55.255  Mask:255.255.255.0
          inet6 addr: fe80::e05d:37ff:fe97:6943/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:776 (776.0 B)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:38323 errors:0 dropped:0 overruns:0 frame:0
          TX packets:38323 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:13788489 (13.7 MB)  TX bytes:13788489 (13.7 MB)

usb0      Link encap:Ethernet  HWaddr 9a:81:44:10:6c:a3  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

usb1      Link encap:Ethernet  HWaddr 72:87:35:b9:19:fa  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

But lsusb detects the device:

$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 008: ID c251:1705 Keil Software, Inc. 
Bus 001 Device 007: ID c251:1705 Keil Software, Inc. 
Bus 001 Device 006: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 002: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Any help?

Compiled fine on Pi OS 11 32 bit (ARM), but on Pi OS 11 64 bit (ARM64), make fails?

Compiled fine on Pi OS 11 32 bit (ARM), but on Pi OS 11 64 bit (ARM64), make fails? I am using rpi-update to latest firmware/kernel, and rpi-source to pull the very latest raspberry pi kernel headers to match rpi-update. As I noted above, this seemed to work fine under 32 bit, but hit the following error(s) under 64 bit. Any idea why? Should it not work under 64 bit?

Error detail...

LD [M] /root/rtl8188eu-ivanovborislav/8188eu.o
MODPOST /root/rtl8188eu-ivanovborislav/Module.symvers
ERROR: modpost: "__const_udelay" [/root/rtl8188eu-ivanovborislav/8188eu.ko] undefined!
ERROR: modpost: "__arch_copy_from_user" [/root/rtl8188eu-ivanovborislav/8188eu.ko] undefined!
ERROR: modpost: "_raw_spin_unlock" [/root/rtl8188eu-ivanovborislav/8188eu.ko] undefined!
ERROR: modpost: "__rcu_read_lock" [/root/rtl8188eu-ivanovborislav/8188eu.ko] undefined!
ERROR: modpost: "__rcu_read_unlock" [/root/rtl8188eu-ivanovborislav/8188eu.ko] undefined!
ERROR: modpost: "cpu_hwcap_keys" [/root/rtl8188eu-ivanovborislav/8188eu.ko] undefined!
ERROR: modpost: "csum_ipv6_magic" [/root/rtl8188eu-ivanovborislav/8188eu.ko] undefined!
ERROR: modpost: "__warn_printk" [/root/rtl8188eu-ivanovborislav/8188eu.ko] undefined!
ERROR: modpost: "arm64_const_caps_ready" [/root/rtl8188eu-ivanovborislav/8188eu.ko] undefined!
ERROR: modpost: "__udelay" [/root/rtl8188eu-ivanovborislav/8188eu.ko] undefined!
WARNING: modpost: suppressed 2 unresolved symbol warnings because there were too many)
make[2]: *** [scripts/Makefile.modpost:133: /root/rtl8188eu-ivanovborislav/Module.symvers] Error 1
make[2]: *** Deleting file '/root/rtl8188eu-ivanovborislav/Module.symvers'
make[1]: *** [Makefile:1815: modules] Error 2
make[1]: Leaving directory '/root/linux-31bf7119c2a66c2d198386bb92bd9a421c9fd394'
make: *** [Makefile:2489: modules] Error 2

Compile fails on armv7l

I get the following error running make:

make ARCH=armv7l CROSS_COMPILE= -C /lib/modules/6.1.63-current-sunxi/build M=/home/brent/tmp/rtl8188eu  modules
make[1]: Entering directory '/usr/src/linux-headers-6.1.63-current-sunxi'
Makefile:777: arch/armv7l/Makefile: No such file or directory
make[1]: *** No rule to make target 'arch/armv7l/Makefile'.  Stop.
make[1]: Leaving directory '/usr/src/linux-headers-6.1.63-current-sunxi'
make: *** [Makefile:2491: modules] Error 2

Things go further make ARCH=arm, but eventually fail:

/home/user/tmp/rtl8188eu-1/os_dep/linux/wifi_regd.c: In function ‘rtw_regd_init’:
/home/user/tmp/rtl8188eu-1/os_dep/linux/wifi_regd.c:409:36: error: ‘REGULATORY_IGNORE_STALE_KICKOFF’ undeclared (first use in this function)
  409 |         wiphy->regulatory_flags |= REGULATORY_IGNORE_STALE_KICKOFF;
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Not an Issue - Love this Driver

I like the driver since Its rtl8188eu for TP Link TL-WN722N working on latest kernel 5.18.x and the best part was LED was working, at least it has a job now to blink like how the v1 does. Great.

OpenWrt handshake timeout problem (Reason 15)

Hi again,
i ran into another problem while using my adapter in client mode on OpenWrt 21.02.0 r16279-5cc0535800.
Initial AP connection works fine but an attempt to change station (Edit->Save/Apply) leads to wireless authentication error and disconnection. The same goes to Restart or Disable/Enable radio via LuCI interface.

RTW: rtw_cfg80211_unlink_bss(): cfg80211_unlink AP-name!!
RTW: rtw_cfg80211_indicate_disconnect(wlan2) ,reason = 15
RTW: rtw_cfg80211_indicate_disconnect(wlan2) call cfg80211_disconnected, reason:15

Reason 15 means 4-way handshake timeout. But the same connection goes back online after reboot, so WPA key is valid. Also it's possible to revive a connection by reloading the module rmmod 8188eu insmod 8188eu.
Nevertheless, the situation when a client connection successfully established and its AP restarted does not lead to the issue.

Besides, there is no signal strength and bitrate shows up for the radio in LuCI Wireless Overview regardless of connection state. Though this is a minor compared to handshake timeout issue.

Adapter not recognized after upgrade to Kernel 5.19.0.26

Yesterday I upgraded to kernel 5.19.0.26-generic and after reboot my TP Link TL-WN725N was not recognized. It has worked perfectly with Kernel 5.19 until now, including the latest patch release 5.19.0-23-generic.

I checked it is not an adapter failure after trying it on an old Mac running OS 10.13 - it still works fine.

System:
Ubuntu 22.10
TP Link TL-WN725N (V1)

8188 Kernel Driver Fails to Operate with Product ID 8179 on OpenWrt 21.02.0

I am currently facing a minor issue while attempting to load the 8188 kernel module with the product ID 8179 on OpenWrt. Previously, loading the kernel module with product ID 0179 worked seamlessly and performed perfectly on the same platform.

If the only issue lies in changing the product ID, could you kindly provide guidance on which file I should modify the product ID before cross-compiling the driver again in the context of OpenWrt?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.