Coder Social home page Coder Social logo

rtl8188gu's Introduction

Driver for Linux RTL8188GU (RTL8710B) (VID:PID = 0x0BDA:0xB711)

Is not original driver from Realtek, is build from source code from others official Realtek drivers.

Compiling & Building

Dependencies

To compile the driver, you need to have make and a compiler installed. In addition, you must have the kernel headers installed. If you do not understand what this means, consult your distro.

Compiling

make

Installing

sudo make install

Disable CDROM mode and select in WiFi mode. (not for Ubuntu 20.04)

eject /dev/cdrom0

Known problems

  1. Very slow upload speed.
  2. Problem reconnect from KNetworkManager in Kubuntu 20.04.
  3. In Ubuntu 20.04 detected as GSM modem, need remove option driver as "sudo rmmod option".

Testing

I tested on Ubuntu 16.04, 20.04 and last version OpenWRT, it's work...

rtl8188gu's People

Contributors

hrimfaxi avatar mcmccru avatar x1nto 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  avatar  avatar

rtl8188gu's Issues

error: redefinition of ‘struct sha256_state’

rtw_security.h:252:8: error: redefinition of ‘struct sha256_state’ 252 | struct sha256_state { | ^~~~~~~~~~~~ In file included from ./include/linux/filter.h:23, from ./include/net/sock.h:59, from ./include/linux/tcp.h:19, from ./include/linux/ipv6.h:88, from ./include/net/addrconf.h:50, from /home/simon/rtl8188gu/include/osdep_service_linux.h:48, from /home/simon/rtl8188gu/include/osdep_service.h:50, from /home/simon/rtl8188gu/include/drv_types.h:27, from /home/simon/rtl8188gu/core/rtw_cmd.c:17: ./include/crypto/sha.h:84:8: note: originally defined here 84 | struct sha256_state { | ^~~~~~~~~~~~ make[2]: *** [scripts/Makefile.build:286: /home/simon/rtl8188gu/core/rtw_cmd.o] Error 1 make[1]: *** [Makefile:1783: /home/simon/rtl8188gu] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.8.0-48-generic' make: *** [Makefile:2287: modules] Error 2 simon@simon-VirtualBox:~/rtl8188gu$ ^C

Compile error

Error imformation:

/bin/sh: line 1: cc: command not found
(standard_in) 1: syntax error
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.10.7-3-MANJARO/build M=/home/jachhers/Downloads/rtl81
make[1]: Entering directory '/usr/lib/modules/5.10.7-3-MANJARO/build'
make[1]: gcc: No such file or directory
/bin/sh: line 1: gcc: command not found
(standard_in) 1: syntax error
CC [M] /home/jachhers/Downloads/rtl8188gu/core/rtw_cmd.o
/bin/sh: line 1: gcc: command not found
make[2]: *** [scripts/Makefile.build:279: /home/jachhers/Downloads/rtl8188gu/core/rtw_cmd.o] Error 127
make[1]: *** [Makefile:1805: /home/jachhers/Downloads/rtl8188gu] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.10.7-3-MANJARO/build'
make: *** [Makefile:1894: modules] Error 2

version:
Linux jacheers 5.10.7-3-MANJARO #1 SMP PREEMPT Fri Jan 15 21:11:34 UTC 2021 x86_64 GNU/Linux

Cant compile on Arch using Kernel 6.1

[cryptodan@alphacentauri ~]$ git clone https://github.com/McMCCRU/rtl8188gu.git
Cloning into 'rtl8188gu'...
remote: Enumerating objects: 838, done.
remote: Counting objects: 100% (30/30), done.
remote: Compressing objects: 100% (19/19), done.
remote: Total 838 (delta 14), reused 18 (delta 11), pack-reused 808
Receiving objects: 100% (838/838), 2.98 MiB | 18.73 MiB/s, done.
Resolving deltas: 100% (432/432), done.
[cryptodan@alphacentauri ]$ cd rtl8188gu/
[cryptodan@alphacentauri rtl8188gu]$ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.1.1-arch1-1/build M=/home/cryptodan/rtl8188gu modules
make[1]: Entering directory '/usr/lib/modules/6.1.1-arch1-1/build'
CC [M] /home/cryptodan/rtl8188gu/core/rtw_cmd.o
CC [M] /home/cryptodan/rtl8188gu/core/rtw_security.o
CC [M] /home/cryptodan/rtl8188gu/core/rtw_debug.o
CC [M] /home/cryptodan/rtl8188gu/core/rtw_io.o
CC [M] /home/cryptodan/rtl8188gu/core/rtw_ioctl_query.o
CC [M] /home/cryptodan/rtl8188gu/core/rtw_ioctl_set.o
CC [M] /home/cryptodan/rtl8188gu/core/rtw_ieee80211.o
CC [M] /home/cryptodan/rtl8188gu/core/rtw_mlme.o
CC [M] /home/cryptodan/rtl8188gu/core/rtw_mlme_ext.o
CC [M] /home/cryptodan/rtl8188gu/core/rtw_mi.o
CC [M] /home/cryptodan/rtl8188gu/core/rtw_wlan_util.o
CC [M] /home/cryptodan/rtl8188gu/core/rtw_vht.o
CC [M] /home/cryptodan/rtl8188gu/core/rtw_pwrctrl.o
CC [M] /home/cryptodan/rtl8188gu/core/rtw_rf.o
CC [M] /home/cryptodan/rtl8188gu/core/rtw_recv.o
CC [M] /home/cryptodan/rtl8188gu/core/rtw_sta_mgt.o
/home/cryptodan/rtl8188gu/core/rtw_sta_mgt.c: In function ‘rtw_mfree_stainfo’:
/home/cryptodan/rtl8188gu/core/rtw_sta_mgt.c:352:25: warning: the comparison will always evaluate as ‘true’ for the address of ‘lock’ will never be NULL [-Waddress]
352 | if (&psta->lock != NULL)
| ^

In file included from /home/cryptodan/rtl8188gu/include/drv_types.h:106,
from /home/cryptodan/rtl8188gu/core/rtw_sta_mgt.c:17:
/home/cryptodan/rtl8188gu/include/sta_info.h:229:17: note: ‘lock’ declared here
229 | _lock lock;
| ^~~~
CC [M] /home/cryptodan/rtl8188gu/core/rtw_ap.o
CC [M] /home/cryptodan/rtl8188gu/core/rtw_xmit.o
CC [M] /home/cryptodan/rtl8188gu/core/rtw_p2p.o
CC [M] /home/cryptodan/rtl8188gu/core/rtw_rson.o
CC [M] /home/cryptodan/rtl8188gu/core/rtw_tdls.o
CC [M] /home/cryptodan/rtl8188gu/core/rtw_br_ext.o
CC [M] /home/cryptodan/rtl8188gu/core/rtw_iol.o
CC [M] /home/cryptodan/rtl8188gu/core/rtw_sreset.o
CC [M] /home/cryptodan/rtl8188gu/core/rtw_btcoex_wifionly.o
CC [M] /home/cryptodan/rtl8188gu/core/rtw_btcoex.o
CC [M] /home/cryptodan/rtl8188gu/core/rtw_beamforming.o
CC [M] /home/cryptodan/rtl8188gu/core/rtw_odm.o
CC [M] /home/cryptodan/rtl8188gu/core/efuse/rtw_efuse.o
CC [M] /home/cryptodan/rtl8188gu/os_dep/osdep_service.o
/home/cryptodan/rtl8188gu/os_dep/osdep_service.c: In function ‘rtw_random32’:
/home/cryptodan/rtl8188gu/os_dep/osdep_service.c:2509:16: error: implicit declaration of function ‘prandom_u32’; did you mean ‘prandom_u32_max’? [-Werror=implicit-function-declaration]
2509 | return prandom_u32();
| ^~~~~~~~~~~
| prandom_u32_max
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:250: /home/cryptodan/rtl8188gu/os_dep/osdep_service.o] Error 1
make[1]: *** [Makefile:1992: /home/cryptodan/rtl8188gu] Error 2
make[1]: Leaving directory '/usr/lib/modules/6.1.1-arch1-1/build'
make: *** [Makefile:1895: modules] Error 2

pahole-flags.sh not found error

On linux kali and kali nethunter when i exec make it says
/bin/sh: 1: /usr/src/linux-headers-5.16.0-kali5-common/scripts/pahole-flags.sh: not found
On mint all is ok
Code:
kali:~# cd /sdcard/rtl8821CU root@kali:/sdcard/rtl8821CU# make make ARCH=arm64 CROSS_COMPILE= -C /lib/modules/5.16.0-kali5-arm64/build M=/sdcard/rtl8821CU modules make[1]: Entering directory '/usr/src/linux-headers-5.16.0-kali5-arm64' /bin/sh: 1: /usr/src/linux-headers-5.16.0-kali5-common/scripts/pahole-flags.sh: not found /bin/sh: 1: /usr/src/linux-headers-5.16.0-kali5-common/scripts/pahole-flags.sh: not found warning: the compiler differs from the one used to build the kernel The kernel was built by: gcc-11 (Debian 11.2.0-16) 11.2.0 You are using: gcc-11 (Debian 11.2.0-18) 11.2.0 /bin/sh: 1: /usr/src/linux-headers-5.16.0-kali5-common/scripts/pahole-flags.sh: not found CC [M] /sdcard/rtl8821CU/hal/led/hal_led.o CC [M] /sdcard/rtl8821CU/hal/led/hal_usb_led.o CC [M] /sdcard/rtl8821CU/hal/hal_halmac.o CC [M] /sdcard/rtl8821CU/hal/rtl8821c/rtl8821c_halinit.o CC [M] /sdcard/rtl8821CU/hal/rtl8821c/rtl8821c_mac.o CC [M] /sdcard/rtl8821CU/hal/rtl8821c/rtl8821c_cmd.o CC [M] /sdcard/rtl8821CU/hal/rtl8821c/rtl8821c_phy.o CC [M] /sdcard/rtl8821CU/hal/rtl8821c/rtl8821c_dm.o CC [M] /sdcard/rtl8821CU/hal/rtl8821c/rtl8821c_ops.o CC [M] /sdcard/rtl8821CU/hal/rtl8821c/hal8821c_fw.o CC [M] /sdcard/rtl8821CU/hal/rtl8821c/usb/rtl8821cu_halinit.o CC [M] /sdcard/rtl8821CU/hal/rtl8821c/usb/rtl8821cu_halmac.o CC [M] /sdcard/rtl8821CU/hal/rtl8821c/usb/rtl8821cu_io.o CC [M] /sdcard/rtl8821CU/hal/rtl8821c/usb/rtl8821cu_xmit.o CC [M] /sdcard/rtl8821CU/hal/rtl8821c/usb/rtl8821cu_recv.o CC [M] /sdcard/rtl8821CU/hal/rtl8821c/usb/rtl8821cu_led.o CC [M] /sdcard/rtl8821CU/hal/rtl8821c/usb/rtl8821cu_ops.o CC [M] /sdcard/rtl8821CU/hal/efuse/rtl8821c/HalEfuseMask8821C_USB.o CC [M] /sdcard/rtl8821CU/hal/halmac/halmac_api.o CC [M] /sdcard/rtl8821CU/hal/halmac/halmac_88xx/halmac_bb_rf_88xx.o CC [M] /sdcard/rtl8821CU/hal/halmac/halmac_88xx/halmac_cfg_wmac_88xx.o CC [M] /sdcard/rtl8821CU/hal/halmac/halmac_88xx/halmac_common_88xx.o CC [M] /sdcard/rtl8821CU/hal/halmac/halmac_88xx/halmac_efuse_88xx.o CC [M] /sdcard/rtl8821CU/hal/halmac/halmac_88xx/halmac_flash_88xx.o CC [M] /sdcard/rtl8821CU/hal/halmac/halmac_88xx/halmac_fw_88xx.o CC [M] /sdcard/rtl8821CU/hal/halmac/halmac_88xx/halmac_gpio_88xx.o CC [M] /sdcard/rtl8821CU/hal/halmac/halmac_88xx/halmac_init_88xx.o CC [M] /sdcard/rtl8821CU/hal/halmac/halmac_88xx/halmac_mimo_88xx.o CC [M] /sdcard/rtl8821CU/hal/halmac/halmac_88xx/halmac_pcie_88xx.o CC [M] /sdcard/rtl8821CU/hal/halmac/halmac_88xx/halmac_sdio_88xx.o CC [M] /sdcard/rtl8821CU/hal/halmac/halmac_88xx/halmac_usb_88xx.o CC [M] /sdcard/rtl8821CU/hal/halmac/halmac_88xx/halmac_8821c/halmac_cfg_wmac_8821c.o CC [M] /sdcard/rtl8821CU/hal/halmac/halmac_88xx/halmac_8821c/halmac_common_8821c.o CC [M] /sdcard/rtl8821CU/hal/halmac/halmac_88xx/halmac_8821c/halmac_gpio_8821c.o CC [M] /sdcard/rtl8821CU/hal/halmac/halmac_88xx/halmac_8821c/halmac_init_8821c.o CC [M] /sdcard/rtl8821CU/hal/halmac/halmac_88xx/halmac_8821c/halmac_pcie_8821c.o CC [M] /sdcard/rtl8821CU/hal/halmac/halmac_88xx/halmac_8821c/halmac_phy_8821c.o CC [M] /sdcard/rtl8821CU/hal/halmac/halmac_88xx/halmac_8821c/halmac_pwr_seq_8821c.o CC [M] /sdcard/rtl8821CU/hal/halmac/halmac_88xx/halmac_8821c/halmac_sdio_8821c.o CC [M] /sdcard/rtl8821CU/hal/halmac/halmac_88xx/halmac_8821c/halmac_usb_8821c.o CC [M] /sdcard/rtl8821CU/hal/phydm/phydm_debug.o CC [M] /sdcard/rtl8821CU/hal/phydm/phydm_antdiv.o CC [M] /sdcard/rtl8821CU/hal/phydm/phydm_soml.o CC [M] /sdcard/rtl8821CU/hal/phydm/phydm_smt_ant.o CC [M] /sdcard/rtl8821CU/hal/phydm/phydm_antdect.o CC [M] /sdcard/rtl8821CU/hal/phydm/phydm_interface.o CC [M] /sdcard/rtl8821CU/hal/phydm/phydm_phystatus.o CC [M] /sdcard/rtl8821CU/hal/phydm/phydm_hwconfig.o CC [M] /sdcard/rtl8821CU/hal/phydm/phydm.o CC [M] /sdcard/rtl8821CU/hal/phydm/phydm_dig.o CC [M] /sdcard/rtl8821CU/hal/phydm/phydm_pathdiv.o CC [M] /sdcard/rtl8821CU/hal/phydm/phydm_rainfo.o CC [M] /sdcard/rtl8821CU/hal/phydm/phydm_dynamictxpower.o CC [M] /sdcard/rtl8821CU/hal/phydm/phydm_adaptivity.o CC [M] /sdcard/rtl8821CU/hal/phydm/phydm_cfotracking.o CC [M] /sdcard/rtl8821CU/hal/phydm/phydm_noisemonitor.o CC [M] /sdcard/rtl8821CU/hal/phydm/phydm_beamforming.o CC [M] /sdcard/rtl8821CU/hal/phydm/phydm_dfs.o CC [M] /sdcard/rtl8821CU/hal/phydm/txbf/halcomtxbf.o CC [M] /sdcard/rtl8821CU/hal/phydm/txbf/haltxbfinterface.o CC [M] /sdcard/rtl8821CU/hal/phydm/txbf/phydm_hal_txbf_api.o CC [M] /sdcard/rtl8821CU/hal/phydm/phydm_adc_sampling.o CC [M] /sdcard/rtl8821CU/hal/phydm/phydm_ccx.o CC [M] /sdcard/rtl8821CU/hal/phydm/phydm_psd.o CC [M] /sdcard/rtl8821CU/hal/phydm/phydm_primary_cca.o CC [M] /sdcard/rtl8821CU/hal/phydm/phydm_cck_pd.o CC [M] /sdcard/rtl8821CU/hal/phydm/phydm_rssi_monitor.o CC [M] /sdcard/rtl8821CU/hal/phydm/phydm_auto_dbg.o CC [M] /sdcard/rtl8821CU/hal/phydm/phydm_math_lib.o CC [M] /sdcard/rtl8821CU/hal/phydm/phydm_api.o CC [M] /sdcard/rtl8821CU/hal/phydm/phydm_pow_train.o CC [M] /sdcard/rtl8821CU/hal/phydm/phydm_lna_sat.o CC [M] /sdcard/rtl8821CU/hal/phydm/halrf/halrf.o CC [M] /sdcard/rtl8821CU/hal/phydm/halrf/halrf_debug.o CC [M] /sdcard/rtl8821CU/hal/phydm/halrf/halphyrf_ce.o CC [M] /sdcard/rtl8821CU/hal/phydm/halrf/halrf_powertracking_ce.o CC [M] /sdcard/rtl8821CU/hal/phydm/halrf/halrf_powertracking.o CC [M] /sdcard/rtl8821CU/hal/phydm/halrf/halrf_kfree.o CC [M] /sdcard/rtl8821CU/hal/phydm/rtl8821c/halhwimg8821c_bb.o CC [M] /sdcard/rtl8821CU/hal/phydm/rtl8821c/halhwimg8821c_mac.o CC [M] /sdcard/rtl8821CU/hal/phydm/rtl8821c/halhwimg8821c_rf.o CC [M] /sdcard/rtl8821CU/hal/phydm/rtl8821c/phydm_hal_api8821c.o CC [M] /sdcard/rtl8821CU/hal/phydm/rtl8821c/phydm_regconfig8821c.o CC [M] /sdcard/rtl8821CU/hal/phydm/halrf/rtl8821c/halrf_8821c.o CC [M] /sdcard/rtl8821CU/hal/phydm/halrf/rtl8821c/halrf_iqk_8821c.o CC [M] /sdcard/rtl8821CU/hal/btc/halbtc8821cwifionly.o CC [M] /sdcard/rtl8821CU/hal/btc/halbtc8821c1ant.o CC [M] /sdcard/rtl8821CU/hal/btc/halbtc8821c2ant.o CC [M] /sdcard/rtl8821CU/platform/platform_ops.o CC [M] /sdcard/rtl8821CU/core/rtw_mp.o LD [M] /sdcard/rtl8821CU/8821cu.o /bin/sh: 1: /usr/src/linux-headers-5.16.0-kali5-common/scripts/pahole-flags.sh: not found /bin/sh: 1: /usr/src/linux-headers-5.16.0-kali5-common/scripts/pahole-flags.sh: not found MODPOST /sdcard/rtl8821CU/Module.symvers CC [M] /sdcard/rtl8821CU/8821cu.mod.o LD [M] /sdcard/rtl8821CU/8821cu.ko BTF [M] /sdcard/rtl8821CU/8821cu.ko Skipping BTF generation for /sdcard/rtl8821CU/8821cu.ko due to unavailability of vmlinux make[1]: Leaving directory '/usr/src/linux-headers-5.16.0-kali5-arm64' root@kali:/sdcard/rtl8821CU#

Error can't find linux/sys_config.h

/opt/v2/rtl8188gu/platform/platform_ARM_SUNxI_usb.c:24:10: fatal error: linux/sys_config.h: No such file or directory #include <linux/sys_config.h> ^~~~~~~~~~~~~~~~~~~~ compilation terminated. scripts/Makefile.build:326: recipe for target '/opt/v2/rtl8188gu/platform/platform_ARM_SUNxI_usb.o' failed make[2]: *** [/opt/v2/rtl8188gu/platform/platform_ARM_SUNxI_usb.o] Error 1

I tried using the find command, but couldn't find it
root@hubery:/opt/linux# find / -name sys_config.h root@hubery:/opt/linux#

What do I need to do
Please help me

Why this driver can not use after installed some days?

hi, when i installed this driver,it can use normally,but after some days(about two weeks),my computer can't find wifi adapter.
i should recompile and reinstall driver to solver this problem.

linux:Ubuntu 18.04
kernel:5.4.110

thanks

"NetworkManager needs to be running"

Hi everyone.
Sorry for my noob question I'm really new with Linux OS.
My machine runs on Ubuntu 20.04.3 and I intended to use Comfast CFWU815N USB WiFi LAN card. Upon checking via the internet, I found out that the chipset is Realtek 8188gu. So, from there, I stumbled upon this site.
I finished installing the driver by inserting the following commands in the terminal:

 git clone https://github.com/McMCCRU/rtl8188gu

 cd rtl8188gu

 make

 sudo make install

Then, I rebooted my machine, and still couldn't get into the internet. Computer freezes, couldn't start the browser, and the message I get in the browser setting is in the photo attached.

1635869989593

I would appreciate if anyone could assist me.

Many thanks

Error while compiling on hardened Arch Linux

[spodi@spodi rtl8188gu]$ make
/bin/sh: line 1: bc: command not found
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.14.18-hardened1-1-hardened/build M=/home/spodi/rtl8188gu modules
make[1]: *** /lib/modules/5.14.18-hardened1-1-hardened/build: No such file or directory. Stop.
make: *** [Makefile:1894: modules] Error 2
[spodi@spodi rtl8188gu]$

dkms.conf

I want you to include dkms.conf

$ cat rtl8188gu/dkms.conf
PACKAGE_NAME="rtl8188gu"
PACKAGE_VERSION="1.0.1"
BUILT_MODULE_NAME[0]="8188gu"
MAKE="'make' KVER=${kernelver}"
CLEAN="'make' clean"
DEST_MODULE_LOCATION[0]="/kernel/drivers/net/wireless/realtek/rtl8188gu"
AUTOINSTALL="YES"

We can build using dkms.

$ sudo dkms add ./rtl8188gu

Creating symlink /var/lib/dkms/rtl8188gu/1.0.1/source ->
                 /usr/src/rtl8188gu-1.0.1


$ sudo dkms install rtl8188gu/1.0.1

$ sudo dkms status
rtl8188gu, 1.0.1, 5.10.21-sunxi, armv7l: installed

$ sudo reboot

How was this driver pieced together?

Hi!

I was wondering, how was this driver pieced together? A lot of the files can be found in other Realtek drivers, but the drivers I've seen only have the hal/phydm/rtlxxxxx/halhwimg* files for the chips they support. Same with the firmware. Where did you find those files?

kali-linux can't install this driver.

i install to kali 5.14.0-kali2-amd64 #1 SMP Debian 5.14.9-2kali1 (2021-10-04) x86_64 GNU/Linux ,
i check the header and make && make install ,but the network will freeze after starting the network in the vm。
i type to any network command ,all will get stuck and fail , PLS help me... 0_0

this is my network card: https://service.mercurycom.com.cn/product-242-2.html

└─# lsusb
Bus 003 Device 005: ID 0bda:b711 Realtek Semiconductor Corp. RTL8188GU 802.11n WLAN Adapter (After Modeswitch)

└─# dmesg
[ 484.375159] Call Trace:
[ 484.375163] __schedule+0x2f0/0x910
[ 484.375168] schedule+0x44/0xa0
[ 484.375170] schedule_preempt_disabled+0xa/0x10
[ 484.375171] __mutex_lock.constprop.0+0x28a/0x440
[ 484.375172] addrconf_verify_work+0xa/0x20
[ 484.375175] process_one_work+0x1ec/0x390
[ 484.375179] worker_thread+0x53/0x3e0
[ 484.375180] ? process_one_work+0x390/0x390
[ 484.375182] kthread+0x127/0x150
[ 484.375184] ? set_kthread_struct+0x40/0x40
[ 484.375185] ret_from_fork+0x22/0x30
[ 1052.592534] e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None
[ 1053.436839] usb 3-2.1: USB disconnect, device number 5

Error on manjaro 6.1.23-1 x86_64

Hi,

Thanks for this driver, unfortunately I tried to install it on the last version of manjaro and dind't work, hope you find out why.

make shows this:

Error! Bad return status for module build on kernel: 6.1.23-1-MANJARO (x86_64)
Consult /var/lib/dkms/rtl8188gu/r14.23b04ff/build/make.log for more information.
==> WARNING: dkms install --no-depmod rtl8188gu/r14.23b04ff -k 6.1.23-1-MANJARO' exited 10 ==> dkms install --no-depmod @_PKGBASE@/@PKGVER@ -k 6.1.23-1-MANJARO Module version v5.2.20.2_28373.20180619 for 8188gu.ko.zst exactly matches what is already found in kernel 6.1.23-1-MANJARO. DKMS will not replace this module. You may override by specifying --force. Error! Installation aborted. ==> WARNING: dkms install --no-depmod @_PKGBASE@/@pkgver@ -k 6.1.23-1-MANJARO' exited 6
==> depmod 6.1.23-1-MANJARO

/var/lib/dkms/rtl8188gu/r14.23b04ff/build/make.log

DKMS make.log for rtl8188gu-r14.23b04ff for kernel 6.1.23-1-MANJARO (x86_64)
mar 18 abr 2023 17:15:10 CST
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.1.23-1-MANJARO/build M=/var/lib/dkms/rtl8188gu/r14.23b04ff/build modules
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_cmd.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_security.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_debug.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_io.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_ioctl_query.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_ioctl_set.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_ieee80211.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_mlme.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_mlme_ext.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_mi.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_wlan_util.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_vht.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_pwrctrl.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_rf.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_recv.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_sta_mgt.o
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_sta_mgt.c: In function ‘rtw_mfree_stainfo’:
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_sta_mgt.c:352:25: warning: the comparison will always evaluate as ‘true’ for the address of ‘lock’ will never be NULL [-Waddress]
352 | if (&psta->lock != NULL)
| ^~
In file included from /var/lib/dkms/rtl8188gu/r14.23b04ff/build/include/drv_types.h:106,
from /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_sta_mgt.c:17:
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/include/sta_info.h:229:17: note: ‘lock’ declared here
229 | _lock lock;
| ^~~~
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_ap.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_xmit.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_p2p.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_rson.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_tdls.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_br_ext.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_iol.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_sreset.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_btcoex_wifionly.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_btcoex.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_beamforming.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_odm.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/efuse/rtw_efuse.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/osdep_service.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/linux/os_intfs.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/linux/usb_intf.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/linux/usb_ops_linux.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/linux/ioctl_linux.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/linux/xmit_linux.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/linux/mlme_linux.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/linux/recv_linux.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/linux/ioctl_cfg80211.o
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/osdep_service.c: In function ‘isFileReadable’:
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/osdep_service.c:2089:9: error: unknown type name ‘mm_segment_t’
2089 | mm_segment_t oldfs;
| ^~~~~~~~~~~~
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/osdep_service.c: In function ‘retriveFromFile’:
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/osdep_service.c:2129:9: error: unknown type name ‘mm_segment_t’
2129 | mm_segment_t oldfs;
| ^~~~~~~~~~~~
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/osdep_service.c: In function ‘storeToFile’:
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/osdep_service.c:2168:9: error: unknown type name ‘mm_segment_t’
2168 | mm_segment_t oldfs;
| ^~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:250: /var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/osdep_service.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/linux/ioctl_cfg80211.c: In function ‘cfg80211_rtw_scan’:
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/linux/ioctl_cfg80211.c:2619:33: warning: the comparison will always evaluate as ‘true’ for the address of ‘ssid’ will never be NULL [-Waddress]
2619 | if (ssids->ssid != NULL
| ^~
In file included from /var/lib/dkms/rtl8188gu/r14.23b04ff/build/include/osdep_service_linux.h:93,
from /var/lib/dkms/rtl8188gu/r14.23b04ff/build/include/osdep_service.h:47,
from /var/lib/dkms/rtl8188gu/r14.23b04ff/build/include/drv_types.h:27,
from /var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/linux/ioctl_cfg80211.c:17:
./include/net/cfg80211.h:2359:12: note: ‘ssid’ declared here
2359 | u8 ssid[IEEE80211_MAX_SSID_LEN];
| ^~~~
make[1]: *** [Makefile:2012: /var/lib/dkms/rtl8188gu/r14.23b04ff/build] Error 2
make: *** [Makefile:1896: modules] Error 2

Add support for TOTOLINK N150UA-B

Hi

First, thanks for maintaining this driver.
I have a TOTOLINK N150UA-B usb wireless dongle.
It has a RTL8188GU chip inside, too.
but its VID/PID is 0BDA:2005.
After adding the following line to the file "os_dep/linux/usb_intf.c"
my usb dongle works now.
so I wonder if you can add support for this dongle.
Thanks again!.

{USB_DEVICE_AND_INTERFACE_INFO(USB_VENDER_ID_REALTEK, 0x2005, 0xff, 0xff, 0xff), .driver_info = RTL8710B},

lsusb: (before/after mode switching)
Bus 002 Device 024: ID 0bda:1a2b Realtek Semiconductor Corp. RTL8188GU 802.11n WLAN Adapter (Driver CDROM Mode)
Bus 002 Device 010: ID 0bda:2005 Realtek Semiconductor Corp. 802.11n WLAN Adapter

Datasheet

The kernel hangs out on 5.13 by insmod this module, do you have the chip manual and datasheet of VID:PID = 0x0BDA:0xB711? I want to study this.

谢谢大佬的改版的编译驱动,但我编译安装之后发现还是连不了怎么办?执行操作显示如下(已解决,刚刚发现装上了,我也不知道为啥第一次没装成功orz)

make

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.4.0-42-generic/build M=/home/gz/桌面/rtl8188gu-master modules
make[1]: 进入目录“/usr/src/linux-headers-5.4.0-42-generic”
Building modules, stage 2.
MODPOST 1 modules
make[1]: 离开目录“/usr/src/linux-headers-5.4.0-42-generic”

sudo make install

install -p -m 644 8188gu.ko /lib/modules/5.4.0-42-generic/kernel/drivers/net/wireless/
/sbin/depmod -a 5.4.0-42-generic

然后我去检查是否安装5.4.0-42-generic到其显示地址时,发现到/lib/modules/5.4.0-42-generic/kernel/drivers/net/wireless/这一层就没有/sbin这个文件夹了

GSM模式也移除了

sudo rmmod option

rmmod: ERROR: Module option is not currently loaded

我的系统版本是20.04 LTS
麻烦大佬了!

ubuntu18.04 安装之后也不能开启wifi

大佬您好:
我下载这个驱动安装之后没反应,不知道是啥问题,求大佬指点。

系统:ubuntu18.04
内核:5.4.0
我首先查看了我的usb无线网卡的型号,结果如图:
微信图片_20211214110855

然后通过搜索得到,我需要安装的网卡驱动为:
微信图片_20211214111545

通过搜索在GitHub上找到大佬发布的驱动
make和sudo make install 都没有报错,如下图所示,这是我第二次安装之后的结果:
微信图片_20211214110439

我以为已经安装成功了,然后重启电脑,发现还是不可以使用无线WiFi,如下图:
微信图片_20211214111825

想问下大佬,我这是哪里操作错误了,请大佬指教

insmod:ERROR Problem!!!

I cover a insmod problem:

insmod 8188gu.ko
insmod: ERROR: could not insert module 8188gu.ko: Unknown symbol in module

can not builld on centos9 Linux 5.14.0-130.el9.x86_64 x86_64

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.14.0-130.el9.x86_64/build M=/data/app/rtl8188gu modules
make[1]: 进入目录“/usr/src/kernels/5.14.0-130.el9.x86_64”
CC [M] /data/app/rtl8188gu/core/rtw_cmd.o
CC [M] /data/app/rtl8188gu/core/rtw_security.o
CC [M] /data/app/rtl8188gu/core/rtw_debug.o
CC [M] /data/app/rtl8188gu/core/rtw_io.o
CC [M] /data/app/rtl8188gu/core/rtw_ioctl_query.o
CC [M] /data/app/rtl8188gu/core/rtw_ioctl_set.o
CC [M] /data/app/rtl8188gu/core/rtw_ieee80211.o
CC [M] /data/app/rtl8188gu/core/rtw_mlme.o
CC [M] /data/app/rtl8188gu/core/rtw_mlme_ext.o
CC [M] /data/app/rtl8188gu/core/rtw_mi.o
CC [M] /data/app/rtl8188gu/core/rtw_wlan_util.o
CC [M] /data/app/rtl8188gu/core/rtw_vht.o
CC [M] /data/app/rtl8188gu/core/rtw_pwrctrl.o
CC [M] /data/app/rtl8188gu/core/rtw_rf.o
CC [M] /data/app/rtl8188gu/core/rtw_recv.o
CC [M] /data/app/rtl8188gu/core/rtw_sta_mgt.o
CC [M] /data/app/rtl8188gu/core/rtw_ap.o
CC [M] /data/app/rtl8188gu/core/rtw_xmit.o
CC [M] /data/app/rtl8188gu/core/rtw_p2p.o
CC [M] /data/app/rtl8188gu/core/rtw_rson.o
CC [M] /data/app/rtl8188gu/core/rtw_tdls.o
CC [M] /data/app/rtl8188gu/core/rtw_br_ext.o
CC [M] /data/app/rtl8188gu/core/rtw_iol.o
CC [M] /data/app/rtl8188gu/core/rtw_sreset.o
CC [M] /data/app/rtl8188gu/core/rtw_btcoex_wifionly.o
CC [M] /data/app/rtl8188gu/core/rtw_btcoex.o
CC [M] /data/app/rtl8188gu/core/rtw_beamforming.o
CC [M] /data/app/rtl8188gu/core/rtw_odm.o
CC [M] /data/app/rtl8188gu/core/efuse/rtw_efuse.o
CC [M] /data/app/rtl8188gu/os_dep/osdep_service.o
CC [M] /data/app/rtl8188gu/os_dep/linux/os_intfs.o
CC [M] /data/app/rtl8188gu/os_dep/linux/usb_intf.o
CC [M] /data/app/rtl8188gu/os_dep/linux/usb_ops_linux.o
CC [M] /data/app/rtl8188gu/os_dep/linux/ioctl_linux.o
CC [M] /data/app/rtl8188gu/os_dep/linux/xmit_linux.o
CC [M] /data/app/rtl8188gu/os_dep/linux/mlme_linux.o
CC [M] /data/app/rtl8188gu/os_dep/linux/recv_linux.o
CC [M] /data/app/rtl8188gu/os_dep/linux/ioctl_cfg80211.o
CC [M] /data/app/rtl8188gu/os_dep/linux/rtw_cfgvendor.o
CC [M] /data/app/rtl8188gu/os_dep/linux/wifi_regd.o
CC [M] /data/app/rtl8188gu/os_dep/linux/rtw_android.o
CC [M] /data/app/rtl8188gu/os_dep/linux/rtw_proc.o
/data/app/rtl8188gu/os_dep/linux/rtw_proc.c: 在函数‘rtw_drv_proc_open’中:
/data/app/rtl8188gu/os_dep/linux/rtw_proc.c:212:34: 错误:implicit declaration of function ‘PDE_DATA’; did you mean ‘NODE_DATA’? [-Werror=implicit-function-declaration]
212 | ssize_t index = (ssize_t)PDE_DATA(inode);
| ^~~~~~~~
| NODE_DATA
cc1:有些警告被当作是错误
make[2]: *** [scripts/Makefile.build:271:/data/app/rtl8188gu/os_dep/linux/rtw_proc.o] 错误 1
make[1]: *** [Makefile:1887:/data/app/rtl8188gu] 错误 2
make[1]: 离开目录“/usr/src/kernels/5.14.0-130.el9.x86_64”
make: *** [Makefile:1895:modules] 错误 2

Frequent connection loss and unable to reconnect on Ubuntu 22.04

The output for journalctl -f -b 0 /usr/sbin/NetworkManager

1月 17 12:24:23 amd NetworkManager[721]: <info>  [1673929463.6345] Config: added 'ssid' value 'XXXXX'
1月 17 12:24:23 amd NetworkManager[721]: <info>  [1673929463.6346] Config: added 'scan_ssid' value '1'
1月 17 12:24:23 amd NetworkManager[721]: <info>  [1673929463.6346] Config: added 'bgscan' value 'simple:30:-70:86400'
1月 17 12:24:23 amd NetworkManager[721]: <info>  [1673929463.6346] Config: added 'key_mgmt' value 'WPA-PSK WPA-PSK-SHA256 FT-PSK'
1月 17 12:24:23 amd NetworkManager[721]: <info>  [1673929463.6346] Config: added 'auth_alg' value 'OPEN'
1月 17 12:24:23 amd NetworkManager[721]: <info>  [1673929463.6346] Config: added 'psk' value '<hidden>'
1月 17 12:24:26 amd NetworkManager[721]: <info>  [1673929466.6546] device (wlxe84e06a61042): supplicant interface state: disconnected -> scanning
1月 17 12:24:26 amd NetworkManager[721]: <info>  [1673929466.6547] device (p2p-dev-wlxe84e06a61042): supplicant management interface state: disconnected -> scanning
1月 17 12:24:31 amd NetworkManager[721]: <info>  [1673929471.4648] device (wlxe84e06a61042): supplicant interface state: scanning -> disconnected
1月 17 12:24:31 amd NetworkManager[721]: <info>  [1673929471.4648] device (p2p-dev-wlxe84e06a61042): supplicant management interface state: scanning -> disconnected
1月 17 12:24:41 amd NetworkManager[721]: <info>  [1673929481.4727] device (wlxe84e06a61042): supplicant interface state: disconnected -> scanning
1月 17 12:24:41 amd NetworkManager[721]: <info>  [1673929481.4727] device (p2p-dev-wlxe84e06a61042): supplicant management interface state: disconnected -> scanning
1月 17 12:24:46 amd NetworkManager[721]: <info>  [1673929486.3495] device (wlxe84e06a61042): supplicant interface state: scanning -> disconnected
1月 17 12:24:46 amd NetworkManager[721]: <info>  [1673929486.3495] device (p2p-dev-wlxe84e06a61042): supplicant management interface state: scanning -> disconnected
1月 17 12:24:49 amd NetworkManager[721]: <warn>  [1673929489.1277] device (wlxe84e06a61042): Activation: (wifi) association took too long, failing activation
1月 17 12:24:49 amd NetworkManager[721]: <info>  [1673929489.1278] device (wlxe84e06a61042): state change: config -> failed (reason 'ssid-not-found', sys-iface-state: 'managed')
1月 17 12:24:49 amd NetworkManager[721]: <warn>  [1673929489.1282] device (wlxe84e06a61042): Activation: failed for connection 'XXXXX'

Environment:

~ $ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.1 LTS
Release:	22.04
Codename:	jammy
~ $ uname -a
Linux amd 5.15.0-57-generic #63-Ubuntu SMP Thu Nov 24 13:43:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Error

/bin/sh: 1: bc: not found
i am getting something like this can you please help me

Fails compilation with kernel 6.3.2

I had to edit os_dep/linux/ioctl_cfg80211.c and change
cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0);
to
cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0, 0);

