Giter VIP home page Giter VIP logo

rtl8188fu's People

Contributors

mdrjr avatar ulli-kroll 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rtl8188fu's Issues

Make error in Ubuntu 19.04

I'm trying to compile this driver in Ubuntu 19.04. make outputs an error:

/opt/rtl8188fu/os_dep/linux/os_intfs.c:956:22:` error: initialization of ‘u16 (*)(struct net_device *, struct sk_buff *, struct net_device *)’ {aka ‘short unsigned int (*)(struct net_device *, struct sk_buff *, struct net_device *)’} from incompatible pointer type ‘u16 (*)(struct net_device *, struct sk_buff *, struct net_device *, u16 (*)(struct net_device *, struct sk_buff *, struct net_device *))’ {aka ‘short unsigned int (*)(struct net_device *, struct sk_buff *, struct net_device *, short unsigned int (*)(struct net_device *, struct sk_buff *, struct net_device *))’} [-Werror=incompatible-pointer-types]
956 | .ndo_select_queue = rtw_select_queue,
| ^~~~~~~~~~~~~~~~
/opt/rtl8188fu/os_dep/linux/os_intfs.c:956:22: note: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’)
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:290: /opt/rtl8188fu/os_dep/linux/os_intfs.o] Error 1
make[1]: *** [Makefile:1653: _module_/opt/rtl8188fu] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.3.0-19-generic'
make: *** [Makefile:435: modules] Error 2

rtl8188fu.ko is not compiled.

Any insights?

Disappears after reboot

Installed and worked in seconds everything is fine but after my next boot Wifi drivers disappeared tried modprobe command shows no error but when I try insmod command it says error: unknown module or module not found

Support for RPI 3B with OpenWRT OS

Hello All,

I am trying to bring up RTL8188FU based WiFi USB Dongle on Raspberry PI 3B. I am using OpenWRT as OS.
I could compile the source code and generate the kernel module successfully.

When I am loading, kernel panic occurs. I am attaching the below logs for your reference. Please help.

logs

root@OpenWrt:/lib/modules/4.14.195# insmod rtl8188fu.ko
[ 345.125986]
[ 345.129396] =======================================================
[ 345.137728] ==== Launching Wi-Fi driver! (Powered by Rockchip) ====
[ 345.145081] =======================================================
[ 345.152394] Realtek 8188FU USB WiFi driver (Powered by Rockchip) init.
[ 345.159939] RTL871X: module init start
[ 345.164649] RTL871X: rtl8188fu v4.3.23.6_20964.20170110
[ 345.170919] usbcore: registered new interface driver rtl8188fu
[ 345.177715] RTL871X: module init ret=0
root@OpenWrt:/lib/modules/4.14.195#
root@OpenWrt:/lib/modules/4.14.195#
root@OpenWrt:/lib/modules/4.14.195# ���긆�[ 352.311072] usb 1-1.4: new high-speed USB device number 5 using dwc_otg
[ 352.441679] usb 1-1.4: New USB device found, idVendor=0bda, idProduct=f179
[ 352.450366] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 352.459476] usb 1-1.4: Product: 802.11n
[ 352.465042] usb 1-1.4: Manufacturer: Realtek
[ 352.471045] usb 1-1.4: SerialNumber: 00E02A2D8C2B

[ 352.478069] RTL871X:
[ 352.478069] usb_endpoint_descriptor(0):
[ 352.486384] RTL871X: bLength=7
[ 352.490258] RTL871X: bDescriptorType=5
[ 352.494842] RTL871X: bEndpointAddress=81
[ 352.499566] RTL871X: wMaxPacketSize=512
[ 352.504194] RTL871X: bInterval=0
[ 352.508174] RTL871X: RT_usb_endpoint_is_bulk_in = 1
[ 352.513829] RTL871X:
[ 352.513829] usb_endpoint_descriptor(1):
[ 352.521343] RTL871X: bLength=7
[ 352.525080] RTL871X: bDescriptorType=5
[ 352.529509] RTL871X: bEndpointAddress=2
[ 352.534020] RTL871X: wMaxPacketSize=512
[ 352.538499] RTL871X: bInterval=0
[ 352.542323] RTL871X: RT_usb_endpoint_is_bulk_out = 2
[ 352.547908] RTL871X:
[ 352.547908] usb_endpoint_descriptor(2):
[ 352.555131] RTL871X: bLength=7
[ 352.558731] RTL871X: bDescriptorType=5
[ 352.563048] RTL871X: bEndpointAddress=3
[ 352.567436] RTL871X: wMaxPacketSize=512
[ 352.571832] RTL871X: bInterval=0
[ 352.575584] RTL871X: RT_usb_endpoint_is_bulk_out = 3
[ 352.581133] RTL871X: nr_endpoint=3, in_num=1, out_num=2
[ 352.581133]
[ 352.588947] RTL871X: USB_SPEED_HIGH
[ 352.593016] RTL871X: CHIP TYPE: RTL8188FU
[ 352.597946] RTL871X: rtw_hal_config_rftype RF_Type is 3 TotalTxPath is 1
[ 352.605408] RTL871X: Chip Version Info: CHIP_8188F_Normal_Chip_SMIC_B_CUT_1T1R_RomVer(0)
[ 352.614781] RTL871X: _ConfigChipOutEP_8188F OutEpQueueSel(0x05), OutEpNumber(2)
[ 352.622925] RTL871X: EEPROM type is E-FUSE
[ 352.627896] RTL871X: Boot from EFUSE, Autoload OK !
[ 352.633673] RTL871X: hal_EfuseSwitchToBank: Efuse switch bank to 0
[ 352.714217] RTL871X: hal_ReadEFuse_WiFi: data end at address=0x77
[ 352.721928] RTL871X: EEPROM VID = 0x bda
[ 352.727288] RTL871X: EEPROM PID = 0xf179
[ 352.732636] RTL871X: hal_com_config_channel_plan chplan:0x20
[ 352.739105] RTL871X: Hal_EfuseParsePowerSavingMode_8188F...bHWPwrPindetect(0)-bHWPowerdown(0) ,bSupportRemoteWakeup(1)
[ 352.751492] RTL871X: ### PS params=> power_mgnt(2),usbss_enable(0) ###
[ 352.759719] RTL871X: kfree Pwr Trim flag:1
[ 352.764708] RTL871X: bb_gain:2
[ 352.770490] usb 1-1.4: request firmware rtlwifi/rtl8188fufw.bin
[ 352.777449] usb 1-1.4: request firmware rtlwifi/rtl8188fufw.bin loaded
[ 352.784918] RTL871X: rtl8188f_FirmwareDownload: fw_ver=4 fw_subver=0000 sig=0x88f1, Month=08, Date=22, Hour=17, Minute=36
[ 352.797794] RTL871X: rtl8188f_FirmwareDownload(): Shift for fw header!
[ 352.805336] RTL871X: rtl8188f_FirmwareDownload by IO write!
[ 352.829614] RTL871X: polling_fwdl_chksum: Checksum report OK! (1, 0ms), REG_MCUFWDL:0x00050105
[ 352.840665] RTL871X: _8051Reset8188: Finish
[ 352.854119] RTL871X: _FWFreeToGo: Polling FW ready OK! (170, 20ms), REG_MCUFWDL:0x000501c6
[ 352.864258] RTL871X: rtl8188f_FirmwareDownload: DLFW OK !
[ 352.870629] RTL871X: rtl8188f_FirmwareDownload success. write_fw:1, 60ms
[ 352.878402] RTL871X: <=== rtl8188f_FirmwareDownload()
[ 352.885269] RTL871X: CardDisableRTL8188FU
[ 352.892085] RTL871X: hal_read_mac_hidden_rpt OK! (1, 10ms), fwdl:1, id:0x19
[ 352.900077] RTL871X: InitAdapterVariablesByPROM_8188FU(): REPLACEMENT = 0
[ 352.907894] RTL871X: rtw_hal_read_chip_info in 280 ms
[ 352.914043] RTL871X: init_channel_set((null)) ChannelPlan ID:0x20, ch num:13
[ 352.922717] RTL871X: NR_RECVBUFF: 8
[ 352.927158] RTL871X: MAX_RECVBUF_SZ: 32768
[ 352.932208] RTL871X: NR_PREALLOC_RECV_SKB: 8
[ 352.937674] RTL871X: rtw_alloc_macid((null)) if1, hwaddr:ff:ff:ff:ff:ff:ff macid:1
[ 352.947165] RTL871X: Init_ODM_ComInfo_8188f(): fab_ver=0 cut_ver=1
[ 352.954367] RTL871X: default power by rate loaded
[ 352.960439] RTL871X: pwrctrlpriv.bSupportRemoteWakeup~~~~~~
[ 352.966995] RTL871X: pwrctrlpriv.bSupportRemoteWakeup~~~[1]~~~
[ 352.973776] RTL871X: can't get autopm:
[ 352.978501] RTL871X: rtw_macaddr_cfg mac addr:00:e0:2a:2d:8c:2b
[ 352.985356] RTL871X: bDriverStopped:True, bSurpriseRemoved:False, bup:0, hw_init_completed:0
[ 352.995621] RTL871X: rtw_wiphy_alloc((null))
[ 353.000796] RTL871X: rtw_wdev_alloc(padapter=ffffff800a381000)
[ 353.007573] RTL871X: rtw_wiphy_register((null))

[ 353.013076] ------------[ cut here ]------------
[ 353.018647] WARNING: CPU: 2 PID: 28 at backports-4.19.137-1/net/wireless/core.c:743 wiphy_register+0x244/0x8d8 [cfg80211]
[ 353.031459] Modules linked in: rtl8188fu pppoe ppp_async brcmfmac rtl8187 pppox ppp_generic nf_conntrack_ipv6 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_ss
[ 353.113494] snd soundcore nls_utf8 eeprom_93cx6 vfat fat nls_iso8859_1 nls_cp437
[ 353.123295] CPU: 2 PID: 28 Comm: kworker/2:1 Not tainted 4.14.195 #0
[ 353.130870] Hardware name: Raspberry Pi 3 Model B Rev 1.2 (DT)
[ 353.137914] Workqueue: usb_hub_wq hub_event
[ 353.143261] task: ffffffc038cf3f00 task.stack: ffffff8008850000
[ 353.150423] pc : wiphy_register+0x244/0x8d8 [cfg80211]
[ 353.157157] lr : rtw_wiphy_register+0x34/0x50 [rtl8188fu]
[ 353.163770] sp : ffffff8008853610 pstate : 40400145
[ 353.169835] x29: ffffff8008853610 x28: ffffffc038162d00
[ 353.176313] x27: ffffffc038162da0 x26: ffffffc037dde898
[ 353.182738] x25: ffffff8000a50890 x24: ffffff800a38437f
[ 353.189139] x23: ffffff8000a64840 x22: ffffff800a38436f
[ 353.195494] x21: ffffffc037e55000 x20: ffffffc037e51f00
[ 353.201802] x19: ffffffc037e52300 x18: 0000000000000000
[ 353.208088] x17: ffffff800857e424 x16: ffffff800857e424
[ 353.214343] x15: ffffff800857e424 x14: ffffff800857e424
[ 353.220549] x13: ffffff800857e424 x12: ffffff800857e424
[ 353.226702] x11: ffffffc038fe04c0 x10: 0000000000000001
[ 353.232815] x9 : 0000000000000000 x8 : 0000000000000000
[ 353.238895] x7 : 0000000000000007 x6 : 000000000000014a
[ 353.244931] x5 : 0000000000000000 x4 : 0000000000000000
[ 353.250918] x3 : 0000000000000000 x2 : 0000000000000000
[ 353.256866] x1 : 0000000000000000 x0 : ffffffc037e52300
[ 353.262788] Call trace:
[ 353.265811] wiphy_register+0x244/0x8d8 [cfg80211]
[ 353.271544] rtw_wiphy_register+0x34/0x50 [rtl8188fu]
[ 353.277523] rtw_cfg80211_ndev_res_register+0x18/0x64 [rtl8188fu]
[ 353.284563] rtw_os_ndev_register+0x20/0xbc [rtl8188fu]
[ 353.290720] rtw_os_ndevs_register+0x8c/0x154 [rtl8188fu]
[ 353.297060] rtw_os_ndevs_init+0x24/0x4c [rtl8188fu]
[ 353.302964] rtw_drv_init+0x3e4/0x520 [rtl8188fu]
[ 353.308276] usb_probe_interface+0x1b8/0x268
[ 353.313155] driver_probe_device+0x158/0x2e8
[ 353.318030] __device_attach_driver+0xc0/0xe0
[ 353.323002] bus_for_each_drv+0x4c/0xa0
[ 353.327444] __device_attach+0x88/0x110
[ 353.331893] device_initial_probe+0x10/0x18
[ 353.336722] bus_probe_device+0x2c/0x98
[ 353.341195] device_add+0x3dc/0x620
[ 353.345314] usb_set_configuration+0x8a0/0x970
[ 353.350423] generic_probe+0x4c/0x98
[ 353.354667] usb_probe_device+0x28/0x48
[ 353.359194] driver_probe_device+0x158/0x2e8
[ 353.364172] __device_attach_driver+0xc0/0xe0
[ 353.369231] bus_for_each_drv+0x4c/0xa0
[ 353.373755] __device_attach+0x88/0x110
[ 353.378267] device_initial_probe+0x10/0x18
[ 353.383119] bus_probe_device+0x2c/0x98
[ 353.387607] device_add+0x3dc/0x620
[ 353.391735] usb_new_device+0x2b8/0x438
[ 353.396216] hub_event+0xa88/0xfd8
[ 353.400239] process_one_work+0x1d8/0x308
[ 353.404883] worker_thread+0x248/0x440
[ 353.409271] kthread+0x114/0x128
[ 353.413116] ret_from_fork+0x10/0x1c
[ 353.417304] ---[ end trace c479491f9a82f265 ]---
[ 353.422667] ------------[ cut here ]------------
[ 353.428014] WARNING: CPU: 2 PID: 28 at backports-4.19.137-1/net/wireless/core.c:821 wiphy_register+0x528/0x8d8 [cfg80211]
[ 353.440389] Modules linked in: rtl8188fu pppoe ppp_async brcmfmac rtl8187 pppox ppp_generic nf_conntrack_ipv6 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_ss
[ 353.520967] snd soundcore nls_utf8 eeprom_93cx6 vfat fat nls_iso8859_1 nls_cp437
[ 353.530593] CPU: 2 PID: 28 Comm: kworker/2:1 Tainted: G W 4.14.195 #0
[ 353.540393] Hardware name: Raspberry Pi 3 Model B Rev 1.2 (DT)
[ 353.547428] Workqueue: usb_hub_wq hub_event
[ 353.552785] task: ffffffc038cf3f00 task.stack: ffffff8008850000
[ 353.559975] pc : wiphy_register+0x528/0x8d8 [cfg80211]
[ 353.566682] lr : rtw_wiphy_register+0x34/0x50 [rtl8188fu]
[ 353.573293] sp : ffffff8008853610 pstate : 60400145
[ 353.579346] x29: ffffff8008853610 x28: ffffffc038162d00
[ 353.585801] x27: ffffffc038162da0 x26: ffffffc037dde898
[ 353.592229] x25: ffffff8000a50890 x24: ffffff800a38437f
[ 353.598619] x23: ffffff8000a64840 x22: ffffff800a38436f
[ 353.604962] x21: ffffffc037e55000 x20: ffffffc037e51f00
[ 353.611270] x19: ffffffc037e52300 x18: 0000000000000000
[ 353.617534] x17: ffffff800857e424 x16: ffffff800857e424
[ 353.623779] x15: ffffff800857e424 x14: ffffff800857e424
[ 353.629970] x13: ffffff800857e424 x12: ffffff800857e424
[ 353.636105] x11: 00000000ffffffbd x10: 0000000000000036
[ 353.642218] x9 : ffffff800081a800 x8 : ffffffc037e52c18
[ 353.648304] x7 : 000000007fffffff x6 : 0000000000000003
[ 353.654363] x5 : 0000000000000000 x4 : 0000000000000000
[ 353.660392] x3 : 0000000000000000 x2 : 0000000000000000
[ 353.666375] x1 : 0000000000000000 x0 : ffffffc037e52300
[ 353.672334] Call trace:
[ 353.675399] wiphy_register+0x528/0x8d8 [cfg80211]
[ 353.681163] rtw_wiphy_register+0x34/0x50 [rtl8188fu]
[ 353.687176] rtw_cfg80211_ndev_res_register+0x18/0x64 [rtl8188fu]
[ 353.694259] rtw_os_ndev_register+0x20/0xbc [rtl8188fu]
[ 353.700451] rtw_os_ndevs_register+0x8c/0x154 [rtl8188fu]
[ 353.706833] rtw_os_ndevs_init+0x24/0x4c [rtl8188fu]
[ 353.712777] rtw_drv_init+0x3e4/0x520 [rtl8188fu]
[ 353.718119] usb_probe_interface+0x1b8/0x268
[ 353.723041] driver_probe_device+0x158/0x2e8
[ 353.727958] __device_attach_driver+0xc0/0xe0
[ 353.732966] bus_for_each_drv+0x4c/0xa0
[ 353.737447] __device_attach+0x88/0x110
[ 353.741940] device_initial_probe+0x10/0x18
[ 353.746810] bus_probe_device+0x2c/0x98
[ 353.751314] device_add+0x3dc/0x620
[ 353.755455] usb_set_configuration+0x8a0/0x970
[ 353.760574] generic_probe+0x4c/0x98
[ 353.764810] usb_probe_device+0x28/0x48
[ 353.769338] driver_probe_device+0x158/0x2e8
[ 353.774317] __device_attach_driver+0xc0/0xe0
[ 353.779380] bus_for_each_drv+0x4c/0xa0
[ 353.783896] __device_attach+0x88/0x110
[ 353.788407] device_initial_probe+0x10/0x18
[ 353.793262] bus_probe_device+0x2c/0x98
[ 353.797748] device_add+0x3dc/0x620
[ 353.801877] usb_new_device+0x2b8/0x438
[ 353.806355] hub_event+0xa88/0xfd8
[ 353.810383] process_one_work+0x1d8/0x308
[ 353.815020] worker_thread+0x248/0x440
[ 353.819401] kthread+0x114/0x128
[ 353.823244] ret_from_fork+0x10/0x1c
[ 353.827432] ---[ end trace c479491f9a82f266 ]---
[ 353.832736] RTL871X: rtw_cfg80211_ndev_res_register rtw_wiphy_register fail for if1
[ 353.841835] ------------[ cut here ]------------
[ 353.847545] WARNING: CPU: 2 PID: 28 at /home/midhun/Work/openwrt/package/kernel/rtl8188fu_second/rtl8188fu/os_dep/linux/os_intfs.c:1129 rtw_os_ndev_register+0x28/0xbc [rtl8188fu]
[ 353.865841] Modules linked in: rtl8188fu pppoe ppp_async brcmfmac rtl8187 pppox ppp_generic nf_conntrack_ipv6 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_ss
[ 353.947467] snd soundcore nls_utf8 eeprom_93cx6 vfat fat nls_iso8859_1 nls_cp437
[ 353.957306] CPU: 2 PID: 28 Comm: kworker/2:1 Tainted: G W 4.14.195 #0
[ 353.967313] Hardware name: Raspberry Pi 3 Model B Rev 1.2 (DT)
[ 353.974424] Workqueue: usb_hub_wq hub_event
[ 353.979821] task: ffffffc038cf3f00 task.stack: ffffff8008850000
[ 353.987334] pc : rtw_os_ndev_register+0x28/0xbc [rtl8188fu]
[ 353.994485] lr : rtw_os_ndev_register+0x20/0xbc [rtl8188fu]
[ 354.001233] sp : ffffff80088536d0 pstate : 80400145
[ 354.007265] x29: ffffff80088536d0 x28: ffffffc038162d00
[ 354.013707] x27: ffffffc038162da0 x26: ffffffc037dde898
[ 354.020107] x25: ffffff8000a50890 x24: ffffff800a38437f
[ 354.026474] x23: ffffff8000a64840 x22: ffffff800a38436f
[ 354.032794] x21: ffffffc037e55000 x20: ffffff800a381000
[ 354.039076] x19: 0000000000000000 x18: 0000000000000000
[ 354.045328] x17: ffffff800857e424 x16: ffffff800857e424
[ 354.051547] x15: ffffff800857e424 x14: ffffff800857e424
[ 354.057722] x13: ffffff800857e424 x12: ffffff800857e424
[ 354.063843] x11: ffffffc038fe1d90 x10: 0000000000000001
[ 354.069930] x9 : 0000000000000000 x8 : 0000000000000000
[ 354.075983] x7 : 0000000000000007 x6 : 00000000000001c1
[ 354.081993] x5 : 0000000000000000 x4 : 0000000000000000
[ 354.087963] x3 : 0000000000000000 x2 : ffffffc03a3b3d80
[ 354.093901] x1 : 0000004031cc8000 x0 : 0000000000000000
[ 354.099815] Call trace:
[ 354.103138] rtw_os_ndev_register+0x28/0xbc [rtl8188fu]
[ 354.109296] rtw_os_ndevs_register+0x8c/0x154 [rtl8188fu]
[ 354.115621] rtw_os_ndevs_init+0x24/0x4c [rtl8188fu]
[ 354.121518] rtw_drv_init+0x3e4/0x520 [rtl8188fu]
[ 354.126805] usb_probe_interface+0x1b8/0x268
[ 354.131653] driver_probe_device+0x158/0x2e8
[ 354.136501] __device_attach_driver+0xc0/0xe0
[ 354.141442] bus_for_each_drv+0x4c/0xa0
[ 354.145869] __device_attach+0x88/0x110
[ 354.150297] device_initial_probe+0x10/0x18
[ 354.155083] bus_probe_device+0x2c/0x98
[ 354.159508] device_add+0x3dc/0x620
[ 354.163596] usb_set_configuration+0x8a0/0x970
[ 354.168674] generic_probe+0x4c/0x98
[ 354.172870] usb_probe_device+0x28/0x48
[ 354.177339] driver_probe_device+0x158/0x2e8
[ 354.182260] __device_attach_driver+0xc0/0xe0
[ 354.187291] bus_for_each_drv+0x4c/0xa0
[ 354.191800] __device_attach+0x88/0x110
[ 354.196306] device_initial_probe+0x10/0x18
[ 354.201154] bus_probe_device+0x2c/0x98
[ 354.205641] device_add+0x3dc/0x620
[ 354.209769] usb_new_device+0x2b8/0x438
[ 354.214249] hub_event+0xa88/0xfd8
[ 354.218277] process_one_work+0x1d8/0x308
[ 354.222919] worker_thread+0x248/0x440
[ 354.227302] kthread+0x114/0x128
[ 354.231141] ret_from_fork+0x10/0x1c
[ 354.235331] ---[ end trace c479491f9a82f267 ]---
[ 354.240690] ------------[ cut here ]------------
[ 354.246334] WARNING: CPU: 2 PID: 28 at /home/midhun/Work/openwrt/package/kernel/rtl8188fu_second/rtl8188fu/os_dep/linux/os_intfs.c:2497 rtw_os_ndevs_register+0x98/0x154 [rtl8188fu]
[ 354.264591] Modules linked in: rtl8188fu pppoe ppp_async brcmfmac rtl8187 pppox ppp_generic nf_conntrack_ipv6 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_ss
[ 354.345526] snd soundcore nls_utf8 eeprom_93cx6 vfat fat nls_iso8859_1 nls_cp437
[ 354.355196] CPU: 2 PID: 28 Comm: kworker/2:1 Tainted: G W 4.14.195 #0
[ 354.365067] Hardware name: Raspberry Pi 3 Model B Rev 1.2 (DT)
[ 354.372139] Workqueue: usb_hub_wq hub_event
[ 354.377526] task: ffffffc038cf3f00 task.stack: ffffff8008850000
[ 354.385044] pc : rtw_os_ndevs_register+0x98/0x154 [rtl8188fu]
[ 354.392375] lr : rtw_os_ndevs_register+0x8c/0x154 [rtl8188fu]
[ 354.399314] sp : ffffff8008853700 pstate : 80400145
[ 354.405349] x29: ffffff8008853700 x28: ffffffc038162d00
[ 354.411792] x27: ffffffc038162da0 x26: 0000000000000000
[ 354.418192] x25: ffffff8000a50890 x24: ffffff800a38437f
[ 354.424567] x23: ffffff8000a64840 x22: ffffff800a383f8c
[ 354.430901] x21: 0000000000000001 x20: ffffffc037e53000
[ 354.437198] x19: 0000000000000000 x18: 0000000000000000
[ 354.443460] x17: ffffff800857e424 x16: ffffff800857e424
[ 354.449692] x15: ffffff800857e424 x14: ffffff800857e424
[ 354.455877] x13: ffffff800857e424 x12: ffffff800857e424
[ 354.462011] x11: ffffffc038fe1d90 x10: 0000000000000001
[ 354.468107] x9 : 0000000000000000 x8 : 0000000000000000
[ 354.474171] x7 : 0000000000000007 x6 : 00000000000001c1
[ 354.480191] x5 : 0000000000000000 x4 : 0000000000000000
[ 354.486169] x3 : 0000000000000000 x2 : ffffffc03a3b3d80
[ 354.492124] x1 : 0000004031cc8000 x0 : 0000000000000000
[ 354.498051] Call trace:
[ 354.501384] rtw_os_ndevs_register+0x98/0x154 [rtl8188fu]
[ 354.507735] rtw_os_ndevs_init+0x24/0x4c [rtl8188fu]
[ 354.513624] rtw_drv_init+0x3e4/0x520 [rtl8188fu]
[ 354.518930] usb_probe_interface+0x1b8/0x268
[ 354.523789] driver_probe_device+0x158/0x2e8
[ 354.528643] __device_attach_driver+0xc0/0xe0
[ 354.533582] bus_for_each_drv+0x4c/0xa0
[ 354.537996] __device_attach+0x88/0x110
[ 354.542418] device_initial_probe+0x10/0x18
[ 354.547198] bus_probe_device+0x2c/0x98
[ 354.551622] device_add+0x3dc/0x620
[ 354.555687] usb_set_configuration+0x8a0/0x970
[ 354.560752] generic_probe+0x4c/0x98
[ 354.564947] usb_probe_device+0x28/0x48
[ 354.569405] driver_probe_device+0x158/0x2e8
[ 354.574315] __device_attach_driver+0xc0/0xe0
[ 354.579328] bus_for_each_drv+0x4c/0xa0
[ 354.583822] __device_attach+0x88/0x110
[ 354.588324] device_initial_probe+0x10/0x18
[ 354.593183] bus_probe_device+0x2c/0x98
[ 354.597679] device_add+0x3dc/0x620
[ 354.601803] usb_new_device+0x2b8/0x438
[ 354.606284] hub_event+0xa88/0xfd8
[ 354.610313] process_one_work+0x1d8/0x308
[ 354.614956] worker_thread+0x248/0x440
[ 354.619338] kthread+0x114/0x128
[ 354.623183] ret_from_fork+0x10/0x1c
[ 354.627373] ---[ end trace c479491f9a82f268 ]---
[ 354.632679] RTL871X: rtw_wdev_unregister(wdev=ffffffc038271c00)
[ 354.639342] ------------[ cut here ]------------
[ 354.644643] WARNING: CPU: 2 PID: 28 at net/core/dev.c:7227 rollback_registered_many+0x88/0x438
[ 354.654670] Modules linked in: rtl8188fu pppoe ppp_async brcmfmac rtl8187 pppox ppp_generic nf_conntrack_ipv6 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_ss
[ 354.735532] snd soundcore nls_utf8 eeprom_93cx6 vfat fat nls_iso8859_1 nls_cp437
[ 354.745212] CPU: 2 PID: 28 Comm: kworker/2:1 Tainted: G W 4.14.195 #0
[ 354.755048] Hardware name: Raspberry Pi 3 Model B Rev 1.2 (DT)
[ 354.762114] Workqueue: usb_hub_wq hub_event
[ 354.767485] task: ffffffc038cf3f00 task.stack: ffffff8008850000
[ 354.774645] pc : rollback_registered_many+0x88/0x438
[ 354.780829] lr : rollback_registered_many+0x38/0x438
[ 354.786959] sp : ffffff8008853620 pstate : 20400145
[ 354.792980] x29: ffffff8008853620 x28: ffffffc038162d00
[ 354.799417] x27: ffffffc038162da0 x26: 0000000000000000
[ 354.805816] x25: ffffff8000a50890 x24: ffffff800a38437f
[ 354.812181] x23: ffffff8000a64840 x22: ffffff80088536b0
[ 354.818499] x21: ffffffc037e55070 x20: ffffffc037e55000
[ 354.824788] x19: ffffff8008853680 x18: 0000000000000000
[ 354.831047] x17: ffffff800857e424 x16: ffffff800857e424
[ 354.837266] x15: ffffff800857e424 x14: ffffff800857e424
[ 354.843441] x13: ffffff800857e424 x12: ffffff800857e424
[ 354.849565] x11: ffffffc038fe1790 x10: 0000000000000001
[ 354.855656] x9 : 0000000000000000 x8 : 0000000000000000
[ 354.861707] x7 : 0000000000000007 x6 : 0000000000000231
[ 354.867712] x5 : dead000000000100 x4 : dead000000000200
[ 354.873693] x3 : 0000000000000000 x2 : 0000000000000000
[ 354.879640] x1 : ffffff8008853640 x0 : 0000000000000001
[ 354.885556] Call trace:
[ 354.888539] rollback_registered_many+0x88/0x438
[ 354.893733] unregister_netdevice_queue+0x74/0xc8
[ 354.899006] unregister_netdev+0x20/0x30
[ 354.903843] rtw_os_ndev_unregister+0x44/0x64 [rtl8188fu]
[ 354.910187] rtw_os_ndevs_register+0xfc/0x154 [rtl8188fu]
[ 354.916524] rtw_os_ndevs_init+0x24/0x4c [rtl8188fu]
[ 354.922422] rtw_drv_init+0x3e4/0x520 [rtl8188fu]
[ 354.927717] usb_probe_interface+0x1b8/0x268
[ 354.932579] driver_probe_device+0x158/0x2e8
[ 354.937440] __device_attach_driver+0xc0/0xe0
[ 354.942393] bus_for_each_drv+0x4c/0xa0
[ 354.946817] __device_attach+0x88/0x110
[ 354.951252] device_initial_probe+0x10/0x18
[ 354.956064] bus_probe_device+0x2c/0x98
[ 354.960520] device_add+0x3dc/0x620
[ 354.964624] usb_set_configuration+0x8a0/0x970
[ 354.969718] generic_probe+0x4c/0x98
[ 354.973937] usb_probe_device+0x28/0x48
[ 354.978428] driver_probe_device+0x158/0x2e8
[ 354.983365] __device_attach_driver+0xc0/0xe0
[ 354.988390] bus_for_each_drv+0x4c/0xa0
[ 354.992881] __device_attach+0x88/0x110
[ 354.997361] device_initial_probe+0x10/0x18
[ 355.002198] bus_probe_device+0x2c/0x98
[ 355.006678] device_add+0x3dc/0x620
[ 355.010805] usb_new_device+0x2b8/0x438
[ 355.015286] hub_event+0xa88/0xfd8
[ 355.019316] process_one_work+0x1d8/0x308
[ 355.023959] worker_thread+0x248/0x440
[ 355.028343] kthread+0x114/0x128
[ 355.032181] ret_from_fork+0x10/0x1c
[ 355.036372] ---[ end trace c479491f9a82f269 ]---
[ 355.041960] network todo 'eth%d' but state 0
[ 355.046896] CPU: 2 PID: 28 Comm: kworker/2:1 Tainted: G W 4.14.195 #0
[ 355.055787] Hardware name: Raspberry Pi 3 Model B Rev 1.2 (DT)
[ 355.062368] Workqueue: usb_hub_wq hub_event
[ 355.067260] Call trace:
[ 355.070383] dump_backtrace+0x0/0x130
[ 355.074749] show_stack+0x14/0x20
[ 355.078752] dump_stack+0xa8/0xcc
[ 355.082735] netdev_run_todo+0xd0/0x2a8
[ 355.087253] rtnl_unlock+0xc/0x18
[ 355.091238] unregister_netdev+0x24/0x30
[ 355.096196] rtw_os_ndev_unregister+0x44/0x64 [rtl8188fu]
[ 355.102667] rtw_os_ndevs_register+0xfc/0x154 [rtl8188fu]
[ 355.109134] rtw_os_ndevs_init+0x24/0x4c [rtl8188fu]
[ 355.115157] rtw_drv_init+0x3e4/0x520 [rtl8188fu]
[ 355.120582] usb_probe_interface+0x1b8/0x268
[ 355.125568] driver_probe_device+0x158/0x2e8
[ 355.130550] __device_attach_driver+0xc0/0xe0
[ 355.135623] bus_for_each_drv+0x4c/0xa0
[ 355.140166] __device_attach+0x88/0x110
[ 355.144699] device_initial_probe+0x10/0x18
[ 355.149569] bus_probe_device+0x2c/0x98
[ 355.154065] device_add+0x3dc/0x620
[ 355.158185] usb_set_configuration+0x8a0/0x970
[ 355.163269] generic_probe+0x4c/0x98
[ 355.167462] usb_probe_device+0x28/0x48
[ 355.171924] driver_probe_device+0x158/0x2e8
[ 355.176837] __device_attach_driver+0xc0/0xe0
[ 355.181852] bus_for_each_drv+0x4c/0xa0
[ 355.186340] __device_attach+0x88/0x110
[ 355.190825] device_initial_probe+0x10/0x18
[ 355.195669] bus_probe_device+0x2c/0x98
[ 355.200142] device_add+0x3dc/0x620
[ 355.204270] usb_new_device+0x2b8/0x438
[ 355.208750] hub_event+0xa88/0xfd8
[ 355.212777] process_one_work+0x1d8/0x308
[ 355.217413] worker_thread+0x248/0x440
[ 355.221795] kthread+0x114/0x128
[ 355.225639] ret_from_fork+0x10/0x1c
[ 355.229873] RTL871X: rtw_wiphy_unregister((null))
[ 355.235277] Unable to handle kernel write to read-only memory at virtual address 00000008
[ 355.244839] Mem abort info:
[ 355.248305] Exception class = DABT (current EL), IL = 32 bits
[ 355.254992] SET = 0, FnV = 0
[ 355.258740] EA = 0, S1PTW = 0
[ 355.262587] Data abort info:
[ 355.266138] ISV = 0, ISS = 0x00000045
[ 355.270674] CM = 0, WnR = 1
[ 355.274322] user pgtable: 4k pages, 39-bit VAs, pgd = ffffffc037881000
[ 355.281636] [0000000000000008] *pgd=0000000037fcd003, *pud=0000000037fcd003, *pmd=0000000000000000
[ 355.292155] Internal error: Oops: 96000045 [#1] SMP
[ 355.297835] Modules linked in: rtl8188fu pppoe ppp_async brcmfmac rtl8187 pppox ppp_generic nf_conntrack_ipv6 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_ss
[ 355.379249] snd soundcore nls_utf8 eeprom_93cx6 vfat fat nls_iso8859_1 nls_cp437
[ 355.388881] Process kworker/2:1 (pid: 28, stack limit = 0xffffff8008850000)
[ 355.397043] CPU: 2 PID: 28 Comm: kworker/2:1 Tainted: G W 4.14.195 #0
[ 355.406935] Hardware name: Raspberry Pi 3 Model B Rev 1.2 (DT)
[ 355.414026] Workqueue: usb_hub_wq hub_event
[ 355.419406] task: ffffffc038cf3f00 task.stack: ffffff8008850000
[ 355.426614] pc : wiphy_unregister+0xc8/0x200 [cfg80211]
[ 355.433083] lr : wiphy_unregister+0xb8/0x200 [cfg80211]
[ 355.439482] sp : ffffff8008853650 pstate : 60400145
[ 355.445505] x29: ffffff8008853650 x28: ffffffc038162d00
[ 355.451931] x27: ffffffc038162da0 x26: 0000000000000000
[ 355.458337] x25: ffffff8000a50890 x24: ffffff800a38437f
[ 355.464706] x23: ffffff8000a64840 x22: 0000000000000000
[ 355.471032] x21: ffffffc037e52000 x20: ffffffc037e51f00
[ 355.477332] x19: ffffffc037e52300 x18: 0000000000000000
[ 355.483599] x17: ffffff800857e424 x16: ffffff800857e424
[ 355.489830] x15: ffffff800857e424 x14: ffffff800857e424
[ 355.496009] x13: ffffff800857e424 x12: 0000000000000020
[ 355.502146] x11: 0101010101010101 x10: ffffffff7fff7f7f
[ 355.508262] x9 : 0000000000000000 x8 : 0000000000000000
[ 355.514350] x7 : 0000000000002cad x6 : 0000004031cc8000
[ 355.520395] x5 : ffffff80088534e8 x4 : ffffff800872b7e8
[ 355.526428] x3 : dead000000000200 x2 : 0000000000000000
[ 355.532440] x1 : 0000000000000000 x0 : ffffffc037e52100
[ 355.538428] Call trace:
[ 355.541517] wiphy_unregister+0xc8/0x200 [cfg80211]
[ 355.547421] rtw_wiphy_unregister+0x34/0x50 [rtl8188fu]
[ 355.553652] rtw_os_ndev_unregister+0x4c/0x64 [rtl8188fu]
[ 355.560074] rtw_os_ndevs_register+0xfc/0x154 [rtl8188fu]
[ 355.566481] rtw_os_ndevs_init+0x24/0x4c [rtl8188fu]
[ 355.572448] rtw_drv_init+0x3e4/0x520 [rtl8188fu]
[ 355.577815] usb_probe_interface+0x1b8/0x268
[ 355.582745] driver_probe_device+0x158/0x2e8
[ 355.587671] __device_attach_driver+0xc0/0xe0
[ 355.592691] bus_for_each_drv+0x4c/0xa0
[ 355.597184] __device_attach+0x88/0x110
[ 355.601667] device_initial_probe+0x10/0x18
[ 355.606526] bus_probe_device+0x2c/0x98
[ 355.611039] device_add+0x3dc/0x620
[ 355.615190] usb_set_configuration+0x8a0/0x970
[ 355.620312] generic_probe+0x4c/0x98
[ 355.624563] usb_probe_device+0x28/0x48
[ 355.629074] driver_probe_device+0x158/0x2e8
[ 355.634018] __device_attach_driver+0xc0/0xe0
[ 355.639062] bus_for_each_drv+0x4c/0xa0
[ 355.643567] __device_attach+0x88/0x110
[ 355.648060] device_initial_probe+0x10/0x18
[ 355.652895] bus_probe_device+0x2c/0x98
[ 355.657372] device_add+0x3dc/0x620
[ 355.661498] usb_new_device+0x2b8/0x438
[ 355.665975] hub_event+0xa88/0xfd8
[ 355.670001] process_one_work+0x1d8/0x308
[ 355.674644] worker_thread+0x248/0x440
[ 355.679027] kthread+0x114/0x128
[ 355.682866] ret_from_fork+0x10/0x1c
[ 355.687060] Code: d1080260 d2804003 f2fbd5a3 a9708402 (f9000441)
[ 355.693849] ---[ end trace c479491f9a82f26a ]---
[ 355.700628] Kernel panic - not syncing: Fatal exception
[ 355.706556] SMP: stopping secondary CPUs
[ 355.711164] Kernel Offset: disabled
[ 355.715320] CPU features: 0x0002000
[ 355.719460] Memory Limit: none
[ 355.724194] Rebooting in 3 seconds..

Make error on Arch Linux kernel 5.3.7

I'm on Arch Linux with kernel 5.3.7. I get this when I run 'make'.

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.3.7-arch1-1-ARCH/build M=/home/sandarulj/Lab/git/rtl8188fu  modules
make[1]: Entering directory '/usr/lib/modules/5.3.7-arch1-1-ARCH/build'
  CC [M]  /home/sandarulj/Lab/git/rtl8188fu/os_dep/linux/os_intfs.o
/home/sandarulj/Lab/git/rtl8188fu/os_dep/linux/os_intfs.c:956:22: error: initialization of ‘u16 (*)(struct net_device *, struct sk_buff *, struct net_device *)’ {aka ‘short unsigned int (*)(struct net_device *, struct sk_buff *, struct net_device *)’} from incompatible pointer type ‘u16 (*)(struct net_device *, struct sk_buff *, struct net_device *, u16 (*)(struct net_device *, struct sk_buff *, struct net_device *))’ {aka ‘short unsigned int (*)(struct net_device *, struct sk_buff *, struct net_device *, short unsigned int (*)(struct net_device *, struct sk_buff *, struct net_device *))’} [-Werror=incompatible-pointer-types]
  956 |  .ndo_select_queue = rtw_select_queue,
      |                      ^~~~~~~~~~~~~~~~
/home/sandarulj/Lab/git/rtl8188fu/os_dep/linux/os_intfs.c:956:22: note: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’)
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:281: /home/sandarulj/Lab/git/rtl8188fu/os_dep/linux/os_intfs.o] Error 1
make[1]: *** [Makefile:1626: _module_/home/sandarulj/Lab/git/rtl8188fu] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.3.7-arch1-1-ARCH/build'
make: *** [Makefile:435: modules] Error 2

Kernel 6.1.0 Support

There appears to be no active support for Linux kernel 6.1.0.
Here's a dump of make's output:

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.1.0-10-amd64/build M=/home/debian/rtl8188fu  modules
make[1]: Entering directory '/usr/src/linux-headers-6.1.0-10-amd64'
  CC [M]  /home/debian/rtl8188fu/core/rtw_cmd.o
  CC [M]  /home/debian/rtl8188fu/core/rtw_security.o
  CC [M]  /home/debian/rtl8188fu/core/rtw_debug.o
  CC [M]  /home/debian/rtl8188fu/core/rtw_io.o
  CC [M]  /home/debian/rtl8188fu/core/rtw_ioctl_query.o
  CC [M]  /home/debian/rtl8188fu/core/rtw_ioctl_set.o
  CC [M]  /home/debian/rtl8188fu/core/rtw_ieee80211.o
  CC [M]  /home/debian/rtl8188fu/core/rtw_mlme.o
  CC [M]  /home/debian/rtl8188fu/core/rtw_mlme_ext.o
  CC [M]  /home/debian/rtl8188fu/core/rtw_wlan_util.o
  CC [M]  /home/debian/rtl8188fu/core/rtw_pwrctrl.o
  CC [M]  /home/debian/rtl8188fu/core/rtw_rf.o
  CC [M]  /home/debian/rtl8188fu/core/rtw_recv.o
  CC [M]  /home/debian/rtl8188fu/core/rtw_sta_mgt.o
  CC [M]  /home/debian/rtl8188fu/core/rtw_ap.o
  CC [M]  /home/debian/rtl8188fu/core/rtw_xmit.o
/home/debian/rtl8188fu/core/rtw_mlme_ext.c: In function ‘mgt_dispatcher’:
/home/debian/rtl8188fu/core/rtw_mlme_ext.c:1161:27: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1161 |                         if(check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
      |                           ^
/home/debian/rtl8188fu/core/rtw_mlme_ext.c:1166:17: note: here
 1166 |                 case WIFI_ASSOCREQ:
      |                 ^~~~
  CC [M]  /home/debian/rtl8188fu/core/rtw_p2p.o
/home/debian/rtl8188fu/core/rtw_sta_mgt.c: In function ‘rtw_mfree_stainfo’:
/home/debian/rtl8188fu/core/rtw_sta_mgt.c:328:24: warning: the comparison will always evaluate as ‘true’ for the address of ‘lock’ will never be NULL [-Waddress]
  328 |         if(&psta->lock != NULL)
      |                        ^~
In file included from /home/debian/rtl8188fu/include/drv_types.h:108,
                 from /home/debian/rtl8188fu/core/rtw_sta_mgt.c:22:
/home/debian/rtl8188fu/include/sta_info.h:162:17: note: ‘lock’ declared here
  162 |         _lock   lock;
      |                 ^~~~
  CC [M]  /home/debian/rtl8188fu/core/rtw_iol.o
  CC [M]  /home/debian/rtl8188fu/core/rtw_odm.o
  CC [M]  /home/debian/rtl8188fu/core/efuse/rtw_efuse.o
  CC [M]  /home/debian/rtl8188fu/os_dep/osdep_service.o
  CC [M]  /home/debian/rtl8188fu/os_dep/linux/os_intfs.o
  CC [M]  /home/debian/rtl8188fu/os_dep/linux/usb_intf.o
  CC [M]  /home/debian/rtl8188fu/os_dep/linux/usb_ops_linux.o
  CC [M]  /home/debian/rtl8188fu/os_dep/linux/ioctl_linux.o
  CC [M]  /home/debian/rtl8188fu/os_dep/linux/xmit_linux.o
  CC [M]  /home/debian/rtl8188fu/os_dep/linux/mlme_linux.o
  CC [M]  /home/debian/rtl8188fu/os_dep/linux/recv_linux.o
/home/debian/rtl8188fu/os_dep/osdep_service.c: In function ‘rtw_random32’:
/home/debian/rtl8188fu/os_dep/osdep_service.c:1470:16: error: implicit declaration of function ‘prandom_u32’; did you mean ‘prandom_u32_max’? [-Werror=implicit-function-declaration]
 1470 |         return prandom_u32();
      |                ^~~~~~~~~~~
      |                prandom_u32_max
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-headers-6.1.0-10-common/scripts/Makefile.build:255: /home/debian/rtl8188fu/os_dep/osdep_service.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/usr/src/linux-headers-6.1.0-10-common/Makefile:2037: /home/debian/rtl8188fu] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-10-amd64'
make: *** [Makefile:261: modules] Error 2

Need frame injection patch

Hii bro do you have any frame injection patch for this driver?.... actually I'm adding this driver in some nethunter kernel that I'm building....but the thing is monitor mode working but frame injection is not working, then I asked @kimocoder about the issue and he said this need some 4-byte frame injection payload.

Linux Mint 19 Cinnamon - 4.15.0-20-generic

Successfully compiled and installed with:

File: Makefile
EXTRA_CFLAGS += -Wno-error=implicit-function-declaration

File: include/osdep_service.h

#include <linux/version.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
#include <linux/sched/signal.h>
#endif

UBSAN: shift-out-of-bounds.... shift exponent 131072 is too large for 32-bit type 'int'

on ubuntu 22.04, dkms install , kernel 5.15.64

Wed Jan 4 14:46:55 2023] ================================================================================
[Wed Jan 4 14:46:55 2023] UBSAN: shift-out-of-bounds in /var/lib/dkms/rtl8188fu/5.15/build/os_dep/linux/ioctl_cfg80211.c:5738:19
[Wed Jan 4 14:46:55 2023] shift exponent 131072 is too large for 32-bit type 'int'
[Wed Jan 4 14:46:55 2023] CPU: 4 PID: 5280 Comm: hostapd Tainted: G OE 5.15.0-56-generic #62-Ubuntu
[Wed Jan 4 14:46:55 2023] Hardware name: Default string Default string/Default string, BIOS 5.13 06/17/2020
[Wed Jan 4 14:46:55 2023] Call Trace:
[Wed Jan 4 14:46:55 2023]
[Wed Jan 4 14:46:55 2023] show_stack+0x52/0x5c
[Wed Jan 4 14:46:55 2023] dump_stack_lvl+0x4a/0x63
[Wed Jan 4 14:46:55 2023] dump_stack+0x10/0x16
[Wed Jan 4 14:46:55 2023] ubsan_epilogue+0x9/0x49
[Wed Jan 4 14:46:55 2023] __ubsan_handle_shift_out_of_bounds.cold+0x61/0xef
[Wed Jan 4 14:46:55 2023] ? mutex_unlock+0x25/0x30
[Wed Jan 4 14:46:55 2023] cfg80211_rtw_mgmt_frame_register+0x2b/0x31 [rtl8188fu]
[Wed Jan 4 14:46:55 2023] cfg80211_mgmt_registrations_update+0x142/0x200 [cfg80211]
[Wed Jan 4 14:46:55 2023] cfg80211_mlme_register_mgmt+0x179/0x2d0 [cfg80211]
[Wed Jan 4 14:46:55 2023] nl80211_register_mgmt+0x97/0xe0 [cfg80211]
[Wed Jan 4 14:46:55 2023] genl_family_rcv_msg_doit+0xe4/0x150
[Wed Jan 4 14:46:55 2023] genl_rcv_msg+0xe2/0x1f0
[Wed Jan 4 14:46:55 2023] ? nl80211_leave_mesh+0x20/0x20 [cfg80211]
[Wed Jan 4 14:46:55 2023] ? genl_get_cmd+0xe0/0xe0
[Wed Jan 4 14:46:55 2023] netlink_rcv_skb+0x53/0x100
[Wed Jan 4 14:46:55 2023] genl_rcv+0x29/0x40
[Wed Jan 4 14:46:55 2023] netlink_unicast+0x220/0x340
[Wed Jan 4 14:46:55 2023] netlink_sendmsg+0x24b/0x4c0
[Wed Jan 4 14:46:55 2023] sock_sendmsg+0x66/0x70
[Wed Jan 4 14:46:55 2023] ____sys_sendmsg+0x252/0x290
[Wed Jan 4 14:46:55 2023] ? import_iovec+0x31/0x40
[Wed Jan 4 14:46:55 2023] ? sendmsg_copy_msghdr+0x7f/0xa0
[Wed Jan 4 14:46:55 2023] ___sys_sendmsg+0x81/0xc0
[Wed Jan 4 14:46:55 2023] ? do_read_fault+0xd9/0x160
[Wed Jan 4 14:46:55 2023] ? __cond_resched+0x1a/0x50
[Wed Jan 4 14:46:55 2023] ? aa_sk_perm+0x43/0x1c0
[Wed Jan 4 14:46:55 2023] ? _copy_from_user+0x2e/0x70
[Wed Jan 4 14:46:55 2023] ? __audit_syscall_exit+0x269/0x2d0
[Wed Jan 4 14:46:55 2023] __sys_sendmsg+0x62/0xc0
[Wed Jan 4 14:46:55 2023] __x64_sys_sendmsg+0x1d/0x30
[Wed Jan 4 14:46:55 2023] do_syscall_64+0x59/0xc0
[Wed Jan 4 14:46:55 2023] ? syscall_exit_to_user_mode+0x27/0x50
[Wed Jan 4 14:46:55 2023] ? do_syscall_64+0x69/0xc0
[Wed Jan 4 14:46:55 2023] ? irqentry_exit+0x1d/0x30
[Wed Jan 4 14:46:55 2023] ? exc_page_fault+0x89/0x170
[Wed Jan 4 14:46:55 2023] entry_SYSCALL_64_after_hwframe+0x61/0xcb
[Wed Jan 4 14:46:55 2023] RIP: 0033:0x7f936fa6eb17
[Wed Jan 4 14:46:55 2023] Code: 0f 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b9 0f 1f 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 2e 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 89 54 24 1c 48 89 74 24 10
[Wed Jan 4 14:46:55 2023] RSP: 002b:00007ffca4142bf8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
[Wed Jan 4 14:46:55 2023] RAX: ffffffffffffffda RBX: 000055f67b84e7f0 RCX: 00007f936fa6eb17
[Wed Jan 4 14:46:55 2023] RDX: 0000000000000000 RSI: 00007ffca4142c30 RDI: 0000000000000008
[Wed Jan 4 14:46:55 2023] RBP: 000055f67b849620 R08: 0000000000000004 R09: 000055f67b849780
[Wed Jan 4 14:46:55 2023] R10: 00007ffca4142d10 R11: 0000000000000246 R12: 000055f67b849ac0
[Wed Jan 4 14:46:55 2023] R13: 00007ffca4142c30 R14: 0000000000000000 R15: 0000000000000000
[Wed Jan 4 14:46:55 2023]
[Wed Jan 4 14:46:55 2023] ================================================================================
[Wed Jan 4 14:46:55 2023] br-lan: port 7(wlx00e0232dea47) entered blocking state
[Wed Jan 4 14:46:55 2023] br-lan: port 7(wlx00e0232dea47) entered disabled state
[Wed Jan 4 14:46:55 2023] device wlx00e0232dea47 entered promiscuous mode
[Wed Jan 4 14:46:56 2023] RTL871X: assoc success

Unstable connection

I can install the driver I can search and connect to a wifi routor but the connection is so unstable the driver becomes unusable after a bit of time.

ERROR HalPwrSeqCmdParsing: Fail to polling Offset[0x6]=00

Hi, I can compile and install the driver successfully, but it won't connect to any wifi network. I see these messages in dmesg

[ 201.717376] RTL871X: ERROR HalPwrSeqCmdParsing: Fail to polling Offset[0x6]=00
[ 201.717378] RTL871X: rtl8188fu_hal_init in 48ms
[ 201.717379] RTL871X: rtw_hal_init: hal__init fail
[ 201.717380] RTL871X: -ips_netdrv_open - drv_open failure, bup=1
[ 201.717380] RTL871X: <=== rtw_ips_pwr_up.............. in 48ms
[ 201.717381] RTL871X: nolinked power save leave
[ 201.717382] RTL871X: ==> ips_leave.....LED(0x00000000)...
[ 201.717382] RTL871X: ======> ips_leave fail.............
[ 201.718027] RTL871X: =>cfg80211_rtw_connect(wlx000f220077f8) - Start to Connection
[ 201.718028] RTL871X: privacy=1, key= (null), key_len=0, key_idx=0, auth_type=0
[ 201.718030] RTL871X: LeaveAllPowerSaveMode(wlx000f220077f8): bSurpriseRemoved=_TRUE Skip!
[ 201.718031] RTL871X: _rtw_pwr_wakeup call ips_leave....
[ 201.718031] RTL871X: ==>ips_leave cnts:9
[ 201.718032] RTL871X: ===> rtw_ips_pwr_up..............
[ 201.718035] RTL871X: ===> ips_netdrv_open.........

My system is Linux 4.19.0-5-amd64, Debian testing

Can you help me to find a solution?

Build firmware error

uname -r
5.9.0-arm-64
`make ARCH=arm64 CROSS_COMPILE= -C /lib/modules/5.9.0-arm-64/build M=/root/reltek/rtl8188fu modules

