cilynx / rtl88x2bu Goto Github PK
View Code? Open in Web Editor NEWrtl88x2bu driver updated for current kernels.
Home Page: http://www.wolfteck.com/2018/02/22/wsky_1200mbps_wireless_usb_wifi_adapter/
License: GNU General Public License v2.0
rtl88x2bu driver updated for current kernels.
Home Page: http://www.wolfteck.com/2018/02/22/wsky_1200mbps_wireless_usb_wifi_adapter/
License: GNU General Public License v2.0
This driver worked just fine for 5 days, and now suddenly stopped working. Now my TP-Link Archer T3U dual-band USB wireless adapter
is not even recognized at all. I tried reinstalling the driver but getting an error that said module already installed (or a similar message).
How could I completely remove/uninstall kernel modules for RTL88x2BU please... so I could then try reinstalling. Many thanks.
Kernel version: 5.3.4
OS: Ubuntu MATE 19.04 64-bit
Hi
Openwrt snapshot moved to kernel 5.4
Can you work on adding this driver as Openwrt package?
Bye
Building module fails while trying to install Kernel 5.6 RC3 in Ubuntu MATE 20.04 with this error message:
Building module:
cleaning build area...
make -j12 KERNELRELEASE=5.6.0-050600rc3-generic KVER=5.6.0-050600rc3-generic src=/usr/src/rtl88x2bu-5.6.1......(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.6.0-050600rc3-generic (x86_64)
Consult /var/lib/dkms/rtl88x2bu/5.6.1/build/make.log for more information.
...done.
Here's the /var/lib/dkms/rtl88x2bu/5.6.1/build/make.log:
DKMS make.log for rtl88x2bu-5.6.1 for kernel 5.6.0-050600rc3-generic (x86_64)
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.6.0-050600rc3-generic/build M=/var/lib/dkms/rtl88x2bu/5.6.1/build modules
make[1]: Entering directory '/usr/src/linux-headers-5.6.0-050600rc3-generic'
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_cmd.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_security.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_debug.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_io.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_ioctl_query.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_ioctl_set.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_ieee80211.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_mlme.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_mlme_ext.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_mi.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_wlan_util.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_vht.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_pwrctrl.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_rf.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_chplan.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_recv.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_sta_mgt.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_ap.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/mesh/rtw_mesh.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/mesh/rtw_mesh_pathtbl.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/mesh/rtw_mesh_hwmp.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_xmit.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_p2p.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_rson.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_tdls.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_br_ext.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_iol.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_sreset.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_btcoex_wifionly.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_btcoex.o
/usr/src/rtl88x2bu-5.6.1/core/rtw_ap.c: In function ‘rtw_add_bcn_ie’:
/usr/src/rtl88x2bu-5.6.1/core/rtw_ap.c:193:25: warning: ‘ielen’ may be used uninitialized in this function [-Wmaybe-uninitialized]
193 | if (p != NULL && ielen > 0) {
| ~~~~~~^~~
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_beamforming.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_odm.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_rm.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_rm_fsm.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/efuse/rtw_efuse.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/os_dep/osdep_service.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/os_dep/linux/os_intfs.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/os_dep/linux/usb_intf.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/os_dep/linux/usb_ops_linux.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/os_dep/linux/ioctl_linux.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/os_dep/linux/xmit_linux.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/os_dep/linux/mlme_linux.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/os_dep/linux/recv_linux.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/os_dep/linux/ioctl_cfg80211.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/os_dep/linux/rtw_cfgvendor.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/os_dep/linux/wifi_regd.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/os_dep/linux/rtw_android.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/os_dep/linux/rtw_proc.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/os_dep/linux/rtw_rhashtable.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/os_dep/linux/ioctl_mp.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/hal/hal_intf.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/hal/hal_com.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/hal/hal_com_phycfg.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/hal/hal_phy.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/hal/hal_dm.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/hal/hal_dm_acs.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/hal/hal_btcoex_wifionly.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/hal/hal_btcoex.o
/usr/src/rtl88x2bu-5.6.1/os_dep/linux/rtw_proc.c: In function ‘rtw_proc_create_entry’:
/usr/src/rtl88x2bu-5.6.1/os_dep/linux/rtw_proc.c:70:71: error: passing argument 4 of ‘proc_create_data’ from incompatible pointer type [-Werror=incompatible-pointer-types]
70 | entry = proc_create_data(name, S_IFREG | S_IRUGO | S_IWUGO, parent, fops, data);
| ^~~~
| |
| const struct file_operations *
In file included from /usr/src/rtl88x2bu-5.6.1/include/../os_dep/linux/rtw_proc.h:18,
from /usr/src/rtl88x2bu-5.6.1/include/osdep_intf.h:128,
from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:106,
from /usr/src/rtl88x2bu-5.6.1/os_dep/linux/rtw_proc.c:17:
./include/linux/proc_fs.h:59:31: note: expected ‘const struct proc_ops *’ but argument is of type ‘const struct file_operations *’
59 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
| ^~~~~~~~~~~~~~~~
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/hal/hal_mp.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/hal/hal_mcc.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/hal/hal_hci/hal_usb.o
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:268: /var/lib/dkms/rtl88x2bu/5.6.1/build/os_dep/linux/rtw_proc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1681: /var/lib/dkms/rtl88x2bu/5.6.1/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.6.0-050600rc3-generic'
make: *** [Makefile:2270: modules] Error 2
Many thanks.
I tried a few and just kept giving me errors , on ubuntu it worked fine however on fedora its not, any help or provide instructions for fedora users?
WPS Penetration does not seem to work.
reaver displays packets sent and returns timeouts but does not actually send any requests to my device
virtual interface doesn't work, e.g. I can't use fluxion To Create AP.
The driver compiles and installs fine, but then it doesn't work: it detects the networks and sometimes it's also able to connect, but the connection does not work, and after a few minutes the connection is lost.
Hello,
I have successfully compiled and installed the driver (I have tried earlier with 8822bu drivers by jeremy31 with no success, unistalled them).
The internet connection worked for the day and after a reboot I cannot make it work again. On the other hand, the command
lsusb
returns for Bus 001 Device 002: ID 2357:012d
with no further description. The description was absent even when the connection worked fine earlier today.
The adapter sees the wireless networks but when I try to connect it never happens. I tried recompiling with older versions of the driver but the situation was the same.
My kernel vesion is 5.3.0-28-generic
.
Any ideas how I could make it work?
EDIT: I scrolled through the issues from older releases and found many issues like this one. Turns out the dongle works after plugging it in the USB 3.0 port in the rear panel. Doesn't work with any other port. Very strange!
I tried out your version of rtl88x2bu. It compiles fine on Debian/testing and I also can hook it into my system with DKMS. However, as soon as I plug in my dongle, I have a chance of ~50% that the system freezes entirely. Note that before updating to Debian/testing everything worked fine.
A comprehensive description can be found at https://stackoverflow.com/questions/60832869/self-compiled-linux-driver-stopped-working-after-upgrading-debian. There I refer to my version of the driver, but with your driver the problem is exactly the same.
I would love if we could sort this out together. For the moment, I have no clue what actually could be the problem.
I have a TP-Link Archer AC1300 USB dongle and use it for an access point with 5 GHz on my RPi 1. Works great, thanks!
I wondered, if it were possible to make an access point on 2.4 and 5 GHz at the same time?
Edit: The question I had in mind was, if it were possible to make an access point on 2.4 and 5 GHz at the same card.
I don't really know what I'm doing here and need some help. I'm not 100% sure I installed this right, but I followed the instructions and a
dkms status
Gives me
nvidia, 435.21, 4.15.0-48-generic, x86_64: installed nvidia, 435.21, 4.15.0-91-generic, x86_64: installed rtl88x2bu, 5.6.1, 4.15.0-48-generic, x86_64: installed rtl88x2bu, 5.6.1, 4.15.0-91-generic, x86_64: installed
If I run
iwconfig
I get
`lo no wireless extensions.
enp4s0 no wireless extensions.The dongle is pluged in and listed with
lsusbhere
Bus 003 Device 005: ID 0846:9055 NetGear, Inc. `
This is basically all I've done. From what I can see it's installed so it looks like I just have to get some other program to recognize it, but I don't know how. I thought it would just pop up in iwconfig or something.
I tried to watch a 1080p60fps stream on Twitch. Video frequently freezes on this version for unknown reason. I didn't have this issue on windows 10 and linux with driver version 5.3.1 (which coincidentally is the version coming with driver CD). I manually built 5.6.1.5 from source, replaced the .ko, then the connection was stable again. I think other people might experience the same issue and it's probably worth upgrading, thanks!
Hi,
I just want to let you know of a kernel trace I stumbled upon when using my new "Carantec" USB stick for the very first time:
[ 2352.435642] ------------[ cut here ]------------
[ 2352.436254] WARNING: CPU: 0 PID: 911 at /usr/src/rtl88x2bu-5.6.1/hal/hal_com.c:11513 rtw_lps_state_chk+0x64/0x68 [88x2bu]
[ 2352.436262] Modules linked in: 88x2bu(O) rfcomm cmac bnep hci_uart btbcm serdev bluetooth ecdh_generic 8021q garp stp llc evdev joydev brcmfmac brcmutil raspberrypi_hwmon hwmon cfg80211 rfkill bcm2835_codec(C) bcm2835_v4l2(C) snd_bcm2835(C) v4l2_mem2mem bcm2835_mmal_vchiq(C) snd_pcm videobuf2_dma_contig v4l2_common videobuf2_vmalloc snd_timer videobuf2_memops videobuf2_v4l2 snd videobuf2_common videodev media vc_sm_cma(C) rpi_ft5406 uio_pdrv_genirq uio rpi_backlight fixed ip_tables x_tables ipv6
[ 2352.436407] CPU: 0 PID: 911 Comm: RTW_CMD_THREAD Tainted: G C O 4.19.118-v7+ #1311
[ 2352.436412] Hardware name: BCM2835
[ 2352.436444] [<801120c8>] (unwind_backtrace) from [<8010d5fc>] (show_stack+0x20/0x24)
[ 2352.436461] [<8010d5fc>] (show_stack) from [<80856da8>] (dump_stack+0xe0/0x124)
[ 2352.436479] [<80856da8>] (dump_stack) from [<80120c8c>] (__warn+0x104/0x11c)
[ 2352.436495] [<80120c8c>] (__warn) from [<80120ddc>] (warn_slowpath_null+0x50/0x58)
[ 2352.437043] [<80120ddc>] (warn_slowpath_null) from [<7f884938>] (rtw_lps_state_chk+0x64/0x68 [88x2bu])
[ 2352.438079] [<7f884938>] (rtw_lps_state_chk [88x2bu]) from [<7f8883ec>] (SetHwReg+0x7b4/0x7dc [88x2bu])
[ 2352.439086] [<7f8883ec>] (SetHwReg [88x2bu]) from [<7f8abce4>] (rtl8822b_sethwreg+0xd54/0xda0 [88x2bu])
[ 2352.440096] [<7f8abce4>] (rtl8822b_sethwreg [88x2bu]) from [<7f8af1c0>] (sethwreg+0x1bc/0x1c4 [88x2bu])
[ 2352.441100] [<7f8af1c0>] (sethwreg [88x2bu]) from [<7f87f850>] (rtw_hal_set_hwreg+0x20/0x24 [88x2bu])
[ 2352.442081] [<7f87f850>] (rtw_hal_set_hwreg [88x2bu]) from [<7f838468>] (rtw_set_ps_mode+0xe8/0x228 [88x2bu])
[ 2352.443041] [<7f838468>] (rtw_set_ps_mode [88x2bu]) from [<7f8387c8>] (LPS_Leave+0xd8/0xe0 [88x2bu])
[ 2352.444026] [<7f8387c8>] (LPS_Leave [88x2bu]) from [<7f8a7920>] (rtl8822b_phy_haldm_watchdog+0x1cc/0x1ec [88x2bu])
[ 2352.445032] [<7f8a7920>] (rtl8822b_phy_haldm_watchdog [88x2bu]) from [<7f87feec>] (rtw_hal_dm_watchdog+0x2c/0x30 [88x2bu])
[ 2352.445990] [<7f87feec>] (rtw_hal_dm_watchdog [88x2bu]) from [<7f8030b0>] (rtw_dynamic_chk_wk_hdl+0x40/0x5c [88x2bu])
[ 2352.446910] [<7f8030b0>] (rtw_dynamic_chk_wk_hdl [88x2bu]) from [<7f805174>] (rtw_drvextra_cmd_hdl+0x108/0x3ec [88x2bu])
[ 2352.447826] [<7f805174>] (rtw_drvextra_cmd_hdl [88x2bu]) from [<7f800eb8>] (rtw_cmd_thread+0x188/0x47c [88x2bu])
[ 2352.448293] [<7f800eb8>] (rtw_cmd_thread [88x2bu]) from [<80142b10>] (kthread+0x138/0x168)
[ 2352.448310] [<80142b10>] (kthread) from [<801010ac>] (ret_from_fork+0x14/0x28)
[ 2352.448317] Exception stack(0xa8691fb0 to 0xa8691ff8)
[ 2352.448327] 1fa0: 00000000 00000000 00000000 00000000
[ 2352.448339] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2352.448349] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 2352.448436] ---[ end trace 6096a97eec3e1c62 ]---
I cloned the repo (branch 5.6.1_30362.20181109_COEX20180928-6a6a
, ) today and cross-compiled the kernel module on a Debian stretch machine (SMP Debian 4.9.210-1+deb9u1 (2020-06-07) x86_64 GNU/Linux
). If you need more information please let me know.
# git show
commit 64aa087c5ead11960425125c955dcfe98233202e
Merge: 0f159d7 3a921c3
Author: Randy C. Will <[email protected]>
Date: Fri Jun 5 06:58:53 2020 -0700
Merge pull request #51 from ZDima3000/patch-1
fix typo
I'm still configuring the machine to become a WiFi client and cannot tell at the moment if it works at all.
Hi,
having an issue with building,
nano@nanoA02:~/Builds/rtl88x2bu$ sudo dkms build -m rtl88x2bu -v ${VER}
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
make -j4 KERNELRELEASE=4.9.140-tegra KVER=4.9.140-tegra src=/usr/src/rtl88x2bu-5.6.1...(bad exit status: 2)
ERROR (dkms apport): binary package for rtl88x2bu: 5.6.1 not found
Error! Bad return status for module build on kernel: 4.9.140-tegra (aarch64)
Consult /var/lib/dkms/rtl88x2bu/5.6.1/build/make.log for more information.
and the log says
DKMS make.log for rtl88x2bu-5.6.1 for kernel 4.9.140-tegra (aarch64)
ned maj 24 12:40:25 CEST 2020
make ARCH= CROSS_COMPILE= -C M=/var/lib/dkms/rtl88x2bu/5.6.1/build modules
make[1]: *** M=/var/lib/dkms/rtl88x2bu/5.6.1/build: No such file or directory. Stop.
Makefile:2283: recipe for target 'modules' failed
make: *** [modules] Error 2
Note that I am building on Nvidia Jetson Nano devkit A02
Building older repo https://github.com/Niproblema/rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959
works perfectly.
Thank you for your efforts in keeping this drivers active. I have used it many times.
Best regards,
Jan
Hi all!!
My system based on raspbian buster:
uname -a Linux RaspFly 4.19.108-v7+ #1298 SMP Fri Mar 6 18:04:35 GMT 2020 armv7l GNU/Linux
I following the procedure of installation suggested on the README page:
# Pull down the driver source
git clone https://github.com/cilynx/rtl88x2bu
cd rtl88x2bu/
# Configure for RasPi
sed -i 's/I386_PC = y/I386_PC = n/' Makefile
sed -i 's/ARM_RPI = n/ARM_RPI = y/' Makefile
# DKMS as above
VER=$(sed -n 's/\PACKAGE_VERSION="\(.*\)"/\1/p' dkms.conf)
sudo rsync -rvhP ./ /usr/src/rtl88x2bu-${VER}
sudo dkms add -m rtl88x2bu -v ${VER}
sudo dkms build -m rtl88x2bu -v ${VER} # Takes ~3-minutes on a 3B+
Error! echo
Your kernel headers for kernel 4.19.108-v7+ cannot be found at
/lib/modules/4.19.108-v7+/build or /lib/modules/4.19.108-v7+/source.
Any idea to solve the problem and complete the compiling process?
Thnaks!!
Hello - I've on Kubuntu 19.10 (Kernel 5.3.0-23-generic) and I installed the driver using your instructions:
max@meepx:/var/log$ dkms status
rtl88x2bu, 5.6.1, 5.3.0-23-generic, x86_64: installed
Once the driver was installed, I could scan networks but was unable to connect. Here's the output of 'journalctl -f -u NetworkManager':
Dec 01 12:20:01 meepx NetworkManager[881]: <info> [1575202801.3793] audit: op="radio-control" arg="wireless-enabled" pid=1377 uid=1000 result="success"
Dec 01 12:20:01 meepx NetworkManager[881]: <info> [1575202801.3795] manager: rfkill: Wi-Fi now disabled by radio killswitch
Dec 01 12:20:01 meepx NetworkManager[881]: <info> [1575202801.3886] manager: rfkill: WWAN hardware radio set disabled
Dec 01 12:20:01 meepx NetworkManager[881]: <info> [1575202801.3886] audit: op="radio-control" arg="wwan-enabled" pid=1377 uid=1000 result="success"
Dec 01 12:20:10 meepx NetworkManager[881]: <info> [1575202810.6717] manager: rfkill: Wi-Fi hardware radio set enabled
Dec 01 12:20:10 meepx NetworkManager[881]: <info> [1575202810.6721] audit: op="radio-control" arg="wireless-enabled" pid=1377 uid=1000 result="success"
Dec 01 12:20:10 meepx NetworkManager[881]: <info> [1575202810.6728] manager: rfkill: Wi-Fi now enabled by radio killswitch
Dec 01 12:20:10 meepx NetworkManager[881]: <info> [1575202810.6761] manager: rfkill: WWAN hardware radio set enabled
Dec 01 12:20:10 meepx NetworkManager[881]: <info> [1575202810.6762] audit: op="radio-control" arg="wwan-enabled" pid=1377 uid=1000 result="success"
Dec 01 12:20:10 meepx NetworkManager[881]: <info> [1575202810.7234] sup-iface[0x5655578c34f0,wlx503eaa2dd342]: supports 5 scan SSIDs
Dec 01 12:20:10 meepx NetworkManager[881]: <info> [1575202810.7237] device (wlx503eaa2dd342): supplicant interface state: starting -> ready
Dec 01 12:20:10 meepx NetworkManager[881]: <info> [1575202810.7237] device (wlx503eaa2dd342): state change: unavailable -> disconnected (reason 'supplicant-available', sys-iface-state: 'managed')
Dec 01 12:20:45 meepx NetworkManager[881]: <info> [1575202845.4488] device (wlx503eaa2dd342): Activation: starting connection 'mPhone' (ffffffff-ffff-4fff-bfff-ffffffffffff)
Dec 01 12:20:45 meepx NetworkManager[881]: <info> [1575202845.4489] audit: op="connection-add-activate" uuid="ffffffff-ffff-4fff-bfff-ffffffffffff" name="mPhone" pid=1377 uid=1000 result="success"
Dec 01 12:20:45 meepx NetworkManager[881]: <info> [1575202845.4490] device (wlx503eaa2dd342): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
Dec 01 12:20:45 meepx NetworkManager[881]: <info> [1575202845.4493] manager: NetworkManager state is now CONNECTING
Dec 01 12:20:45 meepx NetworkManager[881]: <info> [1575202845.4496] device (wlx503eaa2dd342): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Dec 01 12:20:54 meepx NetworkManager[881]: <info> [1575202854.7150] device (wlx503eaa2dd342): Activation: (wifi) access point 'mPhone' has security, but secrets are required.
Dec 01 12:20:54 meepx NetworkManager[881]: <info> [1575202854.7150] device (wlx503eaa2dd342): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
Dec 01 12:20:54 meepx NetworkManager[881]: <info> [1575202854.7250] device (wlx503eaa2dd342): state change: need-auth -> prepare (reason 'none', sys-iface-state: 'managed')
Dec 01 12:20:54 meepx NetworkManager[881]: <info> [1575202854.7252] device (wlx503eaa2dd342): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Dec 01 12:20:54 meepx NetworkManager[881]: <info> [1575202854.7254] device (wlx503eaa2dd342): Activation: (wifi) connection 'mPhone' has security, and secrets exist. No new secrets needed.
Dec 01 12:20:54 meepx NetworkManager[881]: <info> [1575202854.7254] Config: added 'ssid' value 'mPhone'
Dec 01 12:20:54 meepx NetworkManager[881]: <info> [1575202854.7254] Config: added 'scan_ssid' value '1'
Dec 01 12:20:54 meepx NetworkManager[881]: <info> [1575202854.7254] Config: added 'bgscan' value 'simple:30:-80:86400'
Dec 01 12:20:54 meepx NetworkManager[881]: <info> [1575202854.7254] Config: added 'key_mgmt' value 'WPA-PSK WPA-PSK-SHA256 FT-PSK'
Dec 01 12:20:54 meepx NetworkManager[881]: <info> [1575202854.7254] Config: added 'auth_alg' value 'OPEN'
Dec 01 12:20:54 meepx NetworkManager[881]: <info> [1575202854.7254] Config: added 'psk' value '<hidden>'
Dec 01 12:21:15 meepx NetworkManager[881]: <info> [1575202875.3105] device (wlx503eaa2dd342): supplicant interface state: ready -> scanning
Dec 01 12:21:19 meepx NetworkManager[881]: <warn> [1575202879.5990] device (wlx503eaa2dd342): Activation: (wifi) association took too long, failing activation
Dec 01 12:21:19 meepx NetworkManager[881]: <info> [1575202879.5990] device (wlx503eaa2dd342): state change: config -> failed (reason 'ssid-not-found', sys-iface-state: 'managed')
Dec 01 12:21:19 meepx NetworkManager[881]: <info> [1575202879.5992] manager: NetworkManager state is now DISCONNECTED
Dec 01 12:21:19 meepx NetworkManager[881]: <warn> [1575202879.5997] device (wlx503eaa2dd342): Activation: failed for connection 'mPhone'
Dec 01 12:21:19 meepx NetworkManager[881]: <info> [1575202879.5999] device (wlx503eaa2dd342): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')
I tried connecting to another network with a similar result. Not sure where else to look for logs as I can't see anything useful here.
Ho, the driver appears to be more stable than the previous version.
how to enable monitor mode?
Hey,
First of all thank you so much for at least keeping my dongle alive.
But so far I tried to follow your installation guide, but it always fails at building+installing the dkms. I am using Kali Linux on 5.4.0 and an tpLink T4U as dongle.
Hope you can help me get started again.
I'm running Xubuntu 20.04, Linux version is 5.4.0-26.
Adapter in question is a TP-Link AC1300 v3.
I pretty much copied and pasted all the instructions from the DKMS section into my terminal, and they all seemed to complete.
The adapter shows up in lsusb but it doesnt look like the computer knows what to do with it.
Any help would be greatly appreciated.
Thanks for this project!
When packaging this for distributions, it'd be useful to know what license this source is licensed under.
Hi
Installed on my PBP the official Kali from: https://images.offensive-security.com/arm-images/kali-linux-2020.2-pinebook-pro.img.xz
I wanted to install the rtl88x2bu driver for my TP-Link Archer T3U wifi-adapter.
Ran:
apt-get update && upgrade
and then:
git clone https://github.com/cilynx/rtl88x2bu
cd rtl88x2bu
VER=$(sed -n 's/\PACKAGE_VERSION="(.*)"/\1/p' dkms.conf)
sudo rsync -rvhP ./ /usr/src/rtl88x2bu-${VER}
sudo dkms add -m rtl88x2bu -v ${VER}
when running:
sudo dkms build -m rtl88x2bu -v ${VER}
I receive the following error:
[sudo] password for kali:
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
make -j6 KERNELRELEASE=5.6.0 KVER=5.6.0 src=/usr/src/rtl88x2bu-5.6.1...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.6.0 (aarch64)
Consult /var/lib/dkms/rtl88x2bu/5.6.1/build/make.log for more information
In the /var/lib/dkms/rtl88x2bu/5.6.1/build/make.log I find the following:
DKMS make.log for rtl88x2bu-5.6.1 for kernel 5.6.0 (aarch64)
Sat Jun 13 19:58:10 UTC 2020
make ARCH=arm64 CROSS_COMPILE= -C /lib/modules/5.6.0/build M=/var/lib/dkms>
make[1]: Entering directory '/usr/src/linux'
ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are miss>
Run 'make oldconfig && make prepare' on kernel src to fix it.
make[1]: *** [Makefile:686: include/config/auto.conf] Error 1
make[1]: Leaving directory '/usr/src/linux'
make: *** [Makefile:2283: modules] Error 2
I have no ideea how to resolve this. Can you please help?
Thank you!
Hey folks
1./ I have installed the driver on Ubuntu 18.04 for my Dual Band USB Adapter
$ dkms status
rtl88x2bu, 5.6.1, 4.15.0-74-generic, x86_64: installed
2./ On the top right Ubuntu settings menu, I see
Wi-Fi Not Connected
Select Networks
Turn Off
Wi-Fi Settings
When I choose Select Networks
option, the search dialog box reports No Networks and searching infinitely long.
3./ Right after the install, available networks appear and I was even able to authenticate. However, the connection drops after few seconds, and the wifi networks are no more listed in the Select Networks dialog box.
4./ I have repeated install/remove of the driver several times. I observe consistent behaviour.
5./ This adapter was working fine under Ubuntu 16.04. I used 5.3.1 driver.
6./ I have installed 5.3.1 driver on Ubuntu 18.04 and got the same No Networks issue.
7./ The same adapter works as expected in Windows 8.1.
Driver installed: 8812BU lan 802.11ac USB NIC.
Eager to provide more diagnostic details. Let me know how can I help to fix the issue.
I have compiled the module with these options:
CONFIG_RTW_DEBUG = y CONFIG_RTW_LOG_LEVEL = 2
My card TP-Link Archer T4Uv3 fails to connect to the AP almost all the time, having mac randomization in NetworkManager turned off and tried both with wpa_supplicant and iwd, asks for password in an infinite loop and rarely succeeds with connecting.
Ok, so I originally tried a driver for my device and it worked very well. Then it stopped working, so I looked for another driver. I came across several, but I am using this as it appears to be the best maintained. When connecting to password protected WiFi networks, the 4-way handshake ends up failing as messages 1 and 2 simply repeat back and forth until there is a timeout. This is confirmed via Wireshark.
I have installed fine ur repo but when i try to connect at the wifi network ask password and try to connect and reask the password
This supports Linux 5.3 natively
Download http://www.cudytech.com/wu1200_software_download
Version string:
RTL88x2BU_WiFi_linux_v5.6.1.6_35492.20191025_COEX20180928-6a6a
rtl88x2bu/core/rtw_ap.c:193:25: warning: ‘ielen’ may be used uninitialized in this function [-Wmaybe-uninitialized]
193 | if (p != NULL && ielen > 0) {
First of all thanks for taking the time to publish your work on this driver.
I'd like to use it in my project which requires support for setting the network namespace for the phy interface, but I receive the following error when running the command to do so:
$ sudo iw phy phy5 set netns 7793
command failed: Operation not supported (-95)
I've attached a patch which sets the relevant wiphy
flag, but beyond that I'm lost.
Here's a similar patch for brcmfmac
: https://patchwork.kernel.org/patch/9624591/
Any help would be appreciated!
Config : Rpi4, Raspbian 64 bits : Linux XPiRasp4 5.4.42-v8+ #1319 SMP PREEMPT Wed May 20 14:18:56 BST 2020 aarch64 GNU/Linux
I use std config : I386_PC it detects arm64 (KO with ARM_PI)
==> make ARCH=arm64 CROSS_COMPILE= -C /lib/modules/5.4.42-v8+/build M=/home/pi/wifidrivers/rtl88x2bu modules
Compiling : OK :
But
Building modules, stage 2.
MODPOST 1 modules gives
ERROR: "__const_udelay" [/home/pi/wifidrivers/rtl88x2bu/88x2bu.ko] undefined!
ERROR: "__arch_copy_from_user" [/home/pi/wifidrivers/rtl88x2bu/88x2bu.ko] undefined!
ERROR: "_raw_spin_unlock" [/home/pi/wifidrivers/rtl88x2bu/88x2bu.ko] undefined!
ERROR: "__rcu_read_lock" [/home/pi/wifidrivers/rtl88x2bu/88x2bu.ko] undefined!
ERROR: "__rcu_read_unlock" [/home/pi/wifidrivers/rtl88x2bu/88x2bu.ko] undefined!
ERROR: "cpu_hwcap_keys" [/home/pi/wifidrivers/rtl88x2bu/88x2bu.ko] undefined!
ERROR: "csum_ipv6_magic" [/home/pi/wifidrivers/rtl88x2bu/88x2bu.ko] undefined!
ERROR: "__warn_printk" [/home/pi/wifidrivers/rtl88x2bu/88x2bu.ko] undefined!
ERROR: "_mcount" [/home/pi/wifidrivers/rtl88x2bu/88x2bu.ko] undefined!
ERROR: "arm64_const_caps_ready" [/home/pi/wifidrivers/rtl88x2bu/88x2bu.ko] undefined!
ERROR: "__udelay" [/home/pi/wifidrivers/rtl88x2bu/88x2bu.ko] undefined!
ERROR: "preempt_schedule_notrace" [/home/pi/wifidrivers/rtl88x2bu/88x2bu.ko] undefined!
ERROR: "__arch_copy_to_user" [/home/pi/wifidrivers/rtl88x2bu/88x2bu.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:94: __modpost] Error 1
make[1]: *** [Makefile:1615: modules] Error 2
make[1]: Leaving directory '/home/pi/linux-971a2bb14b459819db1bda8fcdf953e493242b42'
make: *** [Makefile:2283: modules] Error 2
Any ideas ?
Thanks
I've had issues since I bought a realtek wifi usb adapter and started running it on my system (a system lockup every 1-3 days, requiring a cold boot, with nulls written into /var/log/syslog at the time of the crash). The fault below appeared yesterday; I don't know if it's related to the lockups.
Ubuntu 18.04.4 LTS
Linux 4.15.0-96-generic #97-Ubuntu SMP Wed Apr 1 03:25:46 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Last commit in https://github.com/cilynx/rtl88x2bu.git for my driver: 0fcf304
In /var/log/syslog:
[Sat Apr 25 15:25:28 2020] ------------[ cut here ]------------
[Sat Apr 25 15:25:28 2020] WARNING: CPU: 3 PID: 1453 at /usr/src/rtl88x2bu-5.6.1/hal/hal_com.c:11513 rtw_lps_state_chk+0x45/0x4e [88x2bu]
[Sat Apr 25 15:25:28 2020] Modules linked in: cdc_acm vmnet(OE) vmw_vsock_vmci_transport vsock vmw_vmci vmmon(OE) ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_nat nf_log_ipv4 nf_log_common xt_LOG ipt_REJECT nf_reject_ipv4 nf_conntrack_ipv4 nf_defrag_ipv4 xt_tcpudp xt_conntrack nf_conntrack iptable_filter sch_fq_codel amdgpu snd_hda_codec_realtek chash s5h1411 snd_hda_codec_generic snd_hda_codec_hdmi cx25840 eeepc_wmi asus_wmi cx23885 sparse_keymap wmi_bmof video altera_ci tda18271 altera_stapl m88ds3103 tveeprom cx2341x videobuf2_dvb dvb_core rc_core snd_hda_intel edac_mce_amd v4l2_common snd_hda_codec kvm_amd i2c_mux radeon snd_hda_core videobuf2_dma_sg kvm snd_hwdep videobuf2_memops snd_seq_midi irqbypass ttm videobuf2_v4l2 snd_seq_midi_event crct10dif_pclmul snd_rawmidi videobuf2_core drm_kms_helper
[Sat Apr 25 15:25:28 2020] crc32_pclmul 88x2bu(OE) ghash_clmulni_intel snd_seq videodev pcbc drm media i2c_algo_bit snd_pcm snd_seq_device aesni_intel fb_sys_fops input_leds snd_timer syscopyarea aes_x86_64 sysfillrect crypto_simd snd glue_helper sysimgblt soundcore cfg80211 ccp cryptd shpchp k10temp wmi mac_hid lm78 hwmon_vid parport_pc ppdev lp parport ip_tables x_tables autofs4 raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid0 multipath linear raid1 hid_generic usbhid hid i2c_piix4 r8169 ahci mii libahci gpio_amdpt gpio_generic
[Sat Apr 25 15:25:28 2020] CPU: 3 PID: 1453 Comm: RTW_CMD_THREAD Tainted: G W OE 4.15.0-96-generic #97-Ubuntu
[Sat Apr 25 15:25:28 2020] Hardware name: System manufacturer System Product Name/PRIME B450M-A, BIOS 1820 09/12/2019
[Sat Apr 25 15:25:28 2020] RIP: 0010:rtw_lps_state_chk+0x45/0x4e [88x2bu]
[Sat Apr 25 15:25:28 2020] RSP: 0018:ffff989888533c90 EFLAGS: 00010286
[Sat Apr 25 15:25:28 2020] RAX: 0000000000000024 RBX: 0000000000000000 RCX: 0000000000000006
[Sat Apr 25 15:25:28 2020] RDX: 0000000000000000 RSI: ffff88b79e8d6498 RDI: ffff88b79e8d6490
[Sat Apr 25 15:25:28 2020] RBP: ffff989888533ca0 R08: 00000000000005ff R09: 0000000000000004
[Sat Apr 25 15:25:28 2020] R10: 0000000000000000 R11: 0000000000000001 R12: ffff989883fed000
[Sat Apr 25 15:25:28 2020] R13: ffff989888533d6c R14: ffff98988841d000 R15: ffff88b76cc8dbe0
[Sat Apr 25 15:25:28 2020] FS: 0000000000000000(0000) GS:ffff88b79e8c0000(0000) knlGS:0000000000000000
[Sat Apr 25 15:25:28 2020] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[Sat Apr 25 15:25:28 2020] CR2: 00003cccbd4f7ff0 CR3: 00000006ce7c0000 CR4: 00000000003406e0
[Sat Apr 25 15:25:28 2020] Call Trace:
[Sat Apr 25 15:25:28 2020] SetHwReg+0x704/0x726 [88x2bu]
[Sat Apr 25 15:25:28 2020] rtl8822b_sethwreg+0xdec/0xe02 [88x2bu]
[Sat Apr 25 15:25:28 2020] sethwreg+0x134/0x13b [88x2bu]
[Sat Apr 25 15:25:28 2020] rtw_hal_set_hwreg+0x19/0x1b [88x2bu]
[Sat Apr 25 15:25:28 2020] rtw_set_ps_mode+0xf3/0x223 [88x2bu]
[Sat Apr 25 15:25:28 2020] LPS_Leave+0xd0/0xd7 [88x2bu]
[Sat Apr 25 15:25:28 2020] rtl8822b_phy_haldm_watchdog+0x16b/0x191 [88x2bu]
[Sat Apr 25 15:25:28 2020] rtw_hal_dm_watchdog+0x21/0x24 [88x2bu]
[Sat Apr 25 15:25:28 2020] rtw_dynamic_chk_wk_hdl+0x37/0x52 [88x2bu]
[Sat Apr 25 15:25:28 2020] rtw_drvextra_cmd_hdl+0x2a0/0x496 [88x2bu]
[Sat Apr 25 15:25:28 2020] ? _rtw_up_sema+0xe/0x10 [88x2bu]
[Sat Apr 25 15:25:28 2020] rtw_cmd_thread+0x1ba/0x454 [88x2bu]
[Sat Apr 25 15:25:28 2020] ? session_tracker_cmd_hdl+0x1df/0x1df [88x2bu]
[Sat Apr 25 15:25:28 2020] kthread+0x121/0x140
[Sat Apr 25 15:25:28 2020] ? rtw_stop_cmd_thread+0x3f/0x3f [88x2bu]
[Sat Apr 25 15:25:28 2020] ? kthread_create_worker_on_cpu+0x70/0x70
[Sat Apr 25 15:25:28 2020] ret_from_fork+0x22/0x40
[Sat Apr 25 15:25:28 2020] Code: 04 06 00 00 4c 89 e7 e8 6c 24 f9 ff 84 c0 79 1d bf 01 00 00 00 e8 b9 69 fd ff 80 eb 01 75 e0 48 c7 c7 78 db b0 c0 e8 2a 55 ea ea <0f> 0b 5b 41 5c 5d c3 f3 c3 0f 1f 44 00 00 55 48 89 e5 41 54 53
[Sat Apr 25 15:25:28 2020] ---[ end trace d4e0b0b3e9b81459 ]---
I followed the instructions of firmware version 5.6.1 and the dongle connected fine and clocked at 50 Mbps symmetric. Some time later I started noticing it slowing down a lot or taking long to load a page.
I found a bunch of call traces in syslog. Any advice on how I should proceed about diagnosing the issue?
[583505.843762] WARNING: CPU: 1 PID: 340976 at /usr/src/rtl88x2bu-5.6.1/os_dep/linux/rtw_proc.c:4637 rtw_adapter_proc_init+0x62/0xd8 [88x2bu]
[583505.843762] Modules linked in: snd_usb_audio snd_usbmidi_lib snd_rawmidi snd_seq_device mc fuse uas usb_storage essiv authenc twofish_generic twofish_avx_x86_64 twofish_x86_64_3way twofish_x86_64 twofish_common cbc algif_skcipher af_alg intel_rapl_msr intel_rapl_common
snd_hda_codec_hdmi x86_pkg_temp_thermal intel_powerclamp coretemp snd_hda_codec_realtek kvm_intel snd_hda_codec_generic ledtrig_audio snd_hda_intel kvm binfmt_misc snd_intel_dspcfg 88x2bu(OE) irqbypass snd_hda_codec ecryptfs snd_hda_core intel_cstate snd_hwdep intel_uncore parport_pc snd_pcm cfg80211 ppdev intel_rapl_perf rfkill serio_raw mei_me pcspkr joydev
snd_timer iTCO_wdt iTCO_vendor_support lp sg snd watchdog parport mei soundcore evdev loop ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 dm_crypt dm_mod raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c
crc32c_generic raid1 raid0 multipath linear md_mod hid_logitech_hidpp sd_mod t10_pi crc_t10dif crct10dif_generic
[583505.843777] hid_logitech_dj hid_generic usbhid hid i915 crct10dif_pclmul crct10dif_common crc32_pclmul crc32c_intel ghash_clmulni_intel video i2c_algo_bit drm_kms_helper ahci cec mxm_wmi libahci i2c_i801 aesni_intel libata libaes crypto_simd xhci_pci drm r8169 xhci_hcd realtek cryptd glue_helper libphy scsi_mod firewire_ohci ehci_pci lpc_ich ehci_hcd mfd_core firewire_core usbcore crc_itu_t usb_common wmi button
[583505.843785] CPU: 1 PID: 340976 Comm: systemd-udevd Tainted: G W OE 5.6.0-1-amd64 #1 Debian 5.6.7-1
[583505.843785] Hardware name: Gigabyte Technology Co., Ltd. Z68X-UD3H-B3/Z68X-UD3H-B3, BIOS F3 05/13/2011
[583505.843812] RIP: 0010:rtw_adapter_proc_init+0x62/0xd8 [88x2bu]
[583505.843813] Code: f0 48 89 c5 48 85 c0 74 21 48 89 83 e0 46 00 00 bb 00 00 00 00 eb 44 0f 0b eb 07 0f 0b bd 00 00 00 00 48 89 e8 5b 5d 41 5c c3 <0f> 0b eb f4 48 8b b8 00 29 e8 c0 49 89 d8 48 c7 c1 a0 28 e8 c0 48
[583505.843814] RSP: 0018:ffffb13f004f7818 EFLAGS: 00010246
[583505.843814] RAX: 0000000000000000 RBX: ffffb13f00529000 RCX: 00000000000006cc
[583505.843815] RDX: 00000000000006cb RSI: 934e064600a3277d RDI: 0000000000031660
[583505.843816] RBP: 0000000000000000 R08: 0000000000008e4e R09: 0000000000000004
[583505.843816] R10: 0000000000000000 R11: 0000000000000001 R12: ffff971c495dd000
[583505.843817] R13: ffff971c495dd000 R14: ffffb13f00529000 R15: ffff971aa6a0df00
[583505.843818] FS: 00007fdd58006880(0000) GS:ffff971c4fa40000(0000) knlGS:0000000000000000
[583505.843818] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[583505.843819] CR2: 00007f3180abda28 CR3: 000000017d684005 CR4: 00000000000606e0
[583505.843819] Call Trace:
[583505.843846] rtw_adapter_proc_replace+0x78/0x87 [88x2bu]
[583505.843871] rtw_ndev_notifier_call+0x39/0x41 [88x2bu]
[583505.843872] notifier_call_chain+0x4c/0x70
[583505.843874] dev_change_name+0x1aa/0x2c0
[583505.843876] do_setlink+0xcdd/0xda0
[583505.843877] ? dma_direct_map_sg+0x42/0xb0
[583505.843879] ? ahci_qc_prep+0x140/0x160 [libahci]
[583505.843881] ? ahci_single_level_irq_intr+0x60/0x60 [libahci]
[583505.843885] ? ata_qc_issue+0x10b/0x250 [libata]
[583505.843886] ? __nla_validate_parse+0x51/0x830
[583505.843892] ? ata_scsi_queuecmd+0xba/0x2d0 [libata]
[583505.843893] rtnl_setlink+0xe5/0x160
[583505.843897] rtnetlink_rcv_msg+0x2b0/0x360
[583505.843898] ? record_times+0x15/0x90
[583505.843899] ? psi_task_change+0xe1/0x320
[583505.843900] ? _cond_resched+0x15/0x30
[583505.843901] ? rtnl_calcit.isra.0+0x110/0x110
[583505.843903] netlink_rcv_skb+0x49/0x110
[583505.843904] netlink_unicast+0x191/0x230
[583505.843906] netlink_sendmsg+0x243/0x480
[583505.843907] sock_sendmsg+0x5e/0x60
[583505.843908] __sys_sendto+0xee/0x160
[583505.843910] ? syscall_trace_enter+0x131/0x2c0
[583505.843911] __x64_sys_sendto+0x25/0x30
[583505.843912] do_syscall_64+0x52/0x180
[583505.843914] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[583505.843915] RIP: 0033:0x7fdd58579826
[583505.843916] Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb bc 0f 1f 80 00 00 00 00 41 89 ca 64 8b 04 25 18 00 00 00 85 c0 75 11 b8 2c 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 72 c3 90 55 48 83 ec 30 44 89 4c 24 2c 4c 89
[583505.843916] RSP: 002b:00007ffd3d3a36d8 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
[583505.843917] RAX: ffffffffffffffda RBX: 000055731bf974f0 RCX: 00007fdd58579826
[583505.843918] RDX: 0000000000000034 RSI: 000055731c063f10 RDI: 0000000000000010
[583505.843918] RBP: 000055731bfa4fa0 R08: 00007ffd3d3a3770 R09: 0000000000000010
[583505.843919] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000000533f0
[583505.843919] R13: 000055731c01c8a0 R14: 000055731bf09e70 R15: 0000000000000000
[583505.843921] ---[ end trace ecd38c68872b3991 ]---
A different error message is present in the file attached.
Does anybody know how to lessen the RTW: debug messages?
I tried modifying the Make file and changing:
CONFIG_RTW_DEBUG = n
I can't find How_to_set_driver_debug_log_level.doc
Does anyone see "IEEE 802.11AC"?
$ iwconfig
wlx1cbfce9e4193 IEEE 802.11a ESSID:
Building module fails while trying to install Kernel 5.8 RC2 in Ubuntu MATE 20.04 64-bit with the following error message:
Make and model of the wireless adapter: TP-Link Archer T3U dual-band USB wireless adapter
TP Link: https://www.tp-link.com/us/support/download/archer-t3u/#Driver
Building module:
cleaning build area...
make -j12 KERNELRELEASE=5.8.0-050800-generic KVER=5.8.0-050800-generic src=/usr/src/rtl88x2bu-5.6.1....(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.8.0-050800-generic (x86_64)
Consult /var/lib/dkms/rtl88x2bu/5.6.1/build/make.log for more information.
...done.
Here's the /var/lib/dkms/rtl88x2bu/5.6.1/build/make.log:
DKMS make.log for rtl88x2bu-5.6.1 for kernel 5.8.0-050800-generic (x86_64)
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.8.0-050800-generic/build M=/var/lib/dkms/rtl88x2bu/5.6.1/build modules
make[1]: Entering directory '/usr/src/linux-headers-5.8.0-050800-generic'
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_cmd.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_security.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_debug.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_io.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_ioctl_query.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_ioctl_set.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_ieee80211.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_mlme.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_mlme_ext.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_mi.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_wlan_util.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_vht.o
In file included from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:79,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_debug.c:17:
/usr/src/rtl88x2bu-5.6.1/include/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 /usr/src/rtl88x2bu-5.6.1/include/osdep_service_linux.h:48,
from /usr/src/rtl88x2bu-5.6.1/include/osdep_service.h:50,
from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:27,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_debug.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
84 | struct sha256_state {
| ^~~~~~~~~~~~
In file included from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:79,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_ioctl_set.c:17:
/usr/src/rtl88x2bu-5.6.1/include/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 /usr/src/rtl88x2bu-5.6.1/include/osdep_service_linux.h:48,
from /usr/src/rtl88x2bu-5.6.1/include/osdep_service.h:50,
from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:27,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_ioctl_set.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
84 | struct sha256_state {
| ^~~~~~~~~~~~
In file included from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:79,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_ieee80211.c:20:
/usr/src/rtl88x2bu-5.6.1/include/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 /usr/src/rtl88x2bu-5.6.1/include/osdep_service_linux.h:48,
from /usr/src/rtl88x2bu-5.6.1/include/osdep_service.h:50,
from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:27,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_ieee80211.c:20:
./include/crypto/sha.h:84:8: note: originally defined here
84 | struct sha256_state {
| ^~~~~~~~~~~~
In file included from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:79,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_wlan_util.c:17:
/usr/src/rtl88x2bu-5.6.1/include/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 /usr/src/rtl88x2bu-5.6.1/include/osdep_service_linux.h:48,
from /usr/src/rtl88x2bu-5.6.1/include/osdep_service.h:50,
from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:27,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_wlan_util.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
84 | struct sha256_state {
| ^~~~~~~~~~~~
In file included from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:79,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_vht.c:17:
/usr/src/rtl88x2bu-5.6.1/include/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 /usr/src/rtl88x2bu-5.6.1/include/osdep_service_linux.h:48,
from /usr/src/rtl88x2bu-5.6.1/include/osdep_service.h:50,
from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:27,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_vht.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
84 | struct sha256_state {
| ^~~~~~~~~~~~
In file included from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:79,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_mi.c:17:
/usr/src/rtl88x2bu-5.6.1/include/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 /usr/src/rtl88x2bu-5.6.1/include/osdep_service_linux.h:48,
from /usr/src/rtl88x2bu-5.6.1/include/osdep_service.h:50,
from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:27,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_mi.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
84 | struct sha256_state {
| ^~~~~~~~~~~~
In file included from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:79,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_ioctl_query.c:17:
/usr/src/rtl88x2bu-5.6.1/include/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 /usr/src/rtl88x2bu-5.6.1/include/osdep_service_linux.h:48,
from /usr/src/rtl88x2bu-5.6.1/include/osdep_service.h:50,
from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:27,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_ioctl_query.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
84 | struct sha256_state {
| ^~~~~~~~~~~~
In file included from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:79,
from /usr/src/rtl88x2bu-5.6.1/include/../hal/phydm/phydm_types.h:215,
from /usr/src/rtl88x2bu-5.6.1/include/../hal/phydm/phydm_precomp.h:29,
from /usr/src/rtl88x2bu-5.6.1/include/hal_data.h:20,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_mlme.c:17:
/usr/src/rtl88x2bu-5.6.1/include/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 /usr/src/rtl88x2bu-5.6.1/include/osdep_service_linux.h:48,
from /usr/src/rtl88x2bu-5.6.1/include/osdep_service.h:50,
from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:27,
from /usr/src/rtl88x2bu-5.6.1/include/../hal/phydm/phydm_types.h:215,
from /usr/src/rtl88x2bu-5.6.1/include/../hal/phydm/phydm_precomp.h:29,
from /usr/src/rtl88x2bu-5.6.1/include/hal_data.h:20,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_mlme.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
84 | struct sha256_state {
| ^~~~~~~~~~~~
In file included from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:79,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_io.c:47:
/usr/src/rtl88x2bu-5.6.1/include/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 /usr/src/rtl88x2bu-5.6.1/include/osdep_service_linux.h:48,
from /usr/src/rtl88x2bu-5.6.1/include/osdep_service.h:50,
from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:27,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_io.c:47:
./include/crypto/sha.h:84:8: note: originally defined here
84 | struct sha256_state {
| ^~~~~~~~~~~~
In file included from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:79,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_mlme_ext.c:17:
/usr/src/rtl88x2bu-5.6.1/include/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 /usr/src/rtl88x2bu-5.6.1/include/osdep_service_linux.h:48,
from /usr/src/rtl88x2bu-5.6.1/include/osdep_service.h:50,
from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:27,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_mlme_ext.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
84 | struct sha256_state {
| ^~~~~~~~~~~~
In file included from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:79,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_security.c:17:
/usr/src/rtl88x2bu-5.6.1/include/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 /usr/src/rtl88x2bu-5.6.1/include/osdep_service_linux.h:48,
from /usr/src/rtl88x2bu-5.6.1/include/osdep_service.h:50,
from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:27,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_security.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
84 | struct sha256_state {
| ^~~~~~~~~~~~
In file included from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:79,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_cmd.c:17:
/usr/src/rtl88x2bu-5.6.1/include/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 /usr/src/rtl88x2bu-5.6.1/include/osdep_service_linux.h:48,
from /usr/src/rtl88x2bu-5.6.1/include/osdep_service.h:50,
from /usr/src/rtl88x2bu-5.6.1/include/drv_types.h:27,
from /usr/src/rtl88x2bu-5.6.1/core/rtw_cmd.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
84 | struct sha256_state {
| ^~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_ioctl_query.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_ieee80211.o] Error 1
make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_security.o] Error 1
make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_ioctl_set.o] Error 1
make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_vht.o] Error 1
make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_io.o] Error 1
make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_wlan_util.o] Error 1
make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_mi.o] Error 1
make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_debug.o] Error 1
make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_cmd.o] Error 1
make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_mlme.o] Error 1
make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_mlme_ext.o] Error 1
make[1]: *** [Makefile:1756: /var/lib/dkms/rtl88x2bu/5.6.1/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.8.0-050800-generic'
make: *** [Makefile:2283: modules] Error 2
I CANT INSTALL IT. CAN YOU HELP PLZ PLZ PLZ PLZ PLZ PLZZZZZZZZZZZZZZZZZ PLEAAAASEEEEEEEEEEEE CAN YOU HELP PLLLLLLLLLLLLEEEEEEEEEEEEEAAAAAAAAAAAAAASSSSSSSSSSSEEEEEEEEEEEEEEEEEEEEEEE
[Mint 19.3, kernel 5.3.0-26, driver v5.6.1]
Since upgrading to the v5.6.1 driver (needed to build properly on Mint's latest 5.3 kernel), my kernel log is getting flooded with this (about every 10-15 seconds):
Jan 22 22:10:55 kernel: RTW: Turbo EDCA =0xa42b
Jan 22 22:10:57 kernel: RTW: Turbo EDCA =0x5ea42b
How can I disable this? The driver seems to be working fine - no issues with disconnections, internet speeds are great.
Hi,
I don't know if this is really an issue or an inevitable. When starting up there are about 14 seconds between the moment the module gets recognised by the system as an USB device and the moment that the initialisation process starts. I am trying to reduce boot time. Is there a way to speed up the process now or is it possible in a future version?
(4.19.94-bone44), Buster on a PocketBeagle (highest current version).
dmesg output:
[ 19.595409] usb 1-1: Manufacturer: Realtek
[ 19.595416] usb 1-1: SerialNumber: 123456
[ 33.475816] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 33.490036] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 34.111534] RTW: module init start
Thanks, Hans.
Hello,
After installing the driver the monitor mode does not work in the 5ghz network.
How can I remove everything and remove everything that has been executed?
Cheers
With Linux kernels newer than 5.2.0 the driver stops to work. While it still can be compiled, it does not activate my device (DLINK DWA-182) anymore. This is also described in #23.
I was able to narrow down the problem using git-bisect and a decent amount of patience. I narrowed down the problem to a specific commit to the Linux Kernel. The last good commit is d7edf40c15e, the first bad commit is 901bb9891855. The problem appears consistently with your fork of the driver and with my fork of the driver (https://github.com/MaxG87/DWA-182_Rev-D1/).
Unfortunately the diff does not change how to solve the problem. While the message seems plausible, the changes do not touch any function signature. It's just additions :-(.
I would like to sort this out with you together. Do you have more expercience on how to proceed?
For the record I include the log of git-bisect:
git bisect start
# good: [0ecfebd2b52404ae0c54a878c872bb93363ada36] Linux 5.2
git bisect good 0ecfebd2b52404ae0c54a878c872bb93363ada36
# bad: [4d856f72c10ecb060868ed10ff1b1453943fc6c8] Linux 5.3
git bisect bad 4d856f72c10ecb060868ed10ff1b1453943fc6c8
# bad: [43c95d3694cc448fdf50bd53b7ff3a5bb4655883] Merge tag 'pinctrl-v5.3-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl
git bisect bad 43c95d3694cc448fdf50bd53b7ff3a5bb4655883
# good: [8f6ccf6159aed1f04c6d179f61f6fb2691261e84] Merge tag 'clone3-v5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux
git bisect good 8f6ccf6159aed1f04c6d179f61f6fb2691261e84
# bad: [753c8d9b7d81206bb5d011b28abe829d364b028e] Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect bad 753c8d9b7d81206bb5d011b28abe829d364b028e
# bad: [2f9b0d93a9d3ec64558537ab5d7cff820886afa4] net: ethernet: ti: cpsw: Fix suspend/resume break
git bisect bad 2f9b0d93a9d3ec64558537ab5d7cff820886afa4
# good: [d28d66e5a92de81199d21b696df707068361a4e7] net: ethernet: mediatek: fix mtk_eth_soc build errors & warnings
git bisect good d28d66e5a92de81199d21b696df707068361a4e7
# bad: [9126e75e39e14c357cfb2820abf0733bbc3cd8dc] net: ethernet: ti: cpsw_ethtool: simplify slave loops
git bisect bad 9126e75e39e14c357cfb2820abf0733bbc3cd8dc
# good: [de47c5d8e11dda678e4354eeb4235e58e92f7cd2] af_key: make use of BUG_ON macro
git bisect good de47c5d8e11dda678e4354eeb4235e58e92f7cd2
# good: [ba8ef506fb91005fc4808370b7587ab7bf4bd918] net: ena: add MAX_QUEUES_EXT get feature admin command
git bisect good ba8ef506fb91005fc4808370b7587ab7bf4bd918
# good: [2066e1db9eef8e2057bb3a1b7cb3503a7f6725d9] s390/qeth: convert RCD code to common IO infrastructure
git bisect good 2066e1db9eef8e2057bb3a1b7cb3503a7f6725d9
# bad: [1c38c7f22068b54a7ba5f026a45663c6727ab84c] nl80211: send event when CMD_FRAME duration expires
git bisect bad 1c38c7f22068b54a7ba5f026a45663c6727ab84c
# bad: [c9d3245e03ce20566e373b68dd24a7f2365d8dda] mac80211: dynamically enable the TWT requester support on STA interfaces
git bisect bad c9d3245e03ce20566e373b68dd24a7f2365d8dda
# good: [f4d75993d85b6ddaeec0e72811debff7a96a7f0d] nl80211: add NL80211_ATTR_IFINDEX to port authorized event
git bisect good f4d75993d85b6ddaeec0e72811debff7a96a7f0d
# good: [26f7044e95042daabcf1c71796a0e804a83c979f] nl80211: add support for SAE authentication offload
git bisect good 26f7044e95042daabcf1c71796a0e804a83c979f
# bad: [901bb9891855164fdcfcfdd9c3d25bcc800d3f5b] nl80211: require and validate vendor command policy
git bisect bad 901bb9891855164fdcfcfdd9c3d25bcc800d3f5b
# good: [d7edf40c15e85b44c4bef146819b664089b827b1] mac80211: add ieee80211_get_he_iftype_cap() helper
git bisect good d7edf40c15e85b44c4bef146819b664089b827b1
# first bad commit: [901bb9891855164fdcfcfdd9c3d25bcc800d3f5b] nl80211: require and validate vendor command policy
If you want to analyse the problem yourself, you might find the script debug-kernel.sh
in https://github.com/MaxG87/mainline-kernel-helpers helpful.
diff --git a/core/rtw_ap.c b/core/rtw_ap.c
index a8903ba..e3f0861 100644
--- a/core/rtw_ap.c
+++ b/core/rtw_ap.c
@@ -171,7 +171,7 @@ void rtw_add_bcn_ie(_adapter *padapter, WLAN_BSSID_EX *pnetwork, u8 index, u8 *d
u8 bmatch = _FALSE;
u8 *pie = pnetwork->IEs;
u8 *p = NULL, *dst_ie = NULL, *premainder_ie = NULL, *pbackup_remainder_ie = NULL;
- u32 i, offset, ielen, ie_offset, remainder_ielen = 0;
+ u32 i, offset, ielen = 0, ie_offset, remainder_ielen = 0;
for (i = sizeof(NDIS_802_11_FIXED_IEs); i < pnetwork->IELength;) {
pIE = (PNDIS_802_11_VARIABLE_IEs)(pnetwork->IEs + i);
Hi, thanks all for maintaining this package. We use this repository as part of a Yocto OS build to integrate the out of tree module.
We are moving from the v5.3.1 releases into this rtl88x2bu
repo.
Can someone explain to me the difference between these two branches or update the README.md to advise otherse?
Hello,
I had this driver working some weeks ago, with DKMS working. After some weeks of perfect harmony, the DKMS wouldn't build anymore.
now I am trying to reinstall/reactivate the driver, trying anew.
Yet make
throws this error
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.6.8-200.fc31.x86_64/build M=/home/ilippert/Techy/wifi criver ac1200 (rtlb812)/rtl88x2bu modules
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.6.8-200.fc31.x86_64/build M=/home/ilippert/Techy/wifi criver ac1200 (rtlb812)/rtl88x2bu modules'
make: *** [Makefile:2283: modules] Error 1
Thanks for all your work. Just reporting that this driver works for my AWU-G37 on CentOS 7 when compiled against the kernel-lt-4.4.217-1 vanilla kernel package from Elrepo.
When I install this on my lenovo yoga (1st gen) running Ubuntu 20.04, my trackpad no longer works. Any idea why this would inferfere with that?
I'm having trouble getting WPA2 to work so I tried the driver with no security.
Does any of this information help?
[ 472.934159] WARNING: CPU: 4 PID: 344 at net/wireless/sme.c:756 __cfg80211_connect_result.cold+0x66/0x6d [cfg80211]
[ 472.934160] Modules linked in: pci_stub vboxpci(OE) vboxnetadp(OE) vboxnetflt(OE) bluetooth ecdh_generic ecc vboxdrv(OE) 8021q garp mrp stp llc binfmt_misc snd_hda_codec_hdmi nls_iso8859_1 snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio 88x2bu(OE) snd_usb_audio uvcvideo snd_usbmidi_lib snd_hda_intel videobuf2_vmalloc snd_hda_codec videobuf2_memops videobuf2_v4l2 snd_hda_core videobuf2_common snd_hwdep videodev input_leds edac_mce_amd cfg80211 mc snd_pcm kvm_amd snd_seq_midi snd_seq_midi_event snd_rawmidi kvm snd_seq irqbypass snd_seq_device snd_timer wmi_bmof snd k10temp soundcore ccp mac_hid nvidia_uvm(OE) sch_fq_codel nct6775 hwmon_vid parport_pc ppdev lp parport ip_tables x_tables autofs4 btrfs xor zstd_compress raid6_pq libcrc32c hid_generic usbhid hid dm_mirror dm_region_hash dm_log uas usb_storage nvidia_drm(POE) nvidia_modeset(POE) crct10dif_pclmul crc32_pclmul nvidia(POE) ghash_clmulni_intel aesni_intel drm_kms_helper aes_x86_64 syscopyarea crypto_simd sysfillrect
[ 472.934206] sysimgblt cryptd fb_sys_fops glue_helper drm i2c_piix4 ipmi_devintf r8169 ahci ipmi_msghandler nvme realtek libahci nvme_core wmi gpio_amdpt gpio_generic
[ 472.934218] CPU: 4 PID: 344 Comm: kworker/u64:10 Tainted: P OE 5.3.0-40-generic #32-Ubuntu
[ 472.934219] Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./B450M Pro4, BIOS P3.40 07/02/2019
[ 472.934238] Workqueue: cfg80211 cfg80211_event_work [cfg80211]
[ 472.934263] RIP: 0010:__cfg80211_connect_result.cold+0x66/0x6d [cfg80211]
[ 472.934268] Code: 0f 0b 48 8b 73 10 49 8b 3c 24 e8 d3 f9 fa ff e9 27 a7 fd ff e8 09 ff ff ff e9 75 a6 fd ff 48 c7 c7 18 56 0d c2 e8 3b b5 83 ee <0f> 0b e9 0a a7 fd ff 48 c7 c7 18 56 0d c2 e8 28 b5 83 ee 0f 0b e9
[ 472.934269] RSP: 0018:ffffabff00567d90 EFLAGS: 00010246
[ 472.934271] RAX: 0000000000000024 RBX: ffff980c9396fe18 RCX: 0000000000000000
[ 472.934272] RDX: 0000000000000000 RSI: ffff980d0e717448 RDI: ffff980d0e717448
[ 472.934273] RBP: ffffabff00567de0 R08: ffff980d0e717448 R09: 0000000000000004
[ 472.934274] R10: 0000000000000000 R11: 0000000000000001 R12: ffff980cffada400
[ 472.934275] R13: 0000000000000000 R14: ffffabff00567d90 R15: dead000000000100
[ 472.934277] FS: 0000000000000000(0000) GS:ffff980d0e700000(0000) knlGS:0000000000000000
[ 472.934278] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 472.934279] CR2: 00007f61cca135f0 CR3: 00000004041c8000 CR4: 00000000003406e0
[ 472.934280] Call Trace:
[ 472.934288] ? __switch_to_asm+0x34/0x70
[ 472.934291] ? __switch_to_asm+0x34/0x70
[ 472.934309] cfg80211_process_wdev_events+0x13a/0x1a0 [cfg80211]
[ 472.934328] ? cfg80211_process_wdev_events+0x13a/0x1a0 [cfg80211]
[ 472.934348] cfg80211_process_rdev_events+0x38/0x80 [cfg80211]
[ 472.934364] cfg80211_event_work+0x1e/0x30 [cfg80211]
[ 472.934368] process_one_work+0x1db/0x380
[ 472.934372] worker_thread+0x4d/0x400
[ 472.934376] kthread+0x104/0x140
[ 472.934378] ? process_one_work+0x380/0x380
[ 472.934380] ? kthread_park+0x80/0x80
[ 472.934383] ret_from_fork+0x22/0x40
[ 472.934385] ---[ end trace fa858621598b1667 ]---
I am trying to contribute my work on DWA-182 to this project. I am a bit confused which branch is the main one. Both, 5.6.1_30... and 5.6.1.6 seem to be actively maintained. I could not figure out the differences :-(. Could you please point out?
Inside this file:
http://files.dlink.com.au/Products/DWA-182/REV_D/Drivers/DWA-182_D1_Linux_Driver_v5.6.1.5.zip
Is the 5.6.1.5 source:
20190718_RTL88x2BU_WiFi_linux_v5.6.1.5_33902.20190604_COEX20180928-6a6a-0718.tar.bz2
Unfortunately, 5.6.1.5 doesn't compile as-is on my Linux 5.4.6 kernel system.
I wasn't sure how to send this privately, so you can just delete this after you've read it.
Enjoy.
root@ubuntu:~# iwconfig wlan0
wlan0 IEEE 802.11bgn ESSID:"ibss-test" Nickname:"<WIFI@REALTEK>"
Mode:Ad-Hoc Frequency:2.452 GHz Cell: E6:B9:25:CB:5C:B6
Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=100/100 Signal level=-35 dBm Noise level=0 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
root@ubuntu:~# ifconfig wlan0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::7ea7:b0ff:fec0:3062 prefixlen 64 scopeid 0x20<link>
ether 7c:a7:b0:c0:30:62 txqueuelen 1000 (Ethernet)
RX packets 1 bytes 24 (24.0 B)
RX errors 0 dropped 1 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 13 overruns 0 carrier 0 collisions 0
This box only sees itself:
root@ubuntu:~# iwlist wlan0 scan | grep -5 ibss
wlan0 Scan completed :
Cell 01 - Address: E6:B9:25:CB:5C:B6
ESSID:"ibss-test"
Protocol:IEEE 802.11bgn
Mode:Ad-Hoc
Frequency:2.452 GHz (Channel 9)
Encryption key:off
Bit Rates:72 Mb/s
root@ubuntu:~# iwconfig wlan0
wlan0 IEEE 802.11 ESSID:"ibss-test"
Mode:Ad-Hoc Frequency:2.452 GHz Cell: E6:B9:25:CB:5C:B6
Tx-Power=31 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
root@ubuntu:~# ifconfig wlan0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::ba27:ebff:fe3c:5506 prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:3c:55:06 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 16 bytes 1648 (1.6 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
This box sees beacons from rtl88x2bu
:
root@ubuntu:~# iwlist wlan0 scan | grep -5 ibss
Cell 01 - Address: E6:B9:25:CB:5C:B6
Channel:9
Frequency:2.452 GHz (Channel 9)
Quality=70/70 Signal level=-32 dBm
Encryption key:off
ESSID:"ibss-test"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
Mode:Ad-Hoc
Extra:tsf=0000000000000000
root@ubuntu:~# iw wlan0 set type ibss
root@ubuntu:~# ifconfig wlan0 up
root@ubuntu:~# iw wlan0 ibss join ibss-test 2452 beacon-interval 1000
IBSS mode is supported according to iw phy
Supported interface modes:
* IBSS
* managed
* AP
Please LMK how can I help debug.
Does this driver support virtual interface as most of the wifi tools need this feature to work properly?
On Raspberry Pi 4, I can build and install the module rtl88x2bu/5.6.1 with dkms using the steps described in the README.
But when I perform sudo modprobe 88x2bu
to load the module I get this error message:
modprobe: ERROR: could not insert '88x2bu': Exec format error
When I look in dmesg i see this:
88x2bu: disagrees about version of symbol module_layout
When I do uname -a
I see this:
Linux stellarmate 4.19.115-v7l+ #1305 SMP Fri Apr 17 11:59:28 BST 2020 armv7l GNU/Linux
Is it a bug or did I do something wrong?
Really stuck with this problem on RPi 3B. I'm not a software dev and have spent the last 4 hours googling trying to get this adaptor working...
pi@raspberrypi:~/Desktop/rtl88x2bu $ sudo dkms build -m rtl88x2bu -v ${VER}
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
make -j4 KERNELRELEASE=4.19.97-v7+ KVER=4.19.97-v7+ src=/usr/src/rtl88x2bu-5.6.1..........(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.19.97-v7+ (armv7l)
Consult /var/lib/dkms/rtl88x2bu/5.6.1/build/make.log for more information
DKMS make.log for rtl88x2bu-5.6.1 for kernel 4.19.97-v7+ (armv7l)
Sun 9 Feb 19:54:25 GMT 2020
/bin/sh: 1: bc: not found
make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.19.97-v7+/build M=/var/lib/dkms/rtl88x2bu/5.6.1/build modules
make[1]: Entering directory '/usr/src/linux-headers-4.19.97-v7+'
/bin/sh: 1: bc: not found
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_cmd.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_security.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_debug.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_io.o
/usr/src/rtl88x2bu-5.6.1/core/rtw_debug.c: In function ‘dump_drv_version’:
/usr/src/rtl88x2bu-5.6.1/core/rtw_debug.c:45:62: error: macro "DATE" might prevent reproducible builds [-Werror=date-time]
RTW_PRINT_SEL(sel, "build time: %s %s\n", DATE, TIME);
^
/usr/src/rtl88x2bu-5.6.1/core/rtw_debug.c:45:62: error: macro "TIME" might prevent reproducible builds [-Werror=date-time]
/usr/src/rtl88x2bu-5.6.1/core/rtw_debug.c:45:62: error: macro "DATE" might prevent reproducible builds [-Werror=date-time]
/usr/src/rtl88x2bu-5.6.1/core/rtw_debug.c:45:62: error: macro "TIME" might prevent reproducible builds [-Werror=date-time]
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_ioctl_query.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_ioctl_set.o
CC [M] /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_ieee80211.o
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:303: /var/lib/dkms/rtl88x2bu/5.6.1/build/core/rtw_debug.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1522: module/var/lib/dkms/rtl88x2bu/5.6.1/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.19.97-v7+'
make: *** [Makefile:2270: modules] Error 2
Thanks for any help :-)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.