as it required 1 more parameter now.

Also, my device did not work. It gives this:
0bda:1a2b Realtek Semiconductor Corp. RTL8188GU 802.11n WLAN Adapter (Driver CDROM Mode)

But when I do, eject cdrom, it gives this:
0bda:c832 Realtek Semiconductor Corp. 802.11ax WLAN Adapter

I don't know why it is recognized first as RTL8188GU, but it should be RTL8832CU. Maybe this driver could support RTL8832CU?

RTL8188GU firmware?

Hi,

Sorry that i am going to ask a question not completely related to this repo.
I found there is a new kernel patch for the RTL8188GU WNIC,
so I built the kernel from the kernel git tree with this patch.
but it needs a firmware file called "rtl8710bufw.bin" to work properly.
How can i find or make this firmware file?
Thanks.

Patch
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/

dmesg
[ 11.332144] usb 1-3: RTL8710BU rev A (unknown) romver 2, 1T1R, TX queues 3, WiFi=1, BT=0, GPS=0, HI PA=0
[ 11.332151] usb 1-3: RTL8710BU MAC: f4:28:53:1b:89:f8
[ 11.332157] usb 1-3: rtl8xxxu: Loading firmware rtlwifi/rtl8710bufw.bin
[ 11.362090] usb 1-3: Direct firmware load for rtlwifi/rtl8710bufw.bin failed with error -2
[ 11.362104] usb 1-3: request_firmware(rtlwifi/rtl8710bufw.bin) failed
[ 11.362109] usb 1-3: Fatal - failed to load firmware
[ 11.362154] rtl8xxxu: probe of 1-3:1.0 failed with error -11