make[1]: Entering directory '/usr/src/linux-headers-5.9.0-arm-64'
  MODPOST /root/reltek/rtl8188fu/Module.symvers
ERROR: modpost: "__stack_chk_guard" [/root/reltek/rtl8188fu/rtl8188fu.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:111: /root/reltek/rtl8188fu/Module.symvers] Error 1
make[2]: *** Deleting file '/root/reltek/rtl8188fu/Module.symvers'
make[1]: *** [Makefile:1697: modules] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.9.0-arm-64'
make: *** [Makefile:435: modules] Error 2
root@arm-64:~/reltek/rtl8188fu# make CFLAGS='-fstack-protector-all'             make ARCH=arm64 CROSS_COMPILE= -C /lib/modules/5.9.0-arm-64/build M=/root/reltek/rtl8188fu  modules
make[1]: Entering directory '/usr/src/linux-headers-5.9.0-arm-64'
  MODPOST /root/reltek/rtl8188fu/Module.symvers
ERROR: modpost: "__stack_chk_guard" [/root/reltek/rtl8188fu/rtl8188fu.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:111: /root/reltek/rtl8188fu/Module.symvers] Error 1
make[2]: *** Deleting file '/root/reltek/rtl8188fu/Module.symvers'
make[1]: *** [Makefile:1697: modules] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.9.0-arm-64'
make: *** [Makefile:435: modules] Error 2`

it doesn't work with debian

hello after installing it the wifi is refusing to connect am using debian testing with kernel 5.4 and here is screenshot of the error log
Screenshot-20200204-190508

/var/lib/dkms/rtl8188fu/1.0/build/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_indicate_connect’:

CC [M] /var/lib/dkms/rtl8188fu/1.0/build/os_dep/linux/ioctl_cfg80211.o
/var/lib/dkms/rtl8188fu/1.0/build/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_indicate_connect’:
/var/lib/dkms/rtl8188fu/1.0/build/os_dep/linux/ioctl_cfg80211.c:828:26: error: ‘struct cfg80211_roam_info’ has no member named ‘bssid’
828 | roam_info.bssid = cur_network->network.MacAddress;
| ^
make[2]: *** [/usr/src/linux-headers-6.0.0-2parrot1-common/scripts/Makefile.build:254: /var/lib/dkms/rtl8188fu/1.0/build/os_dep/linux/ioctl_cfg80211.o] Error 1
make[1]: *** [/usr/src/linux-headers-6.0.0-2parrot1-common/Makefile:1876: /var/lib/dkms/rtl8188fu/1.0/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.0.0-2parrot1-amd64'
make: *** [Makefile:470: modules] Error 2

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.