Cannnot build it on archlinux 5.19.2-arch1-1

The error is as follows:
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.19.2-arch1-1/build M=/home/sunlu/rtl8188gu modules
make[1]: Entering directory '/usr/lib/modules/5.19.2-arch1-1/build'
CC [M] /home/sunlu/rtl8188gu/core/rtw_cmd.o
CC [M] /home/sunlu/rtl8188gu/core/rtw_security.o
CC [M] /home/sunlu/rtl8188gu/core/rtw_debug.o
CC [M] /home/sunlu/rtl8188gu/core/rtw_io.o
CC [M] /home/sunlu/rtl8188gu/core/rtw_ioctl_query.o
CC [M] /home/sunlu/rtl8188gu/core/rtw_ioctl_set.o
CC [M] /home/sunlu/rtl8188gu/core/rtw_ieee80211.o
CC [M] /home/sunlu/rtl8188gu/core/rtw_mlme.o
CC [M] /home/sunlu/rtl8188gu/core/rtw_mlme_ext.o
CC [M] /home/sunlu/rtl8188gu/core/rtw_mi.o
CC [M] /home/sunlu/rtl8188gu/core/rtw_wlan_util.o
CC [M] /home/sunlu/rtl8188gu/core/rtw_vht.o
CC [M] /home/sunlu/rtl8188gu/core/rtw_pwrctrl.o
CC [M] /home/sunlu/rtl8188gu/core/rtw_rf.o
CC [M] /home/sunlu/rtl8188gu/core/rtw_recv.o
CC [M] /home/sunlu/rtl8188gu/core/rtw_sta_mgt.o
/home/sunlu/rtl8188gu/core/rtw_sta_mgt.c: In function ‘rtw_mfree_stainfo’:
/home/sunlu/rtl8188gu/core/rtw_sta_mgt.c:352:25: warning: the comparison will always evaluate as ‘true’ for the address of ‘lock’ will never be NULL [-Waddress]
352 | if (&psta->lock != NULL)
| ^~
In file included from /home/sunlu/rtl8188gu/include/drv_types.h:106,
from /home/sunlu/rtl8188gu/core/rtw_sta_mgt.c:17:
/home/sunlu/rtl8188gu/include/sta_info.h:229:17: note: ‘lock’ declared here
229 | _lock lock;
| ^~~~
CC [M] /home/sunlu/rtl8188gu/core/rtw_ap.o
CC [M] /home/sunlu/rtl8188gu/core/rtw_xmit.o
CC [M] /home/sunlu/rtl8188gu/core/rtw_p2p.o
CC [M] /home/sunlu/rtl8188gu/core/rtw_rson.o
CC [M] /home/sunlu/rtl8188gu/core/rtw_tdls.o
CC [M] /home/sunlu/rtl8188gu/core/rtw_br_ext.o
CC [M] /home/sunlu/rtl8188gu/core/rtw_iol.o
CC [M] /home/sunlu/rtl8188gu/core/rtw_sreset.o
CC [M] /home/sunlu/rtl8188gu/core/rtw_btcoex_wifionly.o
CC [M] /home/sunlu/rtl8188gu/core/rtw_btcoex.o
CC [M] /home/sunlu/rtl8188gu/core/rtw_beamforming.o
CC [M] /home/sunlu/rtl8188gu/core/rtw_odm.o
CC [M] /home/sunlu/rtl8188gu/core/efuse/rtw_efuse.o
CC [M] /home/sunlu/rtl8188gu/os_dep/osdep_service.o
CC [M] /home/sunlu/rtl8188gu/os_dep/linux/os_intfs.o
CC [M] /home/sunlu/rtl8188gu/os_dep/linux/usb_intf.o
CC [M] /home/sunlu/rtl8188gu/os_dep/linux/usb_ops_linux.o
CC [M] /home/sunlu/rtl8188gu/os_dep/linux/ioctl_linux.o
CC [M] /home/sunlu/rtl8188gu/os_dep/linux/xmit_linux.o
CC [M] /home/sunlu/rtl8188gu/os_dep/linux/mlme_linux.o
CC [M] /home/sunlu/rtl8188gu/os_dep/linux/recv_linux.o
CC [M] /home/sunlu/rtl8188gu/os_dep/linux/ioctl_cfg80211.o
/home/sunlu/rtl8188gu/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_ch_switch_notify’:
/home/sunlu/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:396:9: error: too few arguments to function ‘cfg80211_ch_switch_notify’
396 | cfg80211_ch_switch_notify(adapter->pnetdev, &chdef);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/sunlu/rtl8188gu/include/osdep_service_linux.h:93,
from /home/sunlu/rtl8188gu/include/osdep_service.h:47,
from /home/sunlu/rtl8188gu/include/drv_types.h:27,
from /home/sunlu/rtl8188gu/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/sunlu/rtl8188gu/os_dep/linux/ioctl_cfg80211.c: In function ‘cfg80211_rtw_scan’:
/home/sunlu/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:2604:33: warning: the comparison will always evaluate as ‘true’ for the address of ‘ssid’ will never be NULL [-Waddress]
2604 | if (ssids->ssid != NULL
| ^~
./include/net/cfg80211.h:2302:12: note: ‘ssid’ declared here
2302 | u8 ssid[IEEE80211_MAX_SSID_LEN];
| ^~~~
/home/sunlu/rtl8188gu/os_dep/linux/ioctl_cfg80211.c: At top level:
/home/sunlu/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:7470: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]
7470 | .stop_ap = cfg80211_rtw_stop_ap,
| ^~~~~~~~~~~~~~~~~~~~
/home/sunlu/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:7470:20: note: (near initialization for ‘rtw_cfg80211_ops.stop_ap’)
/home/sunlu/rtl8188gu/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_wdev_unregister’:
/home/sunlu/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:7716:17: error: ‘struct wireless_dev’ has no member named ‘current_bss’
7716 | if (wdev->current_bss) {
| ^~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:249: /home/sunlu/rtl8188gu/os_dep/linux/ioctl_cfg80211.o] Error 1
make[1]: *** [Makefile:1849: /home/sunlu/rtl8188gu] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.19.2-arch1-1/build'
make: *** [Makefile:1895: modules] Error 2

make failed

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.8.0-41-generic/build M=/home/jie/Downloads/rtl8188gu modules
make[1]: Entering directory '/usr/src/linux-headers-5.8.0-41-generic'
CC [M] /home/jie/Downloads/rtl8188gu/core/rtw_cmd.o
In file included from /home/jie/Downloads/rtl8188gu/include/drv_types.h:78,
from /home/jie/Downloads/rtl8188gu/core/rtw_cmd.c:17:
/home/jie/Downloads/rtl8188gu/include/rtw_security.h:253:8: error: redefinition of ‘struct sha256_state’
253 | struct sha256_state {
| ^~~~~~~~~~~~
In file included from ./include/linux/filter.h:23,
from ./include/net/sock.h:59,
from ./include/linux/tcp.h:19,
from ./include/linux/ipv6.h:88,
from ./include/net/addrconf.h:50,
from /home/jie/Downloads/rtl8188gu/include/osdep_service_linux.h:48,
from /home/jie/Downloads/rtl8188gu/include/osdep_service.h:47,
from /home/jie/Downloads/rtl8188gu/include/drv_types.h:27,
from /home/jie/Downloads/rtl8188gu/core/rtw_cmd.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
84 | struct sha256_state {
| ^~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:290: /home/jie/Downloads/rtl8188gu/core/rtw_cmd.o] Error 1
make[1]: *** [Makefile:1780: /home/jie/Downloads/rtl8188gu] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.8.0-41-generic'
make: *** [Makefile:1522: modules] Error 2

kernel version:
jie@jie-System-Product-Name:/Downloads/rtl8188gu$ uname -a
Linux jie-System-Product-Name 5.8.0-41-generic #46
20.04.1-Ubuntu SMP Mon Jan 18 17:52:23 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Module not working on kernel 5.11 (working until 5.8)

Hi, now I'm booting with 5.8 for making it work, but if I update to the new 5.11 kernel, it builds, makes and installs, but when I do modprobe, the wired network is showing no SSIDs, also my system glitches, sudo don't work anymore, and I have to force restart.

Any solution to make it work for 5.11? I'm on Ubuntu, pretty much clean installation.
I already installed the 5.11 kernel extras, but no luck.

Thanks!

Cannot build on arch linux zen kernel

This is the output of the make command
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.18.16-zen1-1-zen/build M=/home/hecker/net/rtl8188gu modules make[1]: *** /lib/modules/5.18.16-zen1-1-zen/build: No such file or directory. Stop. make: *** [Makefile:1895: modules] Error 2
Please fix this issue.
as fast as possible.

Error while compiling on arch linux

Hello! I'm trying to compile the driver on a fresh arch linux installation but i'm getting this error:

/bin/sh: line 1: bc: command not found
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.15.0-212-tkg-bmq/build M=/home/e404nnf/rtl8188gu  modules
make[1]: Entering directory '/usr/lib/modules/5.15.0-212-tkg-bmq/build'
/bin/sh: line 1: bc: command not found
  CC [M]  /home/e404nnf/rtl8188gu/core/rtw_cmd.o
  CC [M]  /home/e404nnf/rtl8188gu/core/rtw_security.o
  CC [M]  /home/e404nnf/rtl8188gu/core/rtw_debug.o
	 CC [M]  /home/e404nnf/rtl8188gu/core/rtw_io.o
  CC [M]  /home/e404nnf/rtl8188gu/core/rtw_ioctl_query.o
  CC [M]  /home/e404nnf/rtl8188gu/core/rtw_ioctl_set.o
  CC [M]  /home/e404nnf/rtl8188gu/core/rtw_ieee80211.o
  CC [M]  /home/e404nnf/rtl8188gu/core/rtw_mlme.o
  CC [M]  /home/e404nnf/rtl8188gu/core/rtw_mlme_ext.o
  CC [M]  /home/e404nnf/rtl8188gu/core/rtw_mi.o
  CC [M]  /home/e404nnf/rtl8188gu/core/rtw_wlan_util.o
  CC [M]  /home/e404nnf/rtl8188gu/core/rtw_vht.o
  CC [M]  /home/e404nnf/rtl8188gu/core/rtw_pwrctrl.o
  CC [M]  /home/e404nnf/rtl8188gu/core/rtw_rf.o
  CC [M]  /home/e404nnf/rtl8188gu/core/rtw_recv.o
  CC [M]  /home/e404nnf/rtl8188gu/core/rtw_sta_mgt.o
  CC [M]  /home/e404nnf/rtl8188gu/core/rtw_ap.o
  CC [M]  /home/e404nnf/rtl8188gu/core/rtw_xmit.o
  CC [M]  /home/e404nnf/rtl8188gu/core/rtw_p2p.o
  CC [M]  /home/e404nnf/rtl8188gu/core/rtw_rson.o
  CC [M]  /home/e404nnf/rtl8188gu/core/rtw_tdls.o
  CC [M]  /home/e404nnf/rtl8188gu/core/rtw_br_ext.o
/home/e404nnf/rtl8188gu/core/rtw_br_ext.c:20:18: fatal error: net/ipx.h: No such file or directory
   20 |         #include <net/ipx.h>
      |                  ^~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:277: /home/e404nnf/rtl8188gu/core/rtw_br_ext.o] Error 1
make[1]: *** [Makefile:1868: /home/e404nnf/rtl8188gu] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.15.0-212-tkg-bmq/build'
make: *** [Makefile:1894: modules] Error 2```

Warnings after compiling into the kernel

[ 22.949220] ------------[ cut here ]------------
[ 22.953861] WARNING: CPU: 0 PID: 71 at drivers/clk/clk.c:816 clk_core_unprepare+0x108/0x224
[ 22.962225] bus-gmac already unprepared
[ 22.966070] Modules linked in:
[ 22.969142] CPU: 0 PID: 71 Comm: kworker/0:1 Tainted: G W 5.4.128 #4
[ 22.976784] Hardware name: Allwinner sun8i Family
[ 22.981483] Workqueue: events deferred_probe_work_func
[ 22.986619] [] (unwind_backtrace) from [] (show_stack+0x10/0x14)
[ 22.994351] [] (show_stack) from [] (dump_stack+0x90/0xa4)
[ 23.001564] [] (dump_stack) from [] (__warn+0xd0/0xf8)
[ 23.008430] [] (__warn) from [] (warn_slowpath_fmt+0x98/0xc8)
[ 23.015903] [] (warn_slowpath_fmt) from [] (clk_core_unprepare+0x108/0x224)
[ 23.024590] [] (clk_core_unprepare) from [] (clk_unprepare+0x24/0x2c)
[ 23.032756] [] (clk_unprepare) from [] (stmmac_remove_config_dt+0x1c/0x34)
[ 23.041357] [] (stmmac_remove_config_dt) from [] (stmmac_pltfr_remove+0x44/0x4c)
[ 23.050478] [] (stmmac_pltfr_remove) from [] (sun8i_dwmac_probe+0x2c0/0x49c)
[ 23.059252] [] (sun8i_dwmac_probe) from [] (platform_drv_probe+0x48/0x98)
[ 23.067765] [] (platform_drv_probe) from [] (really_probe+0x1e0/0x348)
[ 23.076019] [] (really_probe) from [] (driver_probe_device+0x60/0x170)
[ 23.084273] [] (driver_probe_device) from [] (bus_for_each_drv+0x84/0xd4)
[ 23.092787] [] (bus_for_each_drv) from [] (__device_attach+0xf4/0x160)
[ 23.101040] [] (__device_attach) from [] (bus_probe_device+0x84/0x8c)
[ 23.109207] [] (bus_probe_device) from [] (deferred_probe_work_func+0x64/0x90)
[ 23.118154] [] (deferred_probe_work_func) from [] (process_one_work+0x1f0/0x528)
[ 23.127272] [] (process_one_work) from [] (worker_thread+0x25c/0x564)
[ 23.135438] [] (worker_thread) from [] (kthread+0x128/0x154)
[ 23.142825] [] (kthread) from [] (ret_from_fork+0x14/0x2c)
[ 23.150032] Exception stack(0xeeb3bfb0 to 0xeeb3bff8)
[ 23.155076] bfa0: 00000000 00000000 00000000 00000000
[ 23.163242] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 23.171407] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 23.178555] ---[ end trace b9ad00395fb8c91b ]---

I compiled the driver of RTL8188gu into the kernel and encountered this problem on the arm development board. Can anyone help me?

No rule to make target 'arch/armv7l/Makefile'. Stop.

Hi. I have problem with installation driver.

OrangePi PC
OS: Armbian (22.05.0-trunk.0004) armv7l
Kernel: 5.15.25-sunxi

Headers installed via armbian-config but have that problem at console

make[1]: Entering directory '/usr/src/linux-headers-5.15.25-sunxi'
Makefile:701: 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-5.15.25-sunxi'
make: *** [Makefile:1895: modules] Error 2

please help me

Doesn't work in Ubuntu 20.04.3 LTS

hostnamectl | grep Kernel
Kernel: Linux 5.4.0-88-generic
lexxnsk@ubuntu:~$ hostnamectl
Static hostname: ubuntu
Icon name: computer-vm
Chassis: vm
Machine ID: 10c9c637d2f5498ea20fdfe77457e442
Boot ID: a7668f451d5b4c5f9f0e1a8015748003
Virtualization: oracle
Operating System: Ubuntu 20.04.3 LTS
Kernel: Linux 5.4.0-88-generic
Architecture: x86-64

lsusb
Bus 001 Device 003: ID 0bda:b711 Realtek Semiconductor Corp. 802.11n WLAN Adapter
Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

ifconfig
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.139 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::a00:27ff:fe9c:df49 prefixlen 64 scopeid 0x20
ether 08:00:27:9c:df:49 txqueuelen 1000 (Ethernet)
RX packets 745 bytes 189637 (189.6 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 405 bytes 69009 (69.0 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 84 bytes 6324 (6.3 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 84 bytes 6324 (6.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

there is no wireless interface in ifconfig

Wifi Adaper not found after Update

Hi ,

This works fine but . when i update my ubuntu .

The wifi adapter is not found again . Please let me know is there a way to fix this

Kernal Version 5.4.0-73

Cannot build it in archlinux 5.18.1-arch-1

Hello,
I'm sorry to disturb you, but it fails to build in archlinux 5.18.1-arch-1,
the error is as follows:
DKMS make.log for rtl8188gu-r14.23b04ff for kernel 5.18.1-arch1-1 (x86_64)
2022年 06月 01日 星期三 10:29:44 CST
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.18.1-arch1-1/build M=/var/lib/dkms/rtl8188gu/r14.23b04ff/build modules
make[1]: 进入目录“/usr/lib/modules/5.18.1-arch1-1/build”
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_cmd.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_security.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_debug.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_io.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_ioctl_query.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_ioctl_set.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_ieee80211.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_mlme.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_mlme_ext.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_mi.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_wlan_util.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_vht.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_pwrctrl.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_rf.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_recv.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_sta_mgt.o
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_sta_mgt.c: 在函数‘rtw_mfree_stainfo’中:
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_sta_mgt.c:352:25: 警告:the comparison will always evaluate as ‘true’ for the address of ‘lock’ will never be NULL [-Waddress]
352 | if (&psta->lock != NULL)
| ^~
In file included from /var/lib/dkms/rtl8188gu/r14.23b04ff/build/include/drv_types.h:106,
from /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_sta_mgt.c:17:
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/include/sta_info.h:229:17: 附注:‘lock’在此声明
229 | _lock lock;
| ^~~~
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_ap.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_xmit.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_p2p.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_rson.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_tdls.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_br_ext.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_iol.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_sreset.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_btcoex_wifionly.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_btcoex.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_beamforming.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_odm.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/efuse/rtw_efuse.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/osdep_service.o
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/osdep_service.c: 在函数‘isFileReadable’中:
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/osdep_service.c:2089:9: 错误:未知的类型名‘mm_segment_t’
2089 | mm_segment_t oldfs;
| ^~~~~~~~~~~~
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/osdep_service.c: 在函数‘retriveFromFile’中:
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/osdep_service.c:2129:9: 错误:未知的类型名‘mm_segment_t’
2129 | mm_segment_t oldfs;
| ^~~~~~~~~~~~
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/osdep_service.c: 在函数‘storeToFile’中:
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/osdep_service.c:2168:9: 错误:未知的类型名‘mm_segment_t’
2168 | mm_segment_t oldfs;
| ^~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:288:/var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/osdep_service.o] 错误 1
make[1]: *** [Makefile:1834:/var/lib/dkms/rtl8188gu/r14.23b04ff/build] 错误 2
make[1]: 离开目录“/usr/lib/modules/5.18.1-arch1-1/build”
make: *** [Makefile:1896:modules] 错误 2

Wifi dongle not exiting CDROM mode in Gentoo

I'm having problems getting the wifi dongle out of CDROM mode in Gentoo. It does not show up as a cdrom but instead as a /dev/sdf. The driver compiles and installs just fine.

Cannot connect to any password protected wifi network

No matter what password am i using (or client: kde tool or nmtui) it doesn't accept my password

[roman@arch ~]$ connmanctl connect wifi_502b731c38a6_486f6d65_managed_psk

Error /net/connman/service/wifi_502b731c38a6_486f6d65_managed_psk: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

iwctl

[iwd]# station wlan0 connect Home
Operation failed

[roman@arch ~]$ systemctl status iwd.service

Jan 14 00:24:42 arch iwd[9429]: CMD_SET_CQM failed: Operation not supported
Jan 14 00:24:47 arch iwd[9429]: 4-Way handshake failed for ifindex: 3, reason: 15

wpa_supplicant logs

wlan0: WPA: Invalid EAPOL-Key MIC - dropping packet
wlan0: CTRL-EVENT-DISCONNECTED bssid=04:95:e6:3b:58:e1 reason=0
wlan0: Trying to associate with 04:95:e6:3b:58:e1 (SSID='Home' freq=2452 MHz)
wlan0: Association request to the driver failed
wlan0: Associated with 04:95:e6:3b:58:e1
wlan0: WPA: Key negotiation completed with 04:95:e6:3b:58:e1 [PTK=CCMP GTK=CCMP]
wlan0: CTRL-EVENT-CONNECTED - Connection to 04:95:e6:3b:58:e1 completed [id=0 id_str=]
wlan0: WPA: Invalid EAPOL-Key MIC - dropping packet
wlan0: CTRL-EVENT-DISCONNECTED bssid=04:95:e6:3b:58:e1 reason=0

Compiling for Openwrt

For background i have compiled the whole openwrt firmware i needed via the openwrt build system.

As i understand a package would have to be created to compile this driver. Many times i have tried to create a package Makefile for the feeds needed to compile the this driver and failed miserably, do you have the a particular method for compiling this for openwrt? i can confirm this driver compiles no problem and works on linux based systems on (raspberry pi). As for this compiling properly for openwrt i am a bit over my head.

Do you have a Makefile for the "package"?
I am a bit lost and still trying.
Thanks for your time and consideration.

Cannot build on Manjaro 6.1.12

This is the output of the make command

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.1.12-1-MANJARO/build M=/var/lib/dkms/rtl8188gu/r14.23b04ff/build modules
make[1]: вход в каталог «/usr/lib/modules/6.1.12-1-MANJARO/build»
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_cmd.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_security.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_debug.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_io.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_ioctl_query.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_ioctl_set.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_ieee80211.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_mlme.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_mlme_ext.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_mi.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_wlan_util.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_vht.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_pwrctrl.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_rf.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_recv.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_sta_mgt.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_ap.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_xmit.o
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_sta_mgt.c: В функции «rtw_mfree_stainfo»:
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_sta_mgt.c:352:25: предупреждение: the comparison will always evaluate as «true» for the address of «lock» will never be NULL [-Waddress]
352 | if (&psta->lock != NULL)
| ^~
In file included from /var/lib/dkms/rtl8188gu/r14.23b04ff/build/include/drv_types.h:106,
from /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_sta_mgt.c:17:
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/include/sta_info.h:229:17: замечание: «lock» объявлено здесь
229 | _lock lock;
| ^~~~
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_p2p.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_rson.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_tdls.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_br_ext.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_iol.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_sreset.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_btcoex_wifionly.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_btcoex.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_beamforming.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/rtw_odm.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/core/efuse/rtw_efuse.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/osdep_service.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/linux/os_intfs.o
CC [M] /var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/linux/usb_intf.o
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/osdep_service.c: В функции «isFileReadable»:
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/osdep_service.c:2089:9: ошибка: неизвестное имя типа «mm_segment_t»
2089 | mm_segment_t oldfs;
| ^~~~~~~~~~~~
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/osdep_service.c: В функции «retriveFromFile»:
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/osdep_service.c:2129:9: ошибка: неизвестное имя типа «mm_segment_t»
2129 | mm_segment_t oldfs;
| ^~~~~~~~~~~~
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/osdep_service.c: В функции «storeToFile»:
/var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/osdep_service.c:2168:9: ошибка: неизвестное имя типа «mm_segment_t»
2168 | mm_segment_t oldfs;
| ^~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:250: /var/lib/dkms/rtl8188gu/r14.23b04ff/build/os_dep/osdep_service.o] Error 1
make[2]: *** Ожидание завершения заданий…
make[1]: *** [Makefile:2005: /var/lib/dkms/rtl8188gu/r14.23b04ff/build] Error 2
make[1]: выход из каталога «/usr/lib/modules/6.1.12-1-MANJARO/build»
make: *** [Makefile:1896: modules] Error 2

Module no longer builds for linux kernel 5.12

Here is my build log.

unpacking sources
unpacking source archive /nix/store/rsgfdy49pr98zx38ijk44h21fc1vgz0c-source
source root is source
patching sources
configuring
no configure script, doing nothing
building
build flags: -j64 -l64 SHELL=/nix/store/a4yw1svqqk4d8lhwinn9xp847zz9gfma-bash-4.4-p23/bin/bash KVER=5.12.9 KSRC=/nix/store/5gwm8nqcwcapkhkxpldm8j4gc1mlgbqk-linux-5.12.9-dev/lib/modules/5.12.9/build modules
make ARCH=x86_64 CROSS_COMPILE= -C /nix/store/5gwm8nqcwcapkhkxpldm8j4gc1mlgbqk-linux-5.12.9-dev/lib/modules/5.12.9/build M=/build/source  modules
make[1]: Entering directory '/nix/store/5gwm8nqcwcapkhkxpldm8j4gc1mlgbqk-linux-5.12.9-dev/lib/modules/5.12.9/build'
  CC [M]  /build/source/core/rtw_cmd.o
  CC [M]  /build/source/core/rtw_security.o
  CC [M]  /build/source/core/rtw_debug.o
  CC [M]  /build/source/core/rtw_io.o
  CC [M]  /build/source/core/rtw_ioctl_query.o
  CC [M]  /build/source/core/rtw_ioctl_set.o
  CC [M]  /build/source/core/rtw_ieee80211.o
  CC [M]  /build/source/core/rtw_mlme.o
  CC [M]  /build/source/core/rtw_mlme_ext.o
  CC [M]  /build/source/core/rtw_mi.o
  CC [M]  /build/source/core/rtw_wlan_util.o
  CC [M]  /build/source/core/rtw_vht.o
  CC [M]  /build/source/core/rtw_pwrctrl.o
  CC [M]  /build/source/core/rtw_rf.o
  CC [M]  /build/source/core/rtw_recv.o
  CC [M]  /build/source/core/rtw_sta_mgt.o
  CC [M]  /build/source/core/rtw_ap.o
  CC [M]  /build/source/core/rtw_xmit.o
  CC [M]  /build/source/core/rtw_p2p.o
  CC [M]  /build/source/core/rtw_rson.o
  CC [M]  /build/source/core/rtw_tdls.o
  CC [M]  /build/source/core/rtw_br_ext.o
  CC [M]  /build/source/core/rtw_iol.o
  CC [M]  /build/source/core/rtw_sreset.o
  CC [M]  /build/source/core/rtw_btcoex_wifionly.o
  CC [M]  /build/source/core/rtw_btcoex.o
  CC [M]  /build/source/core/rtw_beamforming.o
  CC [M]  /build/source/core/rtw_odm.o
  CC [M]  /build/source/core/efuse/rtw_efuse.o
  CC [M]  /build/source/os_dep/osdep_service.o
  CC [M]  /build/source/os_dep/linux/usb_intf.o
  CC [M]  /build/source/os_dep/linux/os_intfs.o
  CC [M]  /build/source/os_dep/linux/usb_ops_linux.o
  CC [M]  /build/source/os_dep/linux/ioctl_linux.o
  CC [M]  /build/source/os_dep/linux/xmit_linux.o
  CC [M]  /build/source/os_dep/linux/recv_linux.o
  CC [M]  /build/source/os_dep/linux/mlme_linux.o
  CC [M]  /build/source/os_dep/linux/wifi_regd.o
  CC [M]  /build/source/os_dep/linux/ioctl_cfg80211.o
  CC [M]  /build/source/os_dep/linux/rtw_android.o
  CC [M]  /build/source/os_dep/linux/rtw_cfgvendor.o
  CC [M]  /build/source/os_dep/linux/rtw_proc.o
  CC [M]  /build/source/hal/hal_intf.o
  CC [M]  /build/source/hal/hal_com.o
  CC [M]  /build/source/hal/hal_com_phycfg.o
  CC [M]  /build/source/hal/hal_phy.o
  CC [M]  /build/source/hal/hal_dm.o
  CC [M]  /build/source/hal/hal_dm_acs.o
  CC [M]  /build/source/hal/hal_btcoex_wifionly.o
  CC [M]  /build/source/hal/hal_btcoex.o
  CC [M]  /build/source/hal/hal_mp.o
  CC [M]  /build/source/hal/hal_mcc.o
  CC [M]  /build/source/hal/hal_hci/hal_usb.o
  CC [M]  /build/source/hal/led/hal_usb_led.o
  CC [M]  /build/source/hal/HalPwrSeqCmd.o
  CC [M]  /build/source/hal/rtl8710b/Hal8710BPwrSeq.o
  CC [M]  /build/source/hal/rtl8710b/rtl8710b_sreset.o
  CC [M]  /build/source/hal/rtl8710b/rtl8710b_hal_init.o
  CC [M]  /build/source/hal/rtl8710b/rtl8710b_phycfg.o
  CC [M]  /build/source/hal/rtl8710b/rtl8710b_rf6052.o
  CC [M]  /build/source/hal/rtl8710b/rtl8710b_dm.o
  CC [M]  /build/source/hal/rtl8710b/rtl8710b_rxdesc.o
  CC [M]  /build/source/hal/rtl8710b/rtl8710b_cmd.o
  CC [M]  /build/source/hal/rtl8710b/hal8710b_fw.o
  CC [M]  /build/source/hal/rtl8710b/rtl8710b_lps_poff.o
  CC [M]  /build/source/hal/rtl8710b/usb/usb_halinit.o
  CC [M]  /build/source/hal/rtl8710b/usb/rtl8710bu_led.o
/build/source/os_dep/linux/recv_linux.c: In function 'napi_recv':
/build/source/os_dep/linux/recv_linux.c:355:55: error: 'GRO_DROP' undeclared (first use in this function)
  355 |    if (rtw_napi_gro_receive(&padapter->napi, pskb) != GRO_DROP)
      |                                                       ^~~~~~~~
/build/source/os_dep/linux/recv_linux.c:355:55: note: each undeclared identifier is reported only once for each function it appears in
make[3]: *** [/nix/store/5gwm8nqcwcapkhkxpldm8j4gc1mlgbqk-linux-5.12.9-dev/lib/modules/5.12.9/source/scripts/Makefile.build:271: /build/source/os_dep/linux/recv_linux.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [/nix/store/5gwm8nqcwcapkhkxpldm8j4gc1mlgbqk-linux-5.12.9-dev/lib/modules/5.12.9/source/Makefile:1851: /build/source] Error 2
make[1]: *** [/nix/store/5gwm8nqcwcapkhkxpldm8j4gc1mlgbqk-linux-5.12.9-dev/lib/modules/5.12.9/source/Makefile:215: __sub-make] Error 2
make[1]: Leaving directory '/nix/store/5gwm8nqcwcapkhkxpldm8j4gc1mlgbqk-linux-5.12.9-dev/lib/modules/5.12.9/build'
make: *** [Makefile:1894: modules] Error 2

I wonder if this works.

Ubuntu 20.04.3LTS无法打开5G频段

Ubuntu 20.04.3LTS无法打开5G频段,内核版本:“5.11.0-27-generic #29~20.04.1-Ubuntu SMP Wed Aug 11 15:58:17 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux”

相关信息:

[60603.275352] usb 1-1: USB disconnect, device number 14
[60603.582024] usb 1-1: new high-speed USB device number 15 using xhci_hcd
[60603.730415] usb 1-1: New USB device found, idVendor=0bda, idProduct=b711, bcdDevice= 2.00
[60603.730428] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[60603.730434] usb 1-1: Product: 802.11n WLAN Adapter
[60603.730439] usb 1-1: Manufacturer: Realtek
[60603.730443] usb 1-1: SerialNumber: 00E04CB82101
[60603.752834] rtl8710bu 1-1:1.0 wlxe0e1a95600cb: renamed from wlan0
[60604.129556] [Warning] 8703B/8723D/8710B CCK should be 4bit LNA, ie. 0x950[11] = 1
[60606.077282] IPv6: ADDRCONF(NETDEV_CHANGE): wlxe0e1a95600cb: link becomes ready

*-network
description: Wireless interface
physical id: 1
bus info: usb@1:1
logical name: wlxe0e1a95600cb
serial: e0:e1:a9:56:00:cb
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=rtl8710bu driverversion=5.11.0-27-generic ip=192.168.0.10 multicast=yes wireless=IEEE 802.11bgn

max # scan SSIDs: 9
max scan IEs length: 2304 bytes
max # sched scan SSIDs: 0
max # match sets: 0
Retry short limit: 7
Retry long limit: 4
Coverage class: 0 (up to 0m)
Supported Ciphers:
* WEP40 (00-0f-ac:1)
* WEP104 (00-0f-ac:5)
* TKIP (00-0f-ac:2)
* CCMP-128 (00-0f-ac:4)
Available Antennas: TX 0 RX 0
Supported interface modes:
* IBSS
* managed
* AP
* P2P-client
* P2P-GO
Band 1:
Capabilities: 0x1962
HT20/HT40
Static SM Power Save
RX HT20 SGI
RX HT40 SGI
RX STBC 1-stream
Max AMSDU length: 7935 bytes
DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
Minimum RX AMPDU time spacing: 16 usec (0x07)
HT Max RX data rate: 476 Mbps
HT TX/RX MCS rate indexes supported: 0-7
Bitrates (non-HT):
* 1.0 Mbps
* 2.0 Mbps
* 5.5 Mbps
* 11.0 Mbps
* 6.0 Mbps
* 9.0 Mbps
* 12.0 Mbps
* 18.0 Mbps
* 24.0 Mbps
* 36.0 Mbps
* 48.0 Mbps
* 54.0 Mbps
Frequencies:
* 2412 MHz [1] (20.0 dBm)
* 2417 MHz [2] (20.0 dBm)
* 2422 MHz [3] (20.0 dBm)
* 2427 MHz [4] (20.0 dBm)
* 2432 MHz [5] (20.0 dBm)
* 2437 MHz [6] (20.0 dBm)
* 2442 MHz [7] (20.0 dBm)
* 2447 MHz [8] (20.0 dBm)
* 2452 MHz [9] (20.0 dBm)
* 2457 MHz [10] (20.0 dBm)
* 2462 MHz [11] (20.0 dBm)
* 2467 MHz [12] (20.0 dBm)
* 2472 MHz [13] (20.0 dBm)
* 2484 MHz [14] (30.0 dBm)
Supported commands:
* new_interface
* set_interface
* new_key
* start_ap
* new_station
* set_bss
* join_ibss
* set_pmksa
* del_pmksa
* flush_pmksa
* remain_on_channel
* frame
* set_channel
* connect
* disconnect
WoWLAN support:
* wake up on anything (device continues operating normally)
software interface modes (can always be added):
interface combinations are not supported
Device supports scan flush.
max # scan plans: 1
max scan plan interval: -1
max scan plan iterations: 0
Supported TX frame types:
* IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
Supported RX frame types:
* IBSS: 0xd0
* managed: 0x40 0xd0
* AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* P2P-client: 0x40 0xd0
* P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
Supported extended features:

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.