Coder Social home page Coder Social logo

rtl8723bu's People

Contributors

alexhenrie avatar derdakon avatar dini avatar dmig avatar dsd avatar giuliobenetti avatar lwfinger avatar mansr avatar maurossi avatar puchu avatar rohit2009 avatar uvv-gh avatar vivganes 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  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

rtl8723bu's Issues

Build error when MP_MODE = 1

Hi, thanks for this driver. I would like to enable the MP mode to test the wlan, however enabling the MP_MODE seems to be broken:

00:07:53.598 /source/drivers/staging/rtl8723bu/os_dep/mlme_linux.c: In function '_dynamic_check_timer_handlder':
00:07:53.598 /source/drivers/staging/rtl8723bu/os_dep/mlme_linux.c:96:51: error: '_adapter' has no member named 'mppriv'
00:07:53.598   if (adapter->registrypriv.mp_mode == 1 && adapter->mppriv.mp_dm ==0) //for MP ODM dynamic Tx power tracking
00:07:53.598                                                    ^
00:07:53.609 make[4]: *** [drivers/staging/rtl8723bu/os_dep/mlme_linux.o] Error 1

any advice?

Compiling on Arch fails

I tried to build this on Arch Linux.

uname -r
4.2.5-1-ARCH

But when I do make I get this output:

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.2.5-1-ARCH/build M=/mnt/data/Documents/Source/Kernel module test/rtl8723bu-master modules
make[1]: Entering directory '/usr/lib/modules/4.2.5-1-ARCH/build'
Makefile:659: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
make[1]: *** No rule to make target 'module'. Stop.
make[1]: Leaving directory '/usr/lib/modules/4.2.5-1-ARCH/build'
Makefile:355: recipe for target 'modules' failed
make: *** [modules] Error 2

I admit I am not an expert on compiling kernel modules, this is actually the first time I have to do this.
So I apologize if I am missing something obvious here but after googling and trying different things for a few hours I am still clueless to what is going wrong here.

I do have base-devel as well as the linux-headers installed.
The strange thing is that I tried compiling it on my main computer while setting up my laptop (which needs this module) and somehow I got it to work.
During the laptop install I noticed that it installed a newer kernel than the one I compiled with on my main PC so I updated that PC. Later all attempts to compile it failed and the update seems to be the only thing that changed.
Thanks for any potential clues on how to solve this.

Bluetooth scan issue

We are using LM811 Wifi and Bluetooth module with rtl8723au_bt-troy and rtl8723bu drivers. Using just Bluetooth functionality we are able to scan only the nearest devices. For Bluetooth scan to work properly it is also neceary to set up wlan. Then current consumption rises and the number of scanned devices is higher.
Is there a way for increasing Bluetooth scan power without using wifi driver and wlan?

error: ‘critical_count’ undeclared

realtek/rtl8723bu/include/osdep_service_linux.h:191:6: error: ‘critical_count’ undeclared (first use in this function)
if (critical_count) {
^
realtek/rtl8723bu/include/osdep_service_linux.h:191:6: note: each undeclared identifier is reported only once for each function it appears in
realtek/rtl8723bu/core/rtw_cmd.c: In function ‘_rtw_dequeue_cmd’:
/realtek/rtl8723bu/core/rtw_cmd.c:242:7: error: ‘critical_count’ undeclared (first use in this function)
if (!critical_count) {
^

make[1]: Leaving directory '/usr/src/linux-headers-4.2.0-17-generic'

Tried to add
int critical_count;
int critical_count_bh;
into 'include/osdep_service_linux.h'
received a lot of :
rtl8723bu/core/rtw_bt_mp.o:(.bss+0x4): multiple definition of critical_count' or rtl8723bu/core/rtw_bt_mp.o:(.bss+0x0): multiple definition ofcritical_count_bh'

/lib/modules/4.6.0-kali1-amd64/build: No such file or directory. Stop.

I installed kali 2016.2 on the Cube i9, and I have updated it, upgraded it, and I have made sure that linux headers are installed. But every time I try to "make", the console spits out the error specified below, the folder that is missing is /build, the rest is there. If I manually create the folder it does not work either. Please let me know if you know how to correct that issue.

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.6.0-kali1-amd64/build M=/root/rtl8723bu modules
make[1]: *** /lib/modules/4.6.0-kali1-amd64/build: No such file or directory. Stop.
Makefile:321: recipe for target 'modules' failed
make: *** [modules] Error 2

rtl8723bu blocking interrupts for long time?

We are currently using the rtl8723bu in a small embedded project and the device driver seems to work nicely, thanks!

It however seems like the driver is blocking interrupts for a somewhat lengthy time thus starving the rest of the system trying to execute. We experience serial port overruns etc even when the system otherwise have no noticeable load. If we pick down the wlan interface everything works.

My question here is if it could be possible to identify the path that blocks the interrupts and hopefully try to make it a bit more finegrained?

implicit declaration of function ‘autosuspend_enter’ when compiling on BeagleBoneBlack

Hi,

When I try to compile this on a BBB, I get the following error:

root@beaglebone:~/rtl8723bu# make
make ARCH=arm CROSS_COMPILE= -C /lib/modules/3.8.13-bone79/build M=/root/rtl8723bu  modules
make[1]: Entering directory `/usr/src/linux-headers-3.8.13-bone79'
  CC [M]  /root/rtl8723bu/core/rtw_pwrctrl.o
/root/rtl8723bu/core/rtw_pwrctrl.c: In function ‘rtw_ps_processor’:
/root/rtl8723bu/core/rtw_pwrctrl.c:387:5: error: implicit declaration of function ‘autosuspend_enter’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[2]: *** [/root/rtl8723bu/core/rtw_pwrctrl.o] Error 1
make[1]: *** [_module_/root/rtl8723bu] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.8.13-bone79'
make: *** [modules] Error 2

It looks like the function autosuspend_enter is defined in os_dep/usb_intf.c, but I can't find it's declaration. I pulled the most recent code today.

Thanks for any help you can give.

Wi-Fi promiscuous mode

Hello,

I would like to get all packets from the Wi-Fi interface with a RT8723BU dongle.
I'm able to create a virtual interface in monitor mode with this command:
iw phy phy0 interface add moni0 type monitor

Then, I'm launching a python script that uses libpcap to capture all Wi-Fi packet and not only packet with my MAC address. But, I'm not able to get those packets from this interface. Do you know if this driver is able to receive those packets?

Thanks for your help,

Arthur

Freezes...

I have a Laptop and use the driver from here... Sometimes (2-3 per day) the laptop freezes completely. magic SysRq key doesn't do anything. memtest works fine...

So the question is: Are the freezes related to the WiFi driver from here?!?

How can i figure out this? Any ideas?

Authentication timed out

Dear lwfinger,
This driver can't connect to AP , debug MSG as below , my kernel version is 3.0.8
please help to assist this issue

wpa_cli -i wlan0 wps_pbc

OK

Trying to associate with cc:e1:dRTL871X: set bssid:cc:e1:d5:2e:06:76

5:2e:06:76 (SSIDRTL871X: set ssid [BuffaloBenny] fw_state=0x00000188
='BuffaloBenny' freq=2462 MHz)
RTL871X: start auth
Authentication with cc:e1:d5:2e:06:76 timed out.
Trying to associate with cc:e1:dRTL871X: set bssid:cc:e1:d5:2e:06:76
5:2e:06:76 (SSIDRTL871X: set ssid [BuffaloBenny] fw_state=0x00000188
='BuffaloBenny' freq=2462 MHz)
RTL871X: start auth
Authentication with cc:e1:d5:2e:06:76 timed out.
Trying to associate with cc:e1:dRTL871X: set bssid:cc:e1:d5:2e:06:76
5:2e:06:76 (SSIDRTL871X: set ssid [BuffaloBenny] fw_state=0x00000188
='BuffaloBenny' freq=2462 MHz)
RTL871X: start auth
RTL871X: sta recv deauth reason code(1) sta:cc:e1:d5:2e:06:76, ignore = 0
Authentication with cc:e1:d5:2e:06:76 timed out.
Trying to associate with cc:e1:dRTL871X: set bssid:cc:e1:d5:2e:06:76
5:2e:06:76 (SSIDRTL871X: set ssid [BuffaloBenny] fw_state=0x00000188
='BuffaloBenny' freq=2462 MHz)
RTL871X: start auth
Authentication with cc:e1:d5:2e:06:76 timed out.

Implicit declaration of function 'G_TC_AT' compile error

Using RaspberryPi2 @ OSMC, I am trying to plug in my WiFi+BT stick:

osmc@osmc:~/drv/rtl8723bu$ uname -a
Linux osmc 4.4.27-2-osmc #1 SMP PREEMPT Sun Oct 30 16:33:55 UTC 2016 armv7l GNU/Linux

osmc@osmc:~/drv/rtl8723bu$ lsusb
Bus 001 Device 005: ID 0bda:b720 Realtek Semiconductor Corp.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

verbosed: lsusb.txt

Getting same error that many people had:

osmc@osmc:~/drv/rtl8723bu$ make
make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.4.27-2-osmc/build M=/home/osmc/drv/rtl8723bu modules
make[1]: *** /lib/modules/4.4.27-2-osmc/build: No such file or directory. Stop.
Makefile:321: recipe for target 'modules' failed
make: *** [modules] Error 2

Getting headers and linking them:

sudo apt-get install rbp2-headers-4.4.27-2-osmc
sudo ln -s /usr/src/rbp2-headers-4.4.27-2-osmc/ /lib/modules/4.4.27-2-osmc/build

Getting past that error and to the new one. Sorry, can't copypaste exact output right now, it was about missing file <mach/memory.h>

find /usr/src/ -iname "memory.h"

Copying missing mach/memory.h from /usr/src/rbp2-headers-4.4.27-2-osmc/arch/arm/mach-bcm2709/include/mach/ and trying again. Same error about missing <mach/io.h> - doing the same thing and trying again:

osmc@osmc:~/drv/rtl8723bu$ make
make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.4.27-2-osmc/build M=/home/osmc/drv/rtl8723bu modules
make[1]: Entering directory '/usr/src/rbp2-headers-4.4.27-2-osmc' CC [M] /home/osmc/drv/rtl8723bu/core/rtw_br_ext.o
In file included from include/linux/filter.h:16:0,
from include/net/sock.h:62,
from include/net/inet_sock.h:27,
from include/net/ip.h:30,
from /home/osmc/drv/rtl8723bu/core/rtw_br_ext.c:24:
include/net/sch_generic.h: In function 'skb_at_tc_ingress':
include/net/sch_generic.h:414:2: error: implicit declaration of function 'G_TC_AT' [-Werror=implicit-function-declaration]
return G_TC_AT(skb->tc_verd) & AT_INGRESS;
^
include/net/sch_generic.h:414:33: error: 'AT_INGRESS' undeclared (first use in this function) return G_TC_AT(skb->tc_verd) & AT_INGRESS;
^
include/net/sch_generic.h:414:33: note: each undeclared identifier is reported only once for each function it appears in
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/home/osmc/drv/rtl8723bu/core/rtw_br_ext.o' failed
make[2]: *** [/home/osmc/drv/rtl8723bu/core/rtw_br_ext.o] Error 1
Makefile:1400: recipe for target '_module_/home/osmc/drv/rtl8723bu' failed
make[1]: *** [_module_/home/osmc/drv/rtl8723bu] Error 2
make[1]: Leaving directory '/usr/src/rbp2-headers-4.4.27-2-osmc'
Makefile:321: recipe for target 'modules' failed
make: *** [modules] Error 2

at this point, I am completely exhausted and desperate. Please help?

Low Bluetooth signal strength with wifi down

Hello, and thank you very much for your work.
We are using the rtl8723bu driver and rtl8723au_bt driver on a rtl8723bu usb dongle. It works perfectly with some minor issue that we were able to workaround.
The big problem we're experiencing now (that was mentioned in the issue #2) is that if the wifi adapter isn't upped at least once, the bt transmit level is very low.
Our device (based on freescale ix6 arm) is booted with wifi driver loaded but adapter down. Our application is advertising through btle. If we test with LightBlue, an iOS app that displays the signal strength, we can see a signal level of about -90dbm at 1.5m from the dongle. When we up the adapter (ifup wlan0), the signal immediately raises to -60dbm.
if we down the adapter, the signals is still to pretty good levels (-60dbm).
Notice that we had an issue with the IPS, we removed the CONFIG_IPS flags because when the driver entered the power save mode, we were unable to communicate reliably with the driver again.
The USB ids are: 0bda:b720. kernel is 4.2.0

Thank you and best regards

Federico Fuga

RTL8723BU BT driver

Thank you very much for this driver. But is there any known Bluetooth driver for RTL8723BU in existence?

Driver will not load automatically and ifconfig shows no wlan0

I just got a new WiFi/BT adapter. Trying to use it on my RP2. The adapter is using rtl8723bu chip; therefore, I am hoping this driver will work.

I have no problem to compile and install the driver. Once restarted, the 8723bu.ko will not load automatically and I have to run insmod 8723bu.ko command in order for it to load. After that, command ifconfig will show no wlan interface.

lsusb shows the following ID.
ID 7392:a611 Edimax Technology Co., Ltd

Is it the ID that is causing the problem? My RP2 is running Raspbian kernel v4.4.21-v7+, which is the latest. Any help would be appreciated!

Regards,
lkw

Drivers restart in loop

Hi,

The driver constantly restarts in loop when I'm trying to connect to an AP with wpa_supplicant.conf.

The command I typed is:

wpa_supplicant -iwlan0 -c /etc/wpa_supplicant.conf

I put the dmesg output below, do you have any idea where this problem should come from?

thanks for your help

[ 3052.613991] RTL871X: module init start
[ 3052.623965] RTL871X: rtl8723bu v4.3.6.11_12942.20141204_BTCOEX20140507-4E40
[ 3052.636404] RTL871X: rtl8723bu BT-Coex version = BTCOEX20140507-4E40
[ 3052.646964] RTL871X:
[ 3052.646981] usb_endpoint_descriptor(0):
[ 3052.655378] RTL871X: bLength=7
[ 3052.661211] RTL871X: bDescriptorType=5
[ 3052.667595] RTL871X: bEndpointAddress=84
[ 3052.674511] RTL871X: wMaxPacketSize=512
[ 3052.680585] RTL871X: bInterval=0
[ 3052.687408] RTL871X: RT_usb_endpoint_is_bulk_in = 4
[ 3052.696234] RTL871X:
[ 3052.696249] usb_endpoint_descriptor(1):
[ 3052.704538] RTL871X: bLength=7
[ 3052.710398] RTL871X: bDescriptorType=5
[ 3052.716719] RTL871X: bEndpointAddress=5
[ 3052.723536] RTL871X: wMaxPacketSize=512
[ 3052.729625] RTL871X: bInterval=0
[ 3052.736555] RTL871X: RT_usb_endpoint_is_bulk_out = 5
[ 3052.745509] RTL871X:
[ 3052.745522] usb_endpoint_descriptor(2):
[ 3052.753816] RTL871X: bLength=7
[ 3052.759614] RTL871X: bDescriptorType=5
[ 3052.765910] RTL871X: bEndpointAddress=6
[ 3052.772722] RTL871X: wMaxPacketSize=512
[ 3052.778794] RTL871X: bInterval=0
[ 3052.785699] RTL871X: RT_usb_endpoint_is_bulk_out = 6
[ 3052.794587] RTL871X:
[ 3052.794599] usb_endpoint_descriptor(3):
[ 3052.802897] RTL871X: bLength=7
[ 3052.808708] RTL871X: bDescriptorType=5
[ 3052.815091] RTL871X: bEndpointAddress=87
[ 3052.821890] RTL871X: wMaxPacketSize=64
[ 3052.827578] RTL871X: bInterval=3
[ 3052.835955] RTL871X: RT_usb_endpoint_is_int_in = 7, Interval = 3
[ 3052.865846] RTL871X:
[ 3052.865858] usb_endpoint_descriptor(4):
[ 3052.873812] RTL871X: bLength=7
[ 3052.879370] RTL871X: bDescriptorType=5
[ 3052.885660] RTL871X: bEndpointAddress=8
[ 3052.892796] RTL871X: wMaxPacketSize=512
[ 3052.898904] RTL871X: bInterval=0
[ 3052.905867] RTL871X: RT_usb_endpoint_is_bulk_out = 8
[ 3052.914761] RTL871X:
[ 3052.914774] usb_endpoint_descriptor(5):
[ 3052.923080] RTL871X: bLength=7
[ 3052.928932] RTL871X: bDescriptorType=5
[ 3052.935227] RTL871X: bEndpointAddress=9
[ 3052.942077] RTL871X: wMaxPacketSize=512
[ 3052.948140] RTL871X: bInterval=0
[ 3052.955044] RTL871X: RT_usb_endpoint_is_bulk_out = 9
[ 3052.964555] RTL871X: nr_endpoint=6, in_num=2, out_num=4
[ 3052.964574]
[ 3052.973885] RTL871X: USB_SPEED_HIGH
[ 3052.980498] RTL871X: CHIP TYPE: RTL8723BU
[ 3052.988796] RTL871X: register rtw_netdev_ops to netdev_ops
[ 3052.998626] RTL871X: rtw_wdev_alloc(padapter=d0ddf000)
[ 3053.026272] RTL871X: Chip Version Info: CHIP_8723B_Normal_Chip_TSMC_D_CUT_1T1R_RomVer(0)
[ 3053.037064] RTL871X: RF_Type is 3!!
[ 3053.047042] RTL871X: _ConfigChipOutEP_8723 OutEpQueueSel(0x07), OutEpNumber(4)
[ 3053.057882] RTL871X: EEPROM type is E-FUSE
[ 3053.065727] RTL871X: ====> _ReadAdapterInfo8723BU
[ 3053.075196] RTL871X: Boot from EFUSE, Autoload OK !
[ 3053.086086] RTL871X: hal_EfuseSwitchToBank: Efuse switch bank to 0
[ 3053.467987] RTL871X: hal_ReadEFuse_WiFi: data end at address=0x9c
[ 3053.476669] RTL871X: Efuse Realmap:
[ 3053.500726]
[ 3053.502517] 29 81 03 7C 01 08 21 00 40 07 05 35 10 00 00 00
[ 3053.513135] 2B 2B 2B 2B 2B 2B 2A 2A 2A 2A 2A 03 FF FF FF FF
[ 3053.524149] FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3053.535040] FF FF FF FF FF FF FF FF FF FF 2D 2D 2D 2D 2D 2D
[ 3053.545924] 2D 2D 2D 2D 2D 03 FF FF FF FF FF FF FF FF FF FF
[ 3053.556988] FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3053.567876] FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3053.578777] FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3053.589664] FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3053.600541] FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3053.611419] FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3053.622290] FF FF FF FF FF FF FF FF 20 20 20 00 00 00 FF FF
[ 3053.633156] FF 28 20 11 00 00 00 FF 00 FF FF FF FF FF FF FF
[ 3053.644025] FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3053.654881] FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3053.665755] FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3053.676827] DA 0B 20 B7 E7 47 03 5C F3 70 17 E4 3E 09 03 52
[ 3053.687707] 65 61 6C 74 65 6B 16 03 38 30 32 2E 31 31 6E 20
[ 3053.698561] 57 4C 41 4E 20 41 64 61 70 74 65 72 00 FF FF FF
[ 3053.709446] FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3053.720339] FF FF FF FF FF FF FF 0F FF FF FF FF FF FF FF FF
[ 3053.731220] FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3053.742093] FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3053.752973] FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3053.763844] FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3053.774728] FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3053.785615] FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3053.816683] FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3053.827309] FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3053.838318] FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3053.849196] FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3053.860074] FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3053.873568] RTL871X: EEPROM VID = 0x bda
[ 3053.880580] RTL871X: EEPROM PID = 0xb720
[ 3053.891077] RTL871X: Hal_EfuseParseBTCoexistInfo_8723B: Enable BT-coex, ant_num=1
[ 3053.904639] RTL871X: InitAdapterVariablesByPROM_8723BU(): REPLACEMENT = 0
[ 3053.916055] RTL871X: <==== _ReadAdapterInfo8723BU in 850 ms
[ 3053.927588] RTL871X: init_channel_set ChannelPlan ID 20 Chan num:13
[ 3053.941184] RTL871X: Init_ODM_ComInfo_8723b(): fab_ver=0 cut_ver=0
[ 3053.953079] RTL871X: rtw_macaddr_cfg MAC Address  = 5c:f3:70:17:e4:3e
[ 3053.966453] RTL871X: bDriverStopped:1, bSurpriseRemoved:0, bup:0, hw_init_completed:0
[ 3053.977466] RTL871X: rtw_ndev_init(wlan0)
[ 3054.003379] RTL871X: _rtw_drv_register_netdev, MAC Address (if1) = 5c:f3:70:17:e4:3e
[ 3054.018847] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[ 3054.056919] usbcore: registered new interface driver rtl8723bu
[ 3054.070470] platform reg-20-cs-buck3: Driver reg-20-cs-buck3 requests probe deferral
[ 3054.082809] RTL871X: module init ret=0
[ 3054.089550] platform reg-20-cs-buck2: Driver reg-20-cs-buck2 requests probe deferral
[ 3054.107664] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[ 3054.121748] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[ 3054.135837] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[ 3057.316570] RTL871X: +871x_drv - drv_open, bup=0
[ 3057.327194] RTL871X:  power-on :REG_SYS_CLKR 0x09=0x30. REG_CR 0x100=0xea.
[ 3057.337922] RTL871X:  MAC has not been powered on yet.
[ 3057.357110] RTL871X: rtl8723b_FirmwareDownload(wlan0) tmp_ps=0
[ 3057.368415] RTL871X: rtl8723b_FirmwareDownload fw: FW_NIC, size: 27324
[ 3057.384813] RTL871X: rtl8723b_FirmwareDownload: fw_ver=1d fw_subver=0000 sig=0x5301, Month=06, Date=05, Hour=10, Minute=58
[ 3057.401210] RTL871X: rtl8723b_FirmwareDownload(): Shift for fw header!
[ 3057.446922] RTL871X: polling_fwdl_chksum: Checksum report OK! (1, 0ms), REG_MCUFWDL:0x00060605
[ 3057.464872] RTL871X: _8051Reset8723: Finish
[ 3057.497572] RTL871X: _FWFreeToGo: Polling FW ready OK! (171, 30ms), REG_MCUFWDL:0x000606c6
[ 3057.509653] RTL871X: FWDL success. write_fw:1, 100ms
[ 3057.518434] RTL871X:  <=== rtl8723b_FirmwareDownload()
[ 3057.526018] RTL871X: fw download ok!
[ 3058.182367] RTL871X: ===>phy_SwChnl8723B: Channel = 1
[ 3058.197350] RTL871X: RTW_ADAPTIVITY_EN_AUTO, chplan:0x20, Regulation:0,0
[ 3058.209894] RTL871X: RTW_ADAPTIVITY_MODE_NORMAL
[ 3058.222528] RTL871X: pDM_Odm TxPowerTrackControl = 1
[ 3058.944153] RTL871X: rtl8723bu_hal_init in 1620ms
[ 3058.955623] RTL871X: #### hw_var_set_opmode() -5238 iface_type(0) mode = 2 ####
[ 3058.976371] RTL871X: ===>phy_SwChnl8723B: Channel = 1
[ 3058.991225] RTL871X: Using the default RF gain.
[ 3058.999411] RTL871X: MAC Address = 5c:f3:70:17:e4:3e
[ 3059.009023] RTL871X: rx C2H_PACKET, ID=11, seq=0, len=7
[ 3059.018731] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3059.028143] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3059.036766] RTL871X: SetHwRegWithBuf8723B len=9
[ 3059.045337] RTL871X: rtw_cfg80211_init_wiphy:rf_type=3
[ 3059.053846] RTL871X: -871x_drv - drv_open, bup=1
[ 3059.065378] RTL871X: cfg80211_rtw_set_power_mgmt(wlan0) enabled:1, timeout:-1
[ 3059.077307] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 3059.088805] RTL871X: cfg80211_rtw_flush_pmksa(wlan0)
[ 3059.197802] RTL871X: cfg80211_rtw_scan(wlan0)
[ 3059.210250] RTL871X: rx C2H_PACKET, ID=9, seq=1, len=7
[ 3059.219829] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3059.229926] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3059.242002] RTL871X: ===>phy_SwChnl8723B: Channel = 1
[ 3059.257532] RTL871X: SetHwRegWithBuf8723B len=9
[ 3059.267623] RTL871X: rx C2H_PACKET, ID=11, seq=2, len=7
[ 3059.277606] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3059.287322] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3059.296606] RTL871X: rx C2H_PACKET, ID=11, seq=3, len=7
[ 3059.306548] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3059.316160] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3059.470039] RTL871X: SetHwRegWithBuf8723B len=9
[ 3059.478973] RTL871X: rx C2H_PACKET, ID=11, seq=4, len=7
[ 3059.488794] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3059.499806] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3059.509192] RTL871X: rx C2H_PACKET, ID=11, seq=5, len=7
[ 3059.518902] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3059.528509] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3059.537679] RTL871X: SetHwRegWithBuf8723B len=9
[ 3059.548877] RTL871X: ===>phy_SwChnl8723B: Channel = 2
[ 3059.562589] RTL871X: SetHwRegWithBuf8723B len=9
[ 3059.571280] RTL871X: SetHwRegWithBuf8723B len=9
[ 3059.661878] RTL871X: ===>phy_SwChnl8723B: Channel = 3
[ 3059.771882] RTL871X: ===>phy_SwChnl8723B: Channel = 4
[ 3059.881882] RTL871X: ===>phy_SwChnl8723B: Channel = 5
[ 3059.991877] RTL871X: ===>phy_SwChnl8723B: Channel = 6
[ 3060.102012] RTL871X: ===>phy_SwChnl8723B: Channel = 7
[ 3060.211884] RTL871X: ===>phy_SwChnl8723B: Channel = 8
[ 3060.322268] RTL871X: ===>phy_SwChnl8723B: Channel = 9
[ 3060.432222] RTL871X: ===>phy_SwChnl8723B: Channel = 10
[ 3060.542223] RTL871X: ===>phy_SwChnl8723B: Channel = 11
[ 3060.652223] RTL871X: ===>phy_SwChnl8723B: Channel = 12
[ 3060.762222] RTL871X: ===>phy_SwChnl8723B: Channel = 13
[ 3060.872135] RTL871X: ===>phy_SwChnl8723B: Channel = 1
[ 3060.889933] RTL871X: rx C2H_PACKET, ID=9, seq=6, len=7
[ 3060.899674] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3060.909235] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3060.920190] RTL871X: survey done event(2d) band:0 for wlan0
[ 3060.929586] RTL871X: SetHwRegWithBuf8723B len=9
[ 3060.939127] RTL871X: rx C2H_PACKET, ID=11, seq=7, len=7
[ 3060.949230] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3060.958675] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3060.967843] RTL871X: rx C2H_PACKET, ID=11, seq=8, len=7
[ 3060.977530] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3060.987254] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3061.049664] RTL871X: IsBtDisabled=0, IsBtControlLps=0
[ 3061.140737] RTL871X: rtw_indicate_scan_done(wlan0)
[ 3061.149897] RTL871X: rx C2H_PACKET, ID=11, seq=9, len=7
[ 3061.159561] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3061.169176] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3061.178181] RTL871X: rx C2H_PACKET, ID=11, seq=10, len=7
[ 3061.188254] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3061.197868] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3061.206988] RTL871X: SetHwRegWithBuf8723B len=9
[ 3061.215566] RTL871X: SetHwRegWithBuf8723B len=9
[ 3061.233663] RTL871X: ==>rtw_ps_processor .fw_state(8)
[ 3061.243385] RTL871X: ==>ips_enter cnts:1
[ 3061.250695] RTL871X: nolinked power save enter
[ 3061.259574] RTL871X: ===> rtw_ips_pwr_down...................
[ 3061.268986] RTL871X: ====> rtw_ips_dev_unload...
[ 3061.281127] RTL871X: usb_read_port_cancel
[ 3061.293551] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3061.311955] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3061.330314] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3061.348694] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3061.367056] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3061.385436] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3061.403808] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3061.422203] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3061.444081] RTL871X: usb_write_port_cancel
[ 3061.451634] RTL871X: ==> rtl8723bu_hal_deinit
[ 3061.458957] RTL871X: CardDisableRTL8723BU
[ 3061.499158] RTL871X: <=== rtw_ips_pwr_down..................... in 240ms
[ 3066.214141] RTL871X: cfg80211_rtw_scan(wlan0)
[ 3066.222647] RTL871X: _rtw_pwr_wakeup call ips_leave....
[ 3066.230566] RTL871X: ==>ips_leave cnts:1
[ 3066.238412] RTL871X: ===>  rtw_ips_pwr_up..............
[ 3066.247194] RTL871X: ===> ips_netdrv_open.........
[ 3066.258107] RTL871X:  power-on :REG_SYS_CLKR 0x09=0x30. REG_CR 0x100=0xea.
[ 3066.269172] RTL871X:  MAC has not been powered on yet.
[ 3066.290144] RTL871X: rtl8723b_FirmwareDownload(wlan0) tmp_ps=0
[ 3066.302275] RTL871X: rtl8723b_FirmwareDownload fw: FW_NIC, size: 27324
[ 3066.318991] RTL871X: rtl8723b_FirmwareDownload: fw_ver=1d fw_subver=0000 sig=0x5301, Month=06, Date=05, Hour=10, Minute=58
[ 3066.335765] RTL871X: rtl8723b_FirmwareDownload(): Shift for fw header!
[ 3066.407859] RTL871X: polling_fwdl_chksum: Checksum report OK! (1, 0ms), REG_MCUFWDL:0x00060605
[ 3066.421805] RTL871X: _8051Reset8723: Finish
[ 3066.454674] RTL871X: _FWFreeToGo: Polling FW ready OK! (86, 30ms), REG_MCUFWDL:0x000606c6
[ 3066.466991] RTL871X: FWDL success. write_fw:1, 120ms
[ 3066.476202] RTL871X:  <=== rtl8723b_FirmwareDownload()
[ 3066.484004] RTL871X: fw download ok!
[ 3067.730547] RTL871X: ===>phy_SwChnl8723B: Channel = 1
[ 3067.749403] RTL871X: RTW_ADAPTIVITY_EN_AUTO, chplan:0x20, Regulation:0,0
[ 3067.762201] RTL871X: RTW_ADAPTIVITY_MODE_NORMAL
[ 3067.773698] RTL871X: pDM_Odm TxPowerTrackControl = 1
[ 3068.193314] RTL871X: PHY_IQCalibrate_8723B =>path:A  Restore RX IQK result failed
[ 3069.015701] RTL871X: rtl8723bu_hal_init in 2760ms
[ 3069.027805] RTL871X: #### hw_var_set_opmode() -5238 iface_type(0) mode = 2 ####
[ 3069.043159] RTL871X: ===>phy_SwChnl8723B: Channel = 1
[ 3069.052037] RTL871X: IsBtDisabled=0, IsBtControlLps=0
[ 3069.088416] RTL871X: Using the default RF gain.
[ 3069.097834] RTL871X: rx C2H_PACKET, ID=11, seq=0, len=7
[ 3069.107585] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3069.117038] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3069.127856] RTL871X: <===  rtw_ips_pwr_up.............. in 2890ms
[ 3069.137525] RTL871X: nolinked power save leave
[ 3069.162520] RTL871X: SetHwRegWithBuf8723B len=9
[ 3069.171372] RTL871X: ==> ips_leave.....LED(0x00e08282)...
[ 3069.183679] RTL871X: rx C2H_PACKET, ID=11, seq=1, len=7
[ 3069.193475] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3069.202987] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3069.211936] RTL871X: rx C2H_PACKET, ID=11, seq=2, len=7
[ 3069.221638] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3069.231079] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3069.240130] RTL871X: SetHwRegWithBuf8723B len=9
[ 3069.248079] RTL871X: SetHwRegWithBuf8723B len=9
[ 3069.390981] RTL871X: rx C2H_PACKET, ID=11, seq=3, len=7
[ 3069.400782] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3069.410291] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3069.419206] RTL871X: rx C2H_PACKET, ID=11, seq=4, len=7
[ 3069.428913] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3069.438356] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3069.448165] RTL871X: SetHwRegWithBuf8723B len=9
[ 3069.456765] RTL871X: SetHwRegWithBuf8723B len=9
[ 3069.486975] RTL871X: rx C2H_PACKET, ID=9, seq=5, len=7
[ 3069.496663] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3069.506117] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3069.521006] RTL871X: rx C2H_PACKET, ID=9, seq=6, len=7
[ 3069.530718] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3069.540525] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3069.554431] RTL871X: ===>phy_SwChnl8723B: Channel = 1
[ 3069.572774] RTL871X: SetHwRegWithBuf8723B len=9
[ 3069.583673] RTL871X: rx C2H_PACKET, ID=11, seq=7, len=7
[ 3069.593831] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3069.603508] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3069.612608] RTL871X: rx C2H_PACKET, ID=11, seq=8, len=7
[ 3069.622542] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3069.632123] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3069.797195] RTL871X: SetHwRegWithBuf8723B len=9
[ 3069.806132] RTL871X: rx C2H_PACKET, ID=11, seq=9, len=7
[ 3069.816114] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3069.825980] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3069.835356] RTL871X: rx C2H_PACKET, ID=11, seq=10, len=7
[ 3069.845491] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3069.855462] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3069.867167] RTL871X: rx C2H_PACKET, ID=11, seq=11, len=7
[ 3069.877338] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3069.886949] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3069.896001] RTL871X: rx C2H_PACKET, ID=11, seq=12, len=7
[ 3069.906273] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3069.915760] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3070.070296] RTL871X: SetHwRegWithBuf8723B len=9
[ 3070.079225] RTL871X: rx C2H_PACKET, ID=11, seq=13, len=7
[ 3070.089346] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3070.099054] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3070.108240] RTL871X: rx C2H_PACKET, ID=11, seq=14, len=7
[ 3070.118344] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3070.128025] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3070.155096] RTL871X: SetHwRegWithBuf8723B len=9
[ 3070.167930] RTL871X: ===>phy_SwChnl8723B: Channel = 2
[ 3070.184763] RTL871X: SetHwRegWithBuf8723B len=9
[ 3070.193762] RTL871X: SetHwRegWithBuf8723B len=9
[ 3070.202937] RTL871X: SetHwRegWithBuf8723B len=9
[ 3070.211338] RTL871X: SetHwRegWithBuf8723B len=9
[ 3070.219814] RTL871X: SetHwRegWithBuf8723B len=9
[ 3070.227767] RTL871X: SetHwRegWithBuf8723B len=9
[ 3070.283296] RTL871X: ===>phy_SwChnl8723B: Channel = 3
[ 3070.403681] RTL871X: ===>phy_SwChnl8723B: Channel = 4
[ 3070.523183] RTL871X: ===>phy_SwChnl8723B: Channel = 5
[ 3070.643427] RTL871X: ===>phy_SwChnl8723B: Channel = 6
[ 3070.780556] RTL871X: ===>phy_SwChnl8723B: Channel = 7
[ 3070.893306] RTL871X: ===>phy_SwChnl8723B: Channel = 8
[ 3071.013304] RTL871X: ===>phy_SwChnl8723B: Channel = 9
[ 3071.119633] RTL871X: IsBtDisabled=0, IsBtControlLps=0
[ 3071.131979] RTL871X: rx C2H_PACKET, ID=9, seq=15, len=7
[ 3071.141661] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3071.151162] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3071.165631] RTL871X: ===>phy_SwChnl8723B: Channel = 10
[ 3071.181880] RTL871X: SetHwRegWithBuf8723B len=9
[ 3071.192142] RTL871X: rx C2H_PACKET, ID=11, seq=16, len=7
[ 3071.202028] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3071.211527] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3071.220565] RTL871X: rx C2H_PACKET, ID=11, seq=17, len=7
[ 3071.230356] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3071.240128] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3071.399935] RTL871X: SetHwRegWithBuf8723B len=9
[ 3071.408843] RTL871X: rx C2H_PACKET, ID=11, seq=18, len=7
[ 3071.418693] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3071.428148] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3071.437177] RTL871X: rx C2H_PACKET, ID=11, seq=19, len=7
[ 3071.446964] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3071.456408] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3071.465568] RTL871X: SetHwRegWithBuf8723B len=9
[ 3071.478266] RTL871X: ===>phy_SwChnl8723B: Channel = 11
[ 3071.494391] RTL871X: SetHwRegWithBuf8723B len=9
[ 3071.502828] RTL871X: SetHwRegWithBuf8723B len=9
[ 3071.593011] RTL871X: ===>phy_SwChnl8723B: Channel = 12
[ 3071.709887] RTL871X: ===>phy_SwChnl8723B: Channel = 13
[ 3071.823565] RTL871X: ===>phy_SwChnl8723B: Channel = 1
[ 3071.844822] RTL871X: rx C2H_PACKET, ID=9, seq=20, len=7
[ 3071.854739] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3071.864377] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3071.876705] RTL871X: survey done event(42) band:0 for wlan0
[ 3071.886480] RTL871X: SetHwRegWithBuf8723B len=9
[ 3071.896766] RTL871X: rx C2H_PACKET, ID=11, seq=21, len=7
[ 3071.906829] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3071.916577] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3071.925634] RTL871X: rx C2H_PACKET, ID=11, seq=22, len=7
[ 3071.935557] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3071.945234] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3072.101201] RTL871X: rx C2H_PACKET, ID=11, seq=23, len=7
[ 3072.111385] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3072.121089] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3072.130145] RTL871X: rx C2H_PACKET, ID=11, seq=24, len=7
[ 3072.140125] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3072.149597] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3072.160093] RTL871X: rtw_indicate_scan_done(wlan0)
[ 3072.168628] RTL871X: SetHwRegWithBuf8723B len=9
[ 3072.178740] RTL871X: SetHwRegWithBuf8723B len=9
[ 3072.187605] RTL871X: SetHwRegWithBuf8723B len=9
[ 3072.196249] RTL871X: SetHwRegWithBuf8723B len=9
[ 3072.205426] RTL871X: ==>rtw_ps_processor .fw_state(8)
[ 3072.216178] RTL871X: ==>ips_enter cnts:2
[ 3072.223697] RTL871X: nolinked power save enter
[ 3072.233037] RTL871X: ===> rtw_ips_pwr_down...................
[ 3072.242516] RTL871X: ====> rtw_ips_dev_unload...
[ 3072.258029] RTL871X: usb_read_port_cancel
[ 3072.270952] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3072.289464] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3072.308572] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3072.339570] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3072.358073] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3072.376441] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3072.394550] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3072.412697] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3072.425372] RTL871X: usb_write_port_cancel
[ 3072.433197] RTL871X: ==> rtl8723bu_hal_deinit
[ 3072.440485] RTL871X: CardDisableRTL8723BU
[ 3072.481053] RTL871X: <=== rtw_ips_pwr_down..................... in 240ms
[ 3077.176419] RTL871X: cfg80211_rtw_scan(wlan0)
[ 3077.184951] RTL871X: _rtw_pwr_wakeup call ips_leave....
[ 3077.192880] RTL871X: ==>ips_leave cnts:2
[ 3077.200783] RTL871X: ===>  rtw_ips_pwr_up..............
[ 3077.209568] RTL871X: ===> ips_netdrv_open.........
[ 3077.220363] RTL871X:  power-on :REG_SYS_CLKR 0x09=0x30. REG_CR 0x100=0xea.
[ 3077.231150] RTL871X:  MAC has not been powered on yet.
[ 3077.252527] RTL871X: rtl8723b_FirmwareDownload(wlan0) tmp_ps=0
[ 3077.263731] RTL871X: rtl8723b_FirmwareDownload fw: FW_NIC, size: 27324
[ 3077.280056] RTL871X: rtl8723b_FirmwareDownload: fw_ver=1d fw_subver=0000 sig=0x5301, Month=06, Date=05, Hour=10, Minute=58
[ 3077.310666] RTL871X: rtl8723b_FirmwareDownload(): Shift for fw header!
[ 3077.359973] RTL871X: polling_fwdl_chksum: Checksum report OK! (1, 0ms), REG_MCUFWDL:0x00060605
[ 3077.373163] RTL871X: _8051Reset8723: Finish
[ 3077.405874] RTL871X: _FWFreeToGo: Polling FW ready OK! (171, 30ms), REG_MCUFWDL:0x000606c6
[ 3077.417765] RTL871X: FWDL success. write_fw:1, 90ms
[ 3077.426527] RTL871X:  <=== rtl8723b_FirmwareDownload()
[ 3077.433994] RTL871X: fw download ok!
[ 3078.498909] RTL871X: ===>phy_SwChnl8723B: Channel = 1
[ 3078.513641] RTL871X: RTW_ADAPTIVITY_EN_AUTO, chplan:0x20, Regulation:0,0
[ 3078.526002] RTL871X: RTW_ADAPTIVITY_MODE_NORMAL
[ 3078.551447] RTL871X: pDM_Odm TxPowerTrackControl = 1
[ 3078.922929] RTL871X: PHY_IQCalibrate_8723B =>path:A  Restore RX IQK result failed
[ 3079.644190] RTL871X: rtl8723bu_hal_init in 2430ms
[ 3079.655539] RTL871X: #### hw_var_set_opmode() -5238 iface_type(0) mode = 2 ####
[ 3079.670029] RTL871X: ===>phy_SwChnl8723B: Channel = 1
[ 3079.685133] RTL871X: Using the default RF gain.
[ 3079.694166] RTL871X: rx C2H_PACKET, ID=11, seq=0, len=7
[ 3079.703913] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3079.713371] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3079.722164] RTL871X: SetHwRegWithBuf8723B len=9
[ 3079.726963] RTL871X: <===  rtw_ips_pwr_up.............. in 2520ms
[ 3079.740775] RTL871X: nolinked power save leave
[ 3079.749461] RTL871X: ==> ips_leave.....LED(0x00e08282)...
[ 3079.761157] RTL871X: rx C2H_PACKET, ID=11, seq=1, len=7
[ 3079.771015] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3079.780480] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3079.789385] RTL871X: rx C2H_PACKET, ID=11, seq=2, len=7
[ 3079.799083] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3079.808514] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3079.831918] RTL871X: SetHwRegWithBuf8723B len=9
[ 3079.840131] RTL871X: SetHwRegWithBuf8723B len=9
[ 3079.971072] RTL871X: rx C2H_PACKET, ID=11, seq=3, len=7
[ 3079.980844] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3079.990332] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3079.999240] RTL871X: rx C2H_PACKET, ID=11, seq=4, len=7
[ 3080.008938] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3080.018372] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3080.028264] RTL871X: SetHwRegWithBuf8723B len=9
[ 3080.036812] RTL871X: SetHwRegWithBuf8723B len=9
[ 3080.051815] RTL871X: rx C2H_PACKET, ID=9, seq=5, len=7
[ 3080.061668] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3080.071111] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3080.084618] RTL871X: rx C2H_PACKET, ID=9, seq=6, len=7
[ 3080.094318] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3080.104182] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3080.116539] RTL871X: ===>phy_SwChnl8723B: Channel = 1
[ 3080.147363] RTL871X: SetHwRegWithBuf8723B len=9
[ 3080.158033] RTL871X: rx C2H_PACKET, ID=11, seq=7, len=7
[ 3080.168219] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3080.178048] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3080.187360] RTL871X: rx C2H_PACKET, ID=11, seq=8, len=7
[ 3080.197370] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3080.206829] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3080.359928] RTL871X: SetHwRegWithBuf8723B len=9
[ 3080.368740] RTL871X: rx C2H_PACKET, ID=11, seq=9, len=7
[ 3080.379048] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3080.388905] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3080.398075] RTL871X: rx C2H_PACKET, ID=11, seq=10, len=7
[ 3080.408080] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3080.417737] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3080.429269] RTL871X: rx C2H_PACKET, ID=11, seq=11, len=7
[ 3080.439222] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3080.448804] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3080.458042] RTL871X: rx C2H_PACKET, ID=11, seq=12, len=7
[ 3080.467843] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3080.477472] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3080.629777] RTL871X: SetHwRegWithBuf8723B len=9
[ 3080.638594] RTL871X: rx C2H_PACKET, ID=11, seq=13, len=7
[ 3080.648546] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3080.658050] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3080.667186] RTL871X: rx C2H_PACKET, ID=11, seq=14, len=7
[ 3080.677090] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3080.686580] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3080.695988] RTL871X: SetHwRegWithBuf8723B len=9
[ 3080.707997] RTL871X: ===>phy_SwChnl8723B: Channel = 2
[ 3080.721944] RTL871X: SetHwRegWithBuf8723B len=9
[ 3080.730474] RTL871X: SetHwRegWithBuf8723B len=9
[ 3080.738804] RTL871X: SetHwRegWithBuf8723B len=9
[ 3080.747052] RTL871X: SetHwRegWithBuf8723B len=9
[ 3080.755197] RTL871X: SetHwRegWithBuf8723B len=9
[ 3080.763270] RTL871X: SetHwRegWithBuf8723B len=9
[ 3080.821865] RTL871X: ===>phy_SwChnl8723B: Channel = 3
[ 3080.931866] RTL871X: ===>phy_SwChnl8723B: Channel = 4
[ 3081.041997] RTL871X: ===>phy_SwChnl8723B: Channel = 5
[ 3081.151870] RTL871X: ===>phy_SwChnl8723B: Channel = 6
[ 3081.261875] RTL871X: ===>phy_SwChnl8723B: Channel = 7
[ 3081.371874] RTL871X: ===>phy_SwChnl8723B: Channel = 8
[ 3081.481870] RTL871X: ===>phy_SwChnl8723B: Channel = 9
[ 3081.591952] RTL871X: ===>phy_SwChnl8723B: Channel = 10
[ 3081.706701] RTL871X: ===>phy_SwChnl8723B: Channel = 11
[ 3081.719592] RTL871X: IsBtDisabled=0, IsBtControlLps=0
[ 3081.821954] RTL871X: ===>phy_SwChnl8723B: Channel = 12
[ 3081.931952] RTL871X: ===>phy_SwChnl8723B: Channel = 13
[ 3082.041868] RTL871X: ===>phy_SwChnl8723B: Channel = 1
[ 3082.060390] RTL871X: survey done event(39) band:0 for wlan0
[ 3082.070172] RTL871X: rx C2H_PACKET, ID=9, seq=15, len=7
[ 3082.079910] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3082.089606] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3082.098136] RTL871X: SetHwRegWithBuf8723B len=9
[ 3082.107950] RTL871X: rx C2H_PACKET, ID=11, seq=16, len=7
[ 3082.117900] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3082.127439] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3082.136582] RTL871X: rx C2H_PACKET, ID=11, seq=17, len=7
[ 3082.146481] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3082.156041] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3082.310726] RTL871X: rx C2H_PACKET, ID=11, seq=18, len=7
[ 3082.320628] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3082.330159] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3082.339131] RTL871X: rx C2H_PACKET, ID=11, seq=19, len=7
[ 3082.349033] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3082.358443] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3082.368321] RTL871X: rtw_indicate_scan_done(wlan0)
[ 3082.376940] RTL871X: SetHwRegWithBuf8723B len=9
[ 3082.385815] RTL871X: SetHwRegWithBuf8723B len=9
[ 3082.394327] RTL871X: SetHwRegWithBuf8723B len=9
[ 3082.402432] RTL871X: SetHwRegWithBuf8723B len=9
[ 3082.411210] RTL871X: ==>rtw_ps_processor .fw_state(8)
[ 3082.420866] RTL871X: ==>ips_enter cnts:3
[ 3082.427915] RTL871X: nolinked power save enter
[ 3082.437006] RTL871X: ===> rtw_ips_pwr_down...................
[ 3082.446208] RTL871X: ====> rtw_ips_dev_unload...
[ 3082.456474] RTL871X: usb_read_port_cancel
[ 3082.469065] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3082.487295] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3082.505542] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3082.523669] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3082.541919] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3082.560167] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3082.578419] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3082.596546] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3082.613965] RTL871X: usb_write_port_cancel
[ 3082.621400] RTL871X: ==> rtl8723bu_hal_deinit
[ 3082.628451] RTL871X: CardDisableRTL8723BU
[ 3082.656264] RTL871X: <=== rtw_ips_pwr_down..................... in 220ms
[ 3087.382985] RTL871X: cfg80211_rtw_scan(wlan0)
[ 3087.391418] RTL871X: _rtw_pwr_wakeup call ips_leave....
[ 3087.399315] RTL871X: ==>ips_leave cnts:3
[ 3087.407152] RTL871X: ===>  rtw_ips_pwr_up..............
[ 3087.415911] RTL871X: ===> ips_netdrv_open.........
[ 3087.426581] RTL871X:  power-on :REG_SYS_CLKR 0x09=0x30. REG_CR 0x100=0xea.
[ 3087.437315] RTL871X:  MAC has not been powered on yet.
[ 3087.457380] RTL871X: rtl8723b_FirmwareDownload(wlan0) tmp_ps=0
[ 3087.468775] RTL871X: rtl8723b_FirmwareDownload fw: FW_NIC, size: 27324
[ 3087.485292] RTL871X: rtl8723b_FirmwareDownload: fw_ver=1d fw_subver=0000 sig=0x5301, Month=06, Date=05, Hour=10, Minute=58
[ 3087.501805] RTL871X: rtl8723b_FirmwareDownload(): Shift for fw header!
[ 3087.551072] RTL871X: polling_fwdl_chksum: Checksum report OK! (1, 0ms), REG_MCUFWDL:0x00060605
[ 3087.564390] RTL871X: _8051Reset8723: Finish
[ 3087.597099] RTL871X: _FWFreeToGo: Polling FW ready OK! (170, 30ms), REG_MCUFWDL:0x000606c6
[ 3087.609203] RTL871X: FWDL success. write_fw:1, 90ms
[ 3087.618144] RTL871X:  <=== rtl8723b_FirmwareDownload()
[ 3087.625766] RTL871X: fw download ok!
[ 3088.460258] RTL871X: ===>phy_SwChnl8723B: Channel = 1
[ 3088.475371] RTL871X: RTW_ADAPTIVITY_EN_AUTO, chplan:0x20, Regulation:0,0
[ 3088.487758] RTL871X: RTW_ADAPTIVITY_MODE_NORMAL
[ 3088.499166] RTL871X: pDM_Odm TxPowerTrackControl = 1
[ 3088.772904] RTL871X: PHY_IQCalibrate_8723B =>path:A  Restore RX IQK result failed
[ 3089.214162] RTL871X: rtl8723bu_hal_init in 1790ms
[ 3089.235898] RTL871X: #### hw_var_set_opmode() -5238 iface_type(0) mode = 2 ####
[ 3089.250263] RTL871X: ===>phy_SwChnl8723B: Channel = 1
[ 3089.265241] RTL871X: Using the default RF gain.
[ 3089.274986] RTL871X: <===  rtw_ips_pwr_up.............. in 1870ms
[ 3089.285177] RTL871X: rx C2H_PACKET, ID=11, seq=0, len=7
[ 3089.294878] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3089.304314] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3089.312966] RTL871X: SetHwRegWithBuf8723B len=9
[ 3089.320769] RTL871X: nolinked power save leave
[ 3089.329586] RTL871X: ==> ips_leave.....LED(0x00e08282)...
[ 3089.341772] RTL871X: rx C2H_PACKET, ID=11, seq=1, len=7
[ 3089.351536] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3089.361001] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3089.369918] RTL871X: rx C2H_PACKET, ID=11, seq=2, len=7
[ 3089.379577] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3089.388996] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3089.397333] RTL871X: SetHwRegWithBuf8723B len=9
[ 3089.406660] RTL871X: SetHwRegWithBuf8723B len=9
[ 3089.550802] RTL871X: rx C2H_PACKET, ID=11, seq=3, len=7
[ 3089.560566] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3089.570031] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3089.578926] RTL871X: rx C2H_PACKET, ID=11, seq=4, len=7
[ 3089.588604] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3089.598024] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3089.607296] RTL871X: SetHwRegWithBuf8723B len=9
[ 3089.615624] RTL871X: SetHwRegWithBuf8723B len=9
[ 3089.630608] RTL871X: rx C2H_PACKET, ID=9, seq=5, len=7
[ 3089.640268] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3089.649693] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3089.662834] RTL871X: rx C2H_PACKET, ID=9, seq=6, len=7
[ 3089.672663] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3089.682130] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3089.694271] RTL871X: ===>phy_SwChnl8723B: Channel = 1
[ 3089.709948] RTL871X: SetHwRegWithBuf8723B len=9
[ 3089.719911] RTL871X: rx C2H_PACKET, ID=11, seq=7, len=7
[ 3089.729893] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3089.739615] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3089.748768] RTL871X: rx C2H_PACKET, ID=11, seq=8, len=7
[ 3089.758471] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3089.768151] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3089.919775] RTL871X: SetHwRegWithBuf8723B len=9
[ 3089.928707] RTL871X: rx C2H_PACKET, ID=11, seq=9, len=7
[ 3089.938792] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3089.948442] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3089.957459] RTL871X: rx C2H_PACKET, ID=11, seq=10, len=7
[ 3089.967420] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3089.976950] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3089.988141] RTL871X: rx C2H_PACKET, ID=11, seq=11, len=7
[ 3089.998222] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3090.007778] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3090.017033] RTL871X: rx C2H_PACKET, ID=11, seq=12, len=7
[ 3090.026910] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3090.036870] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3090.189835] RTL871X: SetHwRegWithBuf8723B len=9
[ 3090.198820] RTL871X: rx C2H_PACKET, ID=11, seq=13, len=7
[ 3090.208845] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3090.218398] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3090.227510] RTL871X: rx C2H_PACKET, ID=11, seq=14, len=7
[ 3090.237466] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3090.247148] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3090.256640] RTL871X: SetHwRegWithBuf8723B len=9
[ 3090.268395] RTL871X: ===>phy_SwChnl8723B: Channel = 2
[ 3090.282489] RTL871X: SetHwRegWithBuf8723B len=9
[ 3090.291339] RTL871X: SetHwRegWithBuf8723B len=9
[ 3090.300203] RTL871X: SetHwRegWithBuf8723B len=9
[ 3090.308340] RTL871X: SetHwRegWithBuf8723B len=9
[ 3090.317019] RTL871X: SetHwRegWithBuf8723B len=9
[ 3090.325268] RTL871X: SetHwRegWithBuf8723B len=9
[ 3090.382143] RTL871X: ===>phy_SwChnl8723B: Channel = 3
[ 3090.492140] RTL871X: ===>phy_SwChnl8723B: Channel = 4
[ 3090.602398] RTL871X: ===>phy_SwChnl8723B: Channel = 5
[ 3090.712271] RTL871X: ===>phy_SwChnl8723B: Channel = 6
[ 3090.822275] RTL871X: ===>phy_SwChnl8723B: Channel = 7
[ 3090.932271] RTL871X: ===>phy_SwChnl8723B: Channel = 8
[ 3091.042525] RTL871X: ===>phy_SwChnl8723B: Channel = 9
[ 3091.152230] RTL871X: ===>phy_SwChnl8723B: Channel = 10
[ 3091.262222] RTL871X: ===>phy_SwChnl8723B: Channel = 11
[ 3091.271157] RTL871X: IsBtDisabled=0, IsBtControlLps=0
[ 3091.382219] RTL871X: ===>phy_SwChnl8723B: Channel = 12
[ 3091.502226] RTL871X: ===>phy_SwChnl8723B: Channel = 13
[ 3091.612135] RTL871X: ===>phy_SwChnl8723B: Channel = 1
[ 3091.630040] RTL871X: rx C2H_PACKET, ID=9, seq=15, len=7
[ 3091.639891] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3091.649747] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3091.660935] RTL871X: survey done event(3c) band:0 for wlan0
[ 3091.670352] RTL871X: SetHwRegWithBuf8723B len=9
[ 3091.680166] RTL871X: rx C2H_PACKET, ID=11, seq=16, len=7
[ 3091.689927] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3091.699576] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3091.708595] RTL871X: rx C2H_PACKET, ID=11, seq=17, len=7
[ 3091.718635] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3091.728243] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3091.880902] RTL871X: rx C2H_PACKET, ID=11, seq=18, len=7
[ 3091.890774] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3091.900592] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3091.909949] RTL871X: rx C2H_PACKET, ID=11, seq=19, len=7
[ 3091.919803] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3091.929809] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3091.941525] RTL871X: rtw_indicate_scan_done(wlan0)
[ 3091.950026] RTL871X: SetHwRegWithBuf8723B len=9
[ 3091.958476] RTL871X: SetHwRegWithBuf8723B len=9
[ 3091.967017] RTL871X: SetHwRegWithBuf8723B len=9
[ 3091.975625] RTL871X: SetHwRegWithBuf8723B len=9
[ 3091.984492] RTL871X: ==>rtw_ps_processor .fw_state(8)
[ 3091.994517] RTL871X: ==>ips_enter cnts:4
[ 3092.001872] RTL871X: nolinked power save enter
[ 3092.011091] RTL871X: ===> rtw_ips_pwr_down...................
[ 3092.020405] RTL871X: ====> rtw_ips_dev_unload...
[ 3092.032798] RTL871X: usb_read_port_cancel
[ 3092.055559] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3092.073680] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3092.091676] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3092.109672] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3092.127688] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3092.145816] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3092.163956] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3092.182051] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3092.194563] RTL871X: usb_write_port_cancel
[ 3092.201944] RTL871X: ==> rtl8723bu_hal_deinit
[ 3092.210781] RTL871X: CardDisableRTL8723BU
[ 3092.251166] RTL871X: <=== rtw_ips_pwr_down..................... in 230ms
[ 3096.956813] RTL871X: cfg80211_rtw_scan(wlan0)
[ 3096.965321] RTL871X: _rtw_pwr_wakeup call ips_leave....
[ 3096.973235] RTL871X: ==>ips_leave cnts:4
[ 3096.981127] RTL871X: ===>  rtw_ips_pwr_up..............
[ 3096.989902] RTL871X: ===> ips_netdrv_open.........
[ 3097.000724] RTL871X:  power-on :REG_SYS_CLKR 0x09=0x30. REG_CR 0x100=0xea.
[ 3097.024092] RTL871X:  MAC has not been powered on yet.
[ 3097.045020] RTL871X: rtl8723b_FirmwareDownload(wlan0) tmp_ps=0
[ 3097.056209] RTL871X: rtl8723b_FirmwareDownload fw: FW_NIC, size: 27324
[ 3097.072522] RTL871X: rtl8723b_FirmwareDownload: fw_ver=1d fw_subver=0000 sig=0x5301, Month=06, Date=05, Hour=10, Minute=58
[ 3097.088833] RTL871X: rtl8723b_FirmwareDownload(): Shift for fw header!
[ 3097.138088] RTL871X: polling_fwdl_chksum: Checksum report OK! (1, 0ms), REG_MCUFWDL:0x00060605
[ 3097.151280] RTL871X: _8051Reset8723: Finish
[ 3097.183995] RTL871X: _FWFreeToGo: Polling FW ready OK! (170, 30ms), REG_MCUFWDL:0x000606c6
[ 3097.196087] RTL871X: FWDL success. write_fw:1, 90ms
[ 3097.205022] RTL871X:  <=== rtl8723b_FirmwareDownload()
[ 3097.212635] RTL871X: fw download ok!
[ 3098.190903] RTL871X: ===>phy_SwChnl8723B: Channel = 1
[ 3098.205885] RTL871X: RTW_ADAPTIVITY_EN_AUTO, chplan:0x20, Regulation:0,0
[ 3098.218317] RTL871X: RTW_ADAPTIVITY_MODE_NORMAL
[ 3098.229949] RTL871X: pDM_Odm TxPowerTrackControl = 1
[ 3098.575413] RTL871X: PHY_IQCalibrate_8723B =>path:A  Restore RX IQK result failed
[ 3099.054304] RTL871X: rtl8723bu_hal_init in 2060ms
[ 3099.065785] RTL871X: #### hw_var_set_opmode() -5238 iface_type(0) mode = 2 ####
[ 3099.080397] RTL871X: ===>phy_SwChnl8723B: Channel = 1
[ 3099.095374] RTL871X: Using the default RF gain.
[ 3099.104286] RTL871X: rx C2H_PACKET, ID=11, seq=0, len=7
[ 3099.114010] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3099.123459] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3099.132187] RTL871X: SetHwRegWithBuf8723B len=9
[ 3099.136984] RTL871X: <===  rtw_ips_pwr_up.............. in 2150ms
[ 3099.150801] RTL871X: nolinked power save leave
[ 3099.159465] RTL871X: ==> ips_leave.....LED(0x00e08282)...
[ 3099.171021] RTL871X: rx C2H_PACKET, ID=11, seq=1, len=7
[ 3099.180855] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3099.190312] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3099.199215] RTL871X: rx C2H_PACKET, ID=11, seq=2, len=7
[ 3099.208904] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3099.218331] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3099.239867] RTL871X: SetHwRegWithBuf8723B len=9
[ 3099.247807] RTL871X: SetHwRegWithBuf8723B len=9
[ 3099.380798] RTL871X: rx C2H_PACKET, ID=11, seq=3, len=7
[ 3099.390573] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3099.400049] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3099.408949] RTL871X: rx C2H_PACKET, ID=11, seq=4, len=7
[ 3099.418638] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3099.428057] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3099.437101] RTL871X: SetHwRegWithBuf8723B len=9
[ 3099.445336] RTL871X: SetHwRegWithBuf8723B len=9
[ 3099.460387] RTL871X: rx C2H_PACKET, ID=9, seq=5, len=7
[ 3099.470219] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3099.479661] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3099.492794] RTL871X: rx C2H_PACKET, ID=9, seq=6, len=7
[ 3099.502653] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3099.512344] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3099.524784] RTL871X: ===>phy_SwChnl8723B: Channel = 1
[ 3099.553599] RTL871X: SetHwRegWithBuf8723B len=9
[ 3099.564275] RTL871X: rx C2H_PACKET, ID=11, seq=7, len=7
[ 3099.574419] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3099.584135] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3099.593093] RTL871X: rx C2H_PACKET, ID=11, seq=8, len=7
[ 3099.603065] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3099.612514] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3099.769912] RTL871X: SetHwRegWithBuf8723B len=9
[ 3099.778711] RTL871X: rx C2H_PACKET, ID=11, seq=9, len=7
[ 3099.788671] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3099.798123] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3099.807259] RTL871X: rx C2H_PACKET, ID=11, seq=10, len=7
[ 3099.817531] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3099.826993] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3099.838529] RTL871X: rx C2H_PACKET, ID=11, seq=11, len=7
[ 3099.848730] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3099.858308] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3099.867531] RTL871X: rx C2H_PACKET, ID=11, seq=12, len=7
[ 3099.877515] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3099.886964] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3100.040133] RTL871X: SetHwRegWithBuf8723B len=9
[ 3100.049257] RTL871X: rx C2H_PACKET, ID=11, seq=13, len=7
[ 3100.059329] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3100.068982] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3100.078205] RTL871X: rx C2H_PACKET, ID=11, seq=14, len=7
[ 3100.088182] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3100.097821] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3100.107707] RTL871X: SetHwRegWithBuf8723B len=9
[ 3100.119920] RTL871X: ===>phy_SwChnl8723B: Channel = 2
[ 3100.133904] RTL871X: SetHwRegWithBuf8723B len=9
[ 3100.142620] RTL871X: SetHwRegWithBuf8723B len=9
[ 3100.151553] RTL871X: SetHwRegWithBuf8723B len=9
[ 3100.159836] RTL871X: SetHwRegWithBuf8723B len=9
[ 3100.167851] RTL871X: SetHwRegWithBuf8723B len=9
[ 3100.176620] RTL871X: SetHwRegWithBuf8723B len=9
[ 3100.232527] RTL871X: ===>phy_SwChnl8723B: Channel = 3
[ 3100.342530] RTL871X: ===>phy_SwChnl8723B: Channel = 4
[ 3100.452535] RTL871X: ===>phy_SwChnl8723B: Channel = 5
[ 3100.562534] RTL871X: ===>phy_SwChnl8723B: Channel = 6
[ 3100.672532] RTL871X: ===>phy_SwChnl8723B: Channel = 7
[ 3100.782535] RTL871X: ===>phy_SwChnl8723B: Channel = 8
[ 3100.892529] RTL871X: ===>phy_SwChnl8723B: Channel = 9
[ 3101.002489] RTL871X: ===>phy_SwChnl8723B: Channel = 10
[ 3101.112618] RTL871X: ===>phy_SwChnl8723B: Channel = 11
[ 3101.129626] RTL871X: IsBtDisabled=0, IsBtControlLps=0
[ 3101.144692] RTL871X: rx C2H_PACKET, ID=9, seq=15, len=7
[ 3101.154366] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3101.163952] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3101.173489] RTL871X: SetHwRegWithBuf8723B len=9
[ 3101.183235] RTL871X: rx C2H_PACKET, ID=11, seq=16, len=7
[ 3101.193175] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3101.202654] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3101.211790] RTL871X: rx C2H_PACKET, ID=11, seq=17, len=7
[ 3101.221575] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3101.231004] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3101.389808] RTL871X: SetHwRegWithBuf8723B len=9
[ 3101.398656] RTL871X: rx C2H_PACKET, ID=11, seq=18, len=7
[ 3101.408479] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3101.417915] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3101.426925] RTL871X: rx C2H_PACKET, ID=11, seq=19, len=7
[ 3101.436696] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3101.446123] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3101.467703] RTL871X: SetHwRegWithBuf8723B len=9
[ 3101.479868] RTL871X: ===>phy_SwChnl8723B: Channel = 12
[ 3101.493767] RTL871X: SetHwRegWithBuf8723B len=9
[ 3101.502044] RTL871X: SetHwRegWithBuf8723B len=9
[ 3101.592609] RTL871X: ===>phy_SwChnl8723B: Channel = 13
[ 3101.702403] RTL871X: ===>phy_SwChnl8723B: Channel = 1
[ 3101.721162] RTL871X: rx C2H_PACKET, ID=9, seq=20, len=7
[ 3101.730840] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3101.740527] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3101.751177] RTL871X: survey done event(3a) band:0 for wlan0
[ 3101.773869] RTL871X: SetHwRegWithBuf8723B len=9
[ 3101.784005] RTL871X: rx C2H_PACKET, ID=11, seq=21, len=7
[ 3101.794032] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3101.803715] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3101.812746] RTL871X: rx C2H_PACKET, ID=11, seq=22, len=7
[ 3101.822714] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3101.832350] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3101.991038] RTL871X: rx C2H_PACKET, ID=11, seq=23, len=7
[ 3102.001082] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3102.010578] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3102.020067] RTL871X: rx C2H_PACKET, ID=11, seq=24, len=7
[ 3102.030018] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3102.039463] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3102.050798] RTL871X: rtw_indicate_scan_done(wlan0)
[ 3102.059619] RTL871X: SetHwRegWithBuf8723B len=9
[ 3102.067983] RTL871X: SetHwRegWithBuf8723B len=9
[ 3102.090168] RTL871X: SetHwRegWithBuf8723B len=9
[ 3102.098270] RTL871X: SetHwRegWithBuf8723B len=9
[ 3102.108557] RTL871X: ==>rtw_ps_processor .fw_state(8)
[ 3102.118553] RTL871X: ==>ips_enter cnts:5
[ 3102.125629] RTL871X: nolinked power save enter
[ 3102.135064] RTL871X: ===> rtw_ips_pwr_down...................
[ 3102.144477] RTL871X: ====> rtw_ips_dev_unload...
[ 3102.157973] RTL871X: usb_read_port_cancel
[ 3102.170700] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3102.189191] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3102.207573] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3102.225932] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3102.244442] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3102.262815] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3102.281204] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3102.299563] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3102.312438] RTL871X: usb_write_port_cancel
[ 3102.320085] RTL871X: ==> rtl8723bu_hal_deinit
[ 3102.327150] RTL871X: CardDisableRTL8723BU
[ 3102.367804] RTL871X: <=== rtw_ips_pwr_down..................... in 230ms
[ 3107.066239] RTL871X: cfg80211_rtw_scan(wlan0)
[ 3107.074738] RTL871X: _rtw_pwr_wakeup call ips_leave....
[ 3107.082665] RTL871X: ==>ips_leave cnts:5
[ 3107.090563] RTL871X: ===>  rtw_ips_pwr_up..............
[ 3107.099348] RTL871X: ===> ips_netdrv_open.........
[ 3107.110242] RTL871X:  power-on :REG_SYS_CLKR 0x09=0x30. REG_CR 0x100=0xea.
[ 3107.121025] RTL871X:  MAC has not been powered on yet.
[ 3107.142405] RTL871X: rtl8723b_FirmwareDownload(wlan0) tmp_ps=0
[ 3107.153608] RTL871X: rtl8723b_FirmwareDownload fw: FW_NIC, size: 27324
[ 3107.169935] RTL871X: rtl8723b_FirmwareDownload: fw_ver=1d fw_subver=0000 sig=0x5301, Month=06, Date=05, Hour=10, Minute=58
[ 3107.186257] RTL871X: rtl8723b_FirmwareDownload(): Shift for fw header!
[ 3107.235722] RTL871X: polling_fwdl_chksum: Checksum report OK! (1, 0ms), REG_MCUFWDL:0x00060605
[ 3107.248787] RTL871X: _8051Reset8723: Finish
[ 3107.281498] RTL871X: _FWFreeToGo: Polling FW ready OK! (166, 30ms), REG_MCUFWDL:0x000606c6
[ 3107.293747] RTL871X: FWDL success. write_fw:1, 100ms
[ 3107.302785] RTL871X:  <=== rtl8723b_FirmwareDownload()
[ 3107.310430] RTL871X: fw download ok!
[ 3108.378788] RTL871X: ===>phy_SwChnl8723B: Channel = 1
[ 3108.394015] RTL871X: RTW_ADAPTIVITY_EN_AUTO, chplan:0x20, Regulation:0,0
[ 3108.406453] RTL871X: RTW_ADAPTIVITY_MODE_NORMAL
[ 3108.417813] RTL871X: pDM_Odm TxPowerTrackControl = 1
[ 3108.793047] RTL871X: PHY_IQCalibrate_8723B =>path:A  Restore RX IQK result failed
[ 3109.314186] RTL871X: rtl8723bu_hal_init in 2210ms
[ 3109.325673] RTL871X: #### hw_var_set_opmode() -5238 iface_type(0) mode = 2 ####
[ 3109.340405] RTL871X: ===>phy_SwChnl8723B: Channel = 1
[ 3109.355384] RTL871X: Using the default RF gain.
[ 3109.364409] RTL871X: rx C2H_PACKET, ID=11, seq=0, len=7
[ 3109.374153] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3109.383612] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3109.392399] RTL871X: SetHwRegWithBuf8723B len=9
[ 3109.397199] RTL871X: <===  rtw_ips_pwr_up.............. in 2300ms
[ 3109.411013] RTL871X: nolinked power save leave
[ 3109.419697] RTL871X: ==> ips_leave.....LED(0x00e08282)...
[ 3109.431541] RTL871X: rx C2H_PACKET, ID=11, seq=1, len=7
[ 3109.441324] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3109.450812] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3109.459719] RTL871X: rx C2H_PACKET, ID=11, seq=2, len=7
[ 3109.469419] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3109.478850] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3109.487954] RTL871X: SetHwRegWithBuf8723B len=9
[ 3109.496147] RTL871X: SetHwRegWithBuf8723B len=9
[ 3109.641068] RTL871X: rx C2H_PACKET, ID=11, seq=3, len=7
[ 3109.650844] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3109.660330] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3109.669236] RTL871X: rx C2H_PACKET, ID=11, seq=4, len=7
[ 3109.678932] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3109.688365] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3109.697518] RTL871X: SetHwRegWithBuf8723B len=9
[ 3109.705811] RTL871X: SetHwRegWithBuf8723B len=9
[ 3109.720949] RTL871X: rx C2H_PACKET, ID=9, seq=5, len=7
[ 3109.730801] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3109.740245] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3109.754185] RTL871X: rx C2H_PACKET, ID=9, seq=6, len=7
[ 3109.764761] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3109.774438] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3109.787790] RTL871X: ===>phy_SwChnl8723B: Channel = 1
[ 3109.803739] RTL871X: SetHwRegWithBuf8723B len=9
[ 3109.814406] RTL871X: rx C2H_PACKET, ID=11, seq=7, len=7
[ 3109.824693] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3109.834457] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3109.843535] RTL871X: rx C2H_PACKET, ID=11, seq=8, len=7
[ 3109.853357] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3109.863155] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3110.020049] RTL871X: SetHwRegWithBuf8723B len=9
[ 3110.028947] RTL871X: rx C2H_PACKET, ID=11, seq=9, len=7
[ 3110.038842] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3110.048500] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3110.057539] RTL871X: rx C2H_PACKET, ID=11, seq=10, len=7
[ 3110.067447] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3110.077340] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3110.089110] RTL871X: rx C2H_PACKET, ID=11, seq=11, len=7
[ 3110.099247] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3110.109033] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3110.118089] RTL871X: rx C2H_PACKET, ID=11, seq=12, len=7
[ 3110.128090] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3110.138067] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3110.290003] RTL871X: SetHwRegWithBuf8723B len=9
[ 3110.298997] RTL871X: rx C2H_PACKET, ID=11, seq=13, len=7
[ 3110.309078] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3110.318668] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3110.327702] RTL871X: rx C2H_PACKET, ID=11, seq=14, len=7
[ 3110.337603] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3110.347340] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3110.356847] RTL871X: SetHwRegWithBuf8723B len=9
[ 3110.369533] RTL871X: ===>phy_SwChnl8723B: Channel = 2
[ 3110.384034] RTL871X: SetHwRegWithBuf8723B len=9
[ 3110.393152] RTL871X: SetHwRegWithBuf8723B len=9
[ 3110.402102] RTL871X: SetHwRegWithBuf8723B len=9
[ 3110.410444] RTL871X: SetHwRegWithBuf8723B len=9
[ 3110.418457] RTL871X: SetHwRegWithBuf8723B len=9
[ 3110.426960] RTL871X: SetHwRegWithBuf8723B len=9
[ 3110.482401] RTL871X: ===>phy_SwChnl8723B: Channel = 3
[ 3110.612414] RTL871X: ===>phy_SwChnl8723B: Channel = 4
[ 3110.722668] RTL871X: ===>phy_SwChnl8723B: Channel = 5
[ 3110.832547] RTL871X: ===>phy_SwChnl8723B: Channel = 6
[ 3110.942666] RTL871X: ===>phy_SwChnl8723B: Channel = 7
[ 3111.052667] RTL871X: ===>phy_SwChnl8723B: Channel = 8
[ 3111.162552] RTL871X: ===>phy_SwChnl8723B: Channel = 9
[ 3111.272503] RTL871X: ===>phy_SwChnl8723B: Channel = 10
[ 3111.382754] RTL871X: ===>phy_SwChnl8723B: Channel = 11
[ 3111.391633] RTL871X: IsBtDisabled=0, IsBtControlLps=0
[ 3111.502624] RTL871X: ===>phy_SwChnl8723B: Channel = 12
[ 3111.612621] RTL871X: ===>phy_SwChnl8723B: Channel = 13
[ 3111.722403] RTL871X: ===>phy_SwChnl8723B: Channel = 1
[ 3111.756060] RTL871X: rx C2H_PACKET, ID=9, seq=15, len=7
[ 3111.766098] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3111.775597] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3111.786570] RTL871X: survey done event(34) band:0 for wlan0
[ 3111.796240] RTL871X: SetHwRegWithBuf8723B len=9
[ 3111.806379] RTL871X: rx C2H_PACKET, ID=11, seq=16, len=7
[ 3111.816417] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3111.826053] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3111.835091] RTL871X: rx C2H_PACKET, ID=11, seq=17, len=7
[ 3111.845087] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3111.854535] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3112.011173] RTL871X: rx C2H_PACKET, ID=11, seq=18, len=7
[ 3112.021223] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3112.030943] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3112.039990] RTL871X: rx C2H_PACKET, ID=11, seq=19, len=7
[ 3112.049968] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3112.059639] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3112.086070] RTL871X: rtw_indicate_scan_done(wlan0)
[ 3112.095449] RTL871X: SetHwRegWithBuf8723B len=9
[ 3112.104201] RTL871X: SetHwRegWithBuf8723B len=9
[ 3112.113000] RTL871X: SetHwRegWithBuf8723B len=9
[ 3112.121336] RTL871X: SetHwRegWithBuf8723B len=9
[ 3112.130536] RTL871X: ==>rtw_ps_processor .fw_state(8)
[ 3112.140787] RTL871X: ==>ips_enter cnts:6
[ 3112.147860] RTL871X: nolinked power save enter
[ 3112.157263] RTL871X: ===> rtw_ips_pwr_down...................
[ 3112.166719] RTL871X: ====> rtw_ips_dev_unload...
[ 3112.181237] RTL871X: usb_read_port_cancel
[ 3112.193686] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3112.212322] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3112.230820] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3112.249319] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3112.267835] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3112.286321] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3112.304823] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3112.323318] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3112.336243] RTL871X: usb_write_port_cancel
[ 3112.343930] RTL871X: ==> rtl8723bu_hal_deinit
[ 3112.351370] RTL871X: CardDisableRTL8723BU
[ 3112.413307] RTL871X: <=== rtw_ips_pwr_down..................... in 260ms
[ 3112.707745] RTL871X: _rtw_pwr_wakeup call ips_leave....
[ 3112.715779] RTL871X: ==>ips_leave cnts:6
[ 3112.723685] RTL871X: ===>  rtw_ips_pwr_up..............
[ 3112.732489] RTL871X: ===> ips_netdrv_open.........
[ 3112.743379] RTL871X:  power-on :REG_SYS_CLKR 0x09=0x30. REG_CR 0x100=0xea.
[ 3112.754501] RTL871X:  MAC has not been powered on yet.
[ 3112.776153] RTL871X: rtl8723b_FirmwareDownload(wlan0) tmp_ps=0
[ 3112.787678] RTL871X: rtl8723b_FirmwareDownload fw: FW_NIC, size: 27324
[ 3112.804331] RTL871X: rtl8723b_FirmwareDownload: fw_ver=1d fw_subver=0000 sig=0x5301, Month=06, Date=05, Hour=10, Minute=58
[ 3112.821108] RTL871X: rtl8723b_FirmwareDownload(): Shift for fw header!
[ 3112.870966] RTL871X: polling_fwdl_chksum: Checksum report OK! (1, 0ms), REG_MCUFWDL:0x00060605
[ 3112.884663] RTL871X: _8051Reset8723: Finish
[ 3112.917379] RTL871X: _FWFreeToGo: Polling FW ready OK! (167, 30ms), REG_MCUFWDL:0x000606c6
[ 3112.929892] RTL871X: FWDL success. write_fw:1, 100ms
[ 3112.938695] RTL871X:  <=== rtl8723b_FirmwareDownload()
[ 3112.946660] RTL871X: fw download ok!
[ 3114.028777] RTL871X: ===>phy_SwChnl8723B: Channel = 1
[ 3114.044272] RTL871X: RTW_ADAPTIVITY_EN_AUTO, chplan:0x20, Regulation:0,0
[ 3114.056707] RTL871X: RTW_ADAPTIVITY_MODE_NORMAL
[ 3114.068188] RTL871X: pDM_Odm TxPowerTrackControl = 1
[ 3114.442923] RTL871X: PHY_IQCalibrate_8723B =>path:A  Restore RX IQK result failed
[ 3114.964144] RTL871X: rtl8723bu_hal_init in 2220ms
[ 3114.975618] RTL871X: #### hw_var_set_opmode() -5238 iface_type(0) mode = 2 ####
[ 3114.989622] RTL871X: ===>phy_SwChnl8723B: Channel = 1
[ 3115.004342] RTL871X: Using the default RF gain.
[ 3115.013923] RTL871X: <===  rtw_ips_pwr_up.............. in 2290ms
[ 3115.024061] RTL871X: rx C2H_PACKET, ID=11, seq=0, len=7
[ 3115.033733] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3115.043143] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3115.051629] RTL871X: SetHwRegWithBuf8723B len=9
[ 3115.059401] RTL871X: nolinked power save leave
[ 3115.068093] RTL871X: ==> ips_leave.....LED(0x00e08282)...
[ 3115.079601] RTL871X: rx C2H_PACKET, ID=11, seq=1, len=7
[ 3115.089328] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3115.098754] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3115.107641] RTL871X: rx C2H_PACKET, ID=11, seq=2, len=7
[ 3115.117299] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3115.126694] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3115.134996] RTL871X: SetHwRegWithBuf8723B len=9
[ 3115.143707] RTL871X: SetHwRegWithBuf8723B len=9
[ 3115.280751] RTL871X: rx C2H_PACKET, ID=11, seq=3, len=7
[ 3115.290476] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3115.299904] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3115.308783] RTL871X: rx C2H_PACKET, ID=11, seq=4, len=7
[ 3115.318442] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3115.327837] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3115.336626] RTL871X: SetHwRegWithBuf8723B len=9
[ 3115.344758] RTL871X: SetHwRegWithBuf8723B len=9
[ 3115.357240] RTL871X: HW_VAR_BASIC_RATE: 0x15f -> 0x15f -> 0x15f
[ 3115.367119] RTL871X: rx C2H_PACKET, ID=9, seq=5, len=7
[ 3115.376701] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3115.386107] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3115.389417] RTL871X: SetHwRegWithBuf8723B len=9
[ 3115.402770] RTL871X: -871x_drv - drv_close, bup=1
[ 3115.411584] RTL871X: rx C2H_PACKET, ID=11, seq=6, len=7
[ 3115.421267] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3115.430681] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3115.439556] RTL871X: rx C2H_PACKET, ID=11, seq=7, len=7
[ 3115.449220] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3115.458626] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3115.610654] RTL871X: rx C2H_PACKET, ID=11, seq=8, len=7
[ 3115.620391] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3115.629828] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3115.638708] RTL871X: rx C2H_PACKET, ID=11, seq=9, len=7
[ 3115.648386] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3115.657794] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3115.666950] RTL871X: SetHwRegWithBuf8723B len=9
[ 3115.674897] RTL871X: SetHwRegWithBuf8723B len=9
[ 3115.683125] RTL871X: SetHwRegWithBuf8723B len=9
[ 3115.693514] RTL871X: SetHwRegWithBuf8723B len=9
[ 3117.009623] RTL871X: IsBtDisabled=0, IsBtControlLps=0
[ 3119.009620] RTL871X: IsBtDisabled=0, IsBtControlLps=0
[ 3119.027033] RTL871X: rx C2H_PACKET, ID=9, seq=10, len=7
[ 3119.036852] RTL871X: +rtl8723bu_c2h_packet_handler() length=9
[ 3119.046466] RTL871X: -rtl8723bu_c2h_packet_handler()
[ 3119.056905] RTL871X: ==>rtw_ps_processor .fw_state(8)
[ 3119.066622] RTL871X: ==>ips_enter cnts:7
[ 3119.080502] RTL871X: nolinked power save enter
[ 3119.089377] RTL871X: ===> rtw_ips_pwr_down...................
[ 3119.098614] RTL871X: ====> rtw_ips_dev_unload...
[ 3119.109638] RTL871X: usb_read_port_cancel
[ 3119.122045] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3119.140297] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3119.158425] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3119.176556] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3119.194797] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3119.212925] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3119.231053] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)
[ 3119.249322] RTL871X: usb_read_port_complete()-1119: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0)

fix incompatible pointer type for kernel 4.1.x

--- a/os_dep/ioctl_cfg80211.c
+++ b/os_dep/ioctl_cfg80211.c
@@ -3672,7 +3672,7 @@ static int
        #else
                char *name,
        #endif
-       #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,2,0))
+       #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0))
                unsigned char name_assign_type,
        #endif
                enum nl80211_iftype type, u32 *flags, struct vif_params *params)
@@ -4095,7 +4095,7 @@ static struct sta_info *rtw_sta_info_get_by_idx(const int idx, struct sta_priv *
 }
 
 #if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 16, 0)) || \
-    (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0))
+    (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 0))
 static int     cfg80211_rtw_dump_station(struct wiphy *wiphy, struct net_device *ndev,
                               int idx, u8 *mac, struct station_info *sinfo)
 #else

Wifi bandwith drops when Bluetooth is used to stream sound in A2DP

Dear lwfinger,

I have a question about the Wifi/BT coexistence performance.

My use case: Stream a song from a music streaming service by Wifi and play it on a Bluetooth speaker

I used iperf to check the Wifi bandwith:

When there is no sound streamed to the Bluetooth speaker: 1,5 Mbit/s
When there is sound streamed to the Bluetooth speaker: 300kbit/s

Is there anything possible to optimize that?

Thanks for your help

Can't scan wifi networks

sudo iwlist scan
wlp0s20u3i2  No scan results

I can't scan wifi networks, but

nmcli con up id my-wifi

work good with prewiously added profile for my network.

P.S. I try to disable/enable -DCONFIG_CONCURRENT_MODE, but scan don't work.

commenting out concurrent mode breaks build.

The following happens if I follow the instructions for compiling

CC [M] /root/Public/rtl8723bu/hal/rtl8723b_rf6052.o CC [M] /root/Public/rtl8723bu/hal/rtl8723b_dm.o CC [M] /root/Public/rtl8723bu/hal/rtl8723b_rxdesc.o CC [M] /root/Public/rtl8723bu/hal/rtl8723b_cmd.o gcc-4.6: internal compiler error: Segmentation fault (program as) Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions. make[4]: *** [/root/Public/rtl8723bu/hal/rtl8723b_cmd.o] Error 4 make[3]: *** [_module_/root/Public/rtl8723bu] Error 2 make[2]: *** [sub-make] Error 2 make[1]: *** [all] Error 2 make[1]: Leaving directory/usr/src/linux-headers-3.2.0-4-amd64'
make: *** [modules] Error 2
`

implicit declaration of function ‘rtw_resume_process’

Want to compile the driver at a odroid c1 and get the error : implicit declaration of function ‘rtw_resume_process’

make ARCH=arm CROSS_COMPILE= -C /lib/modules/3.10.104/build M=/root/rtl8723bu modules make[1]: Entering directory '/lib/modules/3.10.104/build' CC [M] /root/rtl8723bu/core/rtw_cmd.o CC [M] /root/rtl8723bu/core/rtw_security.o CC [M] /root/rtl8723bu/core/rtw_debug.o CC [M] /root/rtl8723bu/core/rtw_io.o CC [M] /root/rtl8723bu/core/rtw_ioctl_query.o CC [M] /root/rtl8723bu/core/rtw_ioctl_set.o CC [M] /root/rtl8723bu/core/rtw_ieee80211.o CC [M] /root/rtl8723bu/core/rtw_mlme.o CC [M] /root/rtl8723bu/core/rtw_mlme_ext.o CC [M] /root/rtl8723bu/core/rtw_wlan_util.o CC [M] /root/rtl8723bu/core/rtw_vht.o CC [M] /root/rtl8723bu/core/rtw_pwrctrl.o /rtl8723bu/core/rtw_pwrctrl.c: In function ‘rtw_late_resume’: /rtl8723bu/core/rtw_pwrctrl.c:2127:3: error: implicit declaration of function ‘rtw_resume_process’ [-Werror=implicit-function-declaration]
please can you help me?

backtrace dump when joining WPA with rtl8723bu

Hello Larry
I think the work you have done to supply the ported driver is fantastic but I am having some issues when joining a WPA network.
My system is using a 3.14.47 kernel configured to give all the appropriate drivers to support the rtl8723bu. I have built the driver and it brings up the card beautifully and I can scan, detect without problems. Connecting to an unprotected network is working well but when connecting to a protected network there is a stack dump

[ 52.664277] ------------[ cut here ]------------
[ 52.669379] WARNING: CPU: 0 PID: 668 at net/wireless/sme.c:655 __cfg80211_connect_result+0x348/0x3a4 cfg80211
[ 52.680149] Modules linked in: btusb(O) 8723bu(O) bluetooth cfg80211 inv_mpu6050 c_can_platform c_can industrialio_triggered_buffer kfifo_buf can_dev industrialio option 6lowpan_iphc usb_wwan
[ 52.698080] CPU: 0 PID: 668 Comm: kworker/u2:2 Tainted: G O 3.14.47-dirty #4
[ 52.706391] Workqueue: cfg80211 cfg80211_event_work [cfg80211]
[ 52.712513] Backtrace:
[ 52.715087] from
[ 52.723069] r6:0000028f r5:00000009 r4:00000000 r3:c06f854c
[ 52.729032] from
[ 52.736607] from
[ 52.745092] from
[ 52.754295] r8:00000001 r7:ddb80000 r6:00000000 r5:00000000 r4:ddc8be00
[ 52.761442] from [](__cfg80211_connect_result+0x348/0x3a4 [cfg80211])
[ 52.772498] [](__cfg80211_connect_result [cfg80211]) from [](cfg80211_process_wdev_events+0x158/0x15c [cfg80211])
[ 52.785303] r10:00100100 r9:ddc8ec0c r8:00200200 r7:ddc8be60 r6:ddc8be20 r5:ddc8be00
[ 52.793530] r4:ddc8ec00
[ 52.796221] [](cfg80211_process_wdev_events [cfg80211]) from [](cfg80211_process_rdev_events+0x40/0x8c [cfg80211])
[ 52.809067] r10:00000000 r9:ddae2000 r8:00000000 r7:dd870900 r6:dd86ca00 r5:ddc61c38
[ 52.817289] r4:ddc8be00
[ 52.819974] [](cfg80211_process_rdev_events [cfg80211]) from [](cfg80211_event_work+0x1c/0x24 [cfg80211])
[ 52.831998] r5:ddc61cb8 r4:ddc61cb8
[ 52.835772] [](cfg80211_event_work [cfg80211]) from
[ 52.845796] r4:ddac8080 r3:bf0bec30
[ 52.849556] from
[ 52.858122] r10:c0721cdf r9:dd86ca00 r8:00000001 r7:ddae2000 r6:ddac8098 r5:dd86ca10
[ 52.866378] r4:ddac8080
[ 52.869086] from
[ 52.876645] r10:00000000 r9:00000000 r8:00000000 r7:c00557bc r6:ddac8080 r5:ddacd600
[ 52.884908] r4:00000000
[ 52.887583] from
[ 52.895141] r7:00000000 r6:00000000 r5:c005b418 r4:ddacd600
[ 52.901089] ---[ end trace b49df6b01bd39533 ]---

The issue seems to be around the area of bss in sme.c in the kernel
if (WARN_ON(!bss))
return;

And I think it may be linked to a warning that is generated when compiling the rtl8723bu driver
/board-support/rtl8723bu-master/os_dep/ioctl_linux.c: In function translate_scan:
/board-support/rtl8723bu-master/os_dep/ioctl_linux.c:798:1: warning: the frame size of 1160 bytes is larger than 1024 bytes [-Wframe-larger-than=]

That function is relying on the stack to return the bss structure instead of allocating memory and returning the pointer.

Has this issue been seen on any of the other drivers, maybe the pci version ?

Any help to track this issue down is appreciated.

Once the backtrace has happened I am connected and can obtain an ip address, and I can see the mac is registered on the access point so there is network just the "knowledge" of the SSID and connection is lost due to the error.

Kind Regards
Marc

rtl8723bu in odroidxu3

Hi,
I try to install driver in odroid xu3 and i got these error message

"odroid@odroid:$ cd rtl8723bu
odroid@odroid:
/rtl8723bu$ make
make: Warning: File Makefile' has modification time 9.6e+07 s in the future make ARCH=arm CROSS_COMPILE= -C /lib/modules/3.10.69+/build M=/home/odroid/rtl87 23bu modules make: *** /lib/modules/3.10.69+/build: No such file or directory. Stop. make: *** [modules] Error 2 odroid@odroid:~/rtl8723bu$ sudo make install [sudo] password for odroid: make: Warning: FileMakefile' has modification time 9.6e+07 s in the future
install -p -m 644 8723bu.ko /lib/modules/3.10.69+/kernel/drivers/net/wireless/
install: cannot stat ‘8723bu.ko’: No such file or directory
make: *** [install] Error 1"

I use ubuntu 14.04 and 3.10.69+,
Do you have any idea to fix that problem ?

RTL871X: ERROR rtw_cmd_thread: DriverStopped(0) SurpriseRemoved(1) break at line 452

Could you give me some advices?
this module that with a usb hub cannot work on raspberry pi ,but can work on X86 Linux PC.
https://wholesaler.alibaba.com/product-detail/Sale-Hot-Realtek-chip-8723bu-Combo_60498416094.html?spm=a2700.7724857.0.0.KfZu8a

but another usb module works both on raspberry pi and x86 pc(http://en.comfast.com.cn/product/item-202.html)
`
pi@raspberrypi:~ $ dmesg | grep rtl
[ 7.867635] Bluetooth: hci0: rtl: examining hci_ver=06 hci_rev=000b lmp_ver=06 lmp_subver=8723
[ 7.867683] Bluetooth: hci0: rtl: loading rtl_bt/rtl8723b_fw.bin
[ 9.414529] RTL871X: rtl8723bu v4.3.6.11_12942.20141204_BTCOEX20140507-4E40
[ 9.414571] RTL871X: rtl8723bu BT-Coex version = BTCOEX20140507-4E40
[ 9.649064] usbcore: registered new interface driver rtl8723bu
pi@raspberrypi:~ $ dmesg | grep RTL
[ 9.414529] RTL871X: rtl8723bu v4.3.6.11_12942.20141204_BTCOEX20140507-4E40
[ 9.414571] RTL871X: rtl8723bu BT-Coex version = BTCOEX20140507-4E40
[ 13.182269] RTL871X: ERROR rtw_cmd_thread: DriverStopped(0) SurpriseRemoved(1) break at line 452

pi@raspberrypi:~/lwfinger/rtl8723bu $ lsmod
Module Size Used by
bnep 10340 2
8723bu 856298 0
joydev 9024 0
hid_logitech_hidpp 10382 0
evdev 11396 3
btusb 27628 0
btrtl 3667 1 btusb
btintel 6167 1 btusb
cfg80211 427817 1 8723bu
btbcm 5929 1 btusb
bluetooth 326067 24 bnep,btbcm,btrtl,btusb,btintel
rfkill 16018 4 cfg80211,bluetooth
hid_logitech_dj 10016 0
snd_bcm2835 20511 0
snd_pcm 75890 1 snd_bcm2835
snd_timer 19160 1 snd_pcm
snd 51908 3 snd_bcm2835,snd_timer,snd_pcm
bcm2835_gpiomem 3040 0
ir_lirc_codec 4863 0
ir_xmp_decoder 2903 0
lirc_dev 8310 1 ir_lirc_codec
ir_mce_kbd_decoder 3921 0
ir_sharp_decoder 2177 0
bcm2835_wdt 3225 0
ir_sony_decoder 2175 0
ir_sanyo_decoder 2433 0
ir_jvc_decoder 2173 0
ir_rc6_decoder 2813 0
ir_rc5_decoder 2493 0
ir_nec_decoder 2621 0
rc_rc6_mce 1319 0
uio_pdrv_genirq 3164 0
gpio_ir_recv 3148 0
uio 8000 1 uio_pdrv_genirq
rc_core 16468 14 ir_sharp_decoder,ir_xmp_decoder,lirc_dev,ir_lirc_codec,ir_rc5_decoder,ir_nec_decoder,ir_sony_decoder,gpio_ir_recv,ir_mce_kbd_decoder,ir_jvc_decoder,ir_rc6_decoder,ir_sanyo_decoder,rc_rc6_mce
i2c_dev 5859 0
fuse 83461 1
ipv6 347473 36

pi@raspberrypi:~ $ modinfo 8723bu
filename: /lib/modules/4.4.16-v7+/kernel/drivers/net/wireless/8723bu.ko
version: v4.3.6.11_12942.20141204_BTCOEX20140507-4E40
author: Realtek Semiconductor Corp.
description: Realtek Wireless Lan Driver
license: GPL
srcversion: 677B75B92AF5C337E8BA94A
alias: usb:v0BDApB720d_dc_dsc_dp_icFFiscFFipFFin*
depends: cfg80211
vermagic: 4.4.16-v7+ SMP mod_unload modversions ARMv7
parm: rtw_ips_mode:The default IPS mode (int)
parm: rtw_usb_rxagg_mode:int
parm: rtw_btcoex_enable:Enable BT co-existence mechanism (int)
parm: rtw_ant_num:Antenna number setting (int)
parm: rtw_qos_opt_enable:int
parm: ifname:The default name to allocate for first interface (charp)
parm: if2name:The default name to allocate for second interface (charp)
parm: rtw_initmac:charp
parm: rtw_channel_plan:int
parm: rtw_special_rf_path:int
parm: rtw_chip_version:int
parm: rtw_rfintfs:int
parm: rtw_lbkmode:int
parm: rtw_network_mode:int
parm: rtw_channel:int
parm: rtw_mp_mode:int
parm: rtw_wmm_enable:int
parm: rtw_vrtl_carrier_sense:int
parm: rtw_vcs_type:int
parm: rtw_busy_thresh:int
parm: rtw_ht_enable:int
parm: rtw_bw_mode:int
parm: rtw_ampdu_enable:int
parm: rtw_rx_stbc:int
parm: rtw_ampdu_amsdu:int
parm: rtw_lowrate_two_xmit:int
parm: rtw_rf_config:int
parm: rtw_power_mgnt:int
parm: rtw_smart_ps:int
parm: rtw_low_power:int
parm: rtw_wifi_spec:int
parm: rtw_antdiv_cfg:int
parm: rtw_antdiv_type:int
parm: rtw_enusbss:int
parm: rtw_hwpdn_mode:int
parm: rtw_hwpwrp_detect:int
parm: rtw_hw_wps_pbc:int
parm: rtw_max_roaming_times:The max roaming times to try (uint)
parm: rtw_mc2u_disable:int
parm: rtw_80211d:Enable 802.11d mechanism (int)
parm: rtw_notch_filter:0:Disable, 1:Enable, 2:Enable only for P2P (uint)
parm: rtw_hiq_filter:0:allow all, 1:allow special, 2:deny all (uint)
parm: rtw_adaptivity_en:0:disable, 1:enable, 2:auto (uint)
parm: rtw_adaptivity_mode:0:normal, 1:carrier sense (uint)
parm: rtw_tx_pwr_lmt_enable:0:Disable, 1:Enable, 2: Depend on efuse (int)
parm: rtw_tx_pwr_by_rate:0:Disable, 1:Enable, 2: Depend on efuse (int)
parm: rtw_phy_file_path:The path of phy parameter (charp)
parm: rtw_load_phy_file:PHY File Bit Map (int)
parm: rtw_decrypt_phy_file:Enable Decrypt PHY File (int)

pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.4.16-v7+ #1 SMP Fri Aug 5 02:04:52 UTC 2016 armv7l GNU/Linux
`

Thank you very much!

Makefile Typo?

Hi, I just tried to build and install the driver, but it failed at the "make install" step.
The error message claimed "no such file or directory" and when taking a closer look I noticed there was a dot in the filepath where there (I assume) shouldn't be a dot.
I changed the Makefile and now everything went fine.

The line in the Makefile reads:
cp -f rtl8723b_fw.bin $(FW_DIR)./rtl8723b_fw.bin
This was added in commit da63138 just recently.
I changed the line in my Makefile to:
cp -f rtl8723b_fw.bin $(FW_DIR)/rtl8723b_fw.bin

Am I right to assume this was a typo or is the error somewhere else on my end?

我的wifi搜不到网络

没装这个驱动搜不到网络。装了之后还是不行。我用的是gnome。网卡是rtl8723b.
My wifi device still can't find networks.The hardwareID is B720.
Please,help me.

Cannot install in Lubuntu

In Ubuntu I was able to install the driver. However, I chosed to install Lubuntu for resource reason.

When giving the command make I receive the following message:

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.8.0-41-generic/build M=/home/dago/rtl8723bu modules
make[1]: Verzeichnis „/usr/src/linux-headers-4.8.0-41-generic“ wird betreten
arch/x86/Makefile:140: CONFIG_X86_X32 enabled but no binutils support
make[1]: gcc: Befehl nicht gefunden
make[1]: gcc: Befehl nicht gefunden
make[1]: gcc: Befehl nicht gefunden
make[1]: gcc: Befehl nicht gefunden
make[1]: gcc: Befehl nicht gefunden
CC [M] /home/dago/rtl8723bu/core/rtw_cmd.o
/bin/sh: 1: gcc: not found
scripts/Makefile.build:289: die Regel für Ziel „/home/dago/rtl8723bu/core/rtw_cmd.o“ scheiterte
make[2]: *** [/home/dago/rtl8723bu/core/rtw_cmd.o] Fehler 127
Makefile:1491: die Regel für Ziel „module/home/dago/rtl8723bu“ scheiterte
make[1]: *** [module/home/dago/rtl8723bu] Fehler 2
make[1]: Verzeichnis „/usr/src/linux-headers-4.8.0-41-generic“ wird verlassen
Makefile:321: die Regel für Ziel „modules“ scheiterte
make: *** [modules] Fehler 2

binutils is installed

I need help, thanks in advance.

Can't unplug the wireless adaptor

Hello,

Thank you for developing and maintaining the driver of the USB wireless adaptor.

I tried my wireless adaptor with raspberry pi 2b (Ubuntu 16.10 armhf installed)
And of course, I can use it as AP and connect other wireless network.

But I found it's strange after I un-pluged it. I can still see the interface from ifconfig.

And I tried my wireless adaptor with my PC (Ubuntu 16.04 amd64 installed) And I can
reproduce this problem too.

I use the newest code to compile the driver module,

And here is my other information:

Raspberry pi:

$ uname -a
Linux RaspberryPi-2 4.6.1-v7+ #6 SMP Sat Aug 27 16:57:43 CST 2016 armv7l armv7l armv7l GNU/Linux
$lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu Yakkety Yak (development branch)
Release:    16.10
Codename:   yakkety

PC:

$ uname -a
Linux B85i-Ubuntu 4.4.0-34-generic #53-Ubuntu SMP Wed Jul 27 16:06:39 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.1 LTS
Release:    16.04
Codename:   xenial

On my Raspberry pi

Here is part of dmesg output:

[  848.043406] RTL871X: rtw_ndev_init(wlan0)
[  848.045656] usbcore: registered new interface driver rtl8723bu
[  848.045677] RTL871X: module init ret=0
[  848.079239] rtl8723bu 1-1.4:1.2 wlx40a5ef0ea956: renamed from wlan0
[  848.951553] RTL871X: RTW_ADAPTIVITY_EN_AUTO, chplan:0x20, Regulation:0,0
[  848.951589] RTL871X: RTW_ADAPTIVITY_MODE_NORMAL
[  849.538021] IPv6: ADDRCONF(NETDEV_UP): wlx40a5ef0ea956: link is not ready
[  851.532426] RTL871X: nolinked power save enter
[  854.776184] usb 1-1.4: USB disconnect, device number 5
[ 1080.610323] INFO: task kworker/0:1:36 blocked for more than 120 seconds.
[ 1080.617266]       Tainted: G           O    4.6.1-v7+ #6
[ 1080.622785] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 1080.630916] kworker/0:1     D 806d04cc     0    36      2 0x00000000
[ 1080.630966] Workqueue: usb_hub_wq hub_event
[ 1080.631007] [<806d04cc>] (__schedule) from [<806d0a4c>] (schedule+0x50/0xa8)
[ 1080.631214] [<806d0a4c>] (schedule) from [<7f1bcb74>] (wiphy_unregister+0x1e4/0x31c [cfg80211])
[ 1080.631641] [<7f1bcb74>] (wiphy_unregister [cfg80211]) from [<7f2d751c>] (rtw_wdev_unregister+0x54/0x58 [8723bu])
[ 1080.631975] [<7f2d751c>] (rtw_wdev_unregister [8723bu]) from [<7f2c3f70>] (rtw_unregister_netdevs+0x48/0x74 [8723bu])
[ 1080.632294] [<7f2c3f70>] (rtw_unregister_netdevs [8723bu]) from [<7f2c5524>] (rtw_dev_remove+0x2c/0x84 [8723bu])
[ 1080.632468] [<7f2c5524>] (rtw_dev_remove [8723bu]) from [<8052ddb4>] (usb_unbind_interface+0x8c/0x298)
[ 1080.632498] [<8052ddb4>] (usb_unbind_interface) from [<804bb828>] (__device_release_driver+0x98/0x12c)
[ 1080.632525] [<804bb828>] (__device_release_driver) from [<804bb8e8>] (device_release_driver+0x2c/0x38)
[ 1080.632551] [<804bb8e8>] (device_release_driver) from [<804bafd8>] (bus_remove_device+0xe8/0x114)
[ 1080.632575] [<804bafd8>] (bus_remove_device) from [<804b7c34>] (device_del+0x11c/0x220)
[ 1080.632598] [<804b7c34>] (device_del) from [<8052b3d8>] (usb_disable_device+0xb0/0x1f4)
[ 1080.632623] [<8052b3d8>] (usb_disable_device) from [<80522634>] (usb_disconnect+0x84/0x238)
[ 1080.632650] [<80522634>] (usb_disconnect) from [<80524164>] (hub_event+0x60c/0x10d0)
[ 1080.632679] [<80524164>] (hub_event) from [<80135fbc>] (process_one_work+0x170/0x508)
[ 1080.632707] [<80135fbc>] (process_one_work) from [<801363b4>] (worker_thread+0x60/0x5c8)
[ 1080.632732] [<801363b4>] (worker_thread) from [<8013c3f8>] (kthread+0xec/0x104)
[ 1080.632758] [<8013c3f8>] (kthread) from [<80107f68>] (ret_from_fork+0x14/0x2c)
[ 1200.630311] INFO: task kworker/0:1:36 blocked for more than 120 seconds.
[ 1200.637232]       Tainted: G           O    4.6.1-v7+ #6
[ 1200.642753] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 1200.650857] kworker/0:1     D 806d04cc     0    36      2 0x00000000
[ 1200.650906] Workqueue: usb_hub_wq hub_event
[ 1200.650950] [<806d04cc>] (__schedule) from [<806d0a4c>] (schedule+0x50/0xa8)
[ 1200.651137] [<806d0a4c>] (schedule) from [<7f1bcb74>] (wiphy_unregister+0x1e4/0x31c [cfg80211])
[ 1200.651542] [<7f1bcb74>] (wiphy_unregister [cfg80211]) from [<7f2d751c>] (rtw_wdev_unregister+0x54/0x58 [8723bu])
[ 1200.651868] [<7f2d751c>] (rtw_wdev_unregister [8723bu]) from [<7f2c3f70>] (rtw_unregister_netdevs+0x48/0x74 [8723bu])
[ 1200.652186] [<7f2c3f70>] (rtw_unregister_netdevs [8723bu]) from [<7f2c5524>] (rtw_dev_remove+0x2c/0x84 [8723bu])
[ 1200.652360] [<7f2c5524>] (rtw_dev_remove [8723bu]) from [<8052ddb4>] (usb_unbind_interface+0x8c/0x298)
[ 1200.652390] [<8052ddb4>] (usb_unbind_interface) from [<804bb828>] (__device_release_driver+0x98/0x12c)
[ 1200.652418] [<804bb828>] (__device_release_driver) from [<804bb8e8>] (device_release_driver+0x2c/0x38)
[ 1200.652443] [<804bb8e8>] (device_release_driver) from [<804bafd8>] (bus_remove_device+0xe8/0x114)
[ 1200.652467] [<804bafd8>] (bus_remove_device) from [<804b7c34>] (device_del+0x11c/0x220)
[ 1200.652490] [<804b7c34>] (device_del) from [<8052b3d8>] (usb_disable_device+0xb0/0x1f4)
[ 1200.652515] [<8052b3d8>] (usb_disable_device) from [<80522634>] (usb_disconnect+0x84/0x238)
[ 1200.652543] [<80522634>] (usb_disconnect) from [<80524164>] (hub_event+0x60c/0x10d0)
[ 1200.652571] [<80524164>] (hub_event) from [<80135fbc>] (process_one_work+0x170/0x508)
[ 1200.652603] [<80135fbc>] (process_one_work) from [<801363b4>] (worker_thread+0x60/0x5c8)
[ 1200.652628] [<801363b4>] (worker_thread) from [<8013c3f8>] (kthread+0xec/0x104)
[ 1200.652653] [<8013c3f8>] (kthread) from [<80107f68>] (ret_from_fork+0x14/0x2c)

Here is my PC

dmesg output:

[10055.252990] usb 3-2: new high-speed USB device number 5 using xhci_hcd
[10055.381542] usb 3-2: New USB device found, idVendor=0bda, idProduct=b720
[10055.381543] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[10055.381545] usb 3-2: Product: 802.11n WLAN Adapter
[10055.381546] usb 3-2: Manufacturer: Realtek
[10055.381546] usb 3-2: SerialNumber: 00e04c000001
[10055.384307] Bluetooth: hci1: rtl: examining hci_ver=06 hci_rev=000b lmp_ver=06 lmp_subver=8723
[10055.384309] Bluetooth: hci1: rtl: loading rtl_bt/rtl8723b_fw.bin
[10055.405310] Bluetooth: hci1: rom_version status=0 version=1
[10121.730759] usb 3-2: USB disconnect, device number 5
[10186.315341] usb 3-2: new high-speed USB device number 6 using xhci_hcd
[10186.443902] usb 3-2: New USB device found, idVendor=0bda, idProduct=b720
[10186.443904] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[10186.443905] usb 3-2: Product: 802.11n WLAN Adapter
[10186.443905] usb 3-2: Manufacturer: Realtek
[10186.443906] usb 3-2: SerialNumber: 00e04c000001
[10186.445565] Bluetooth: hci1: rtl: examining hci_ver=06 hci_rev=000b lmp_ver=06 lmp_subver=8723
[10186.445567] Bluetooth: hci1: rtl: loading rtl_bt/rtl8723b_fw.bin
[10186.446550] Bluetooth: hci1: rom_version status=0 version=1
[10186.466834] RTL871X: module init start
[10186.466836] RTL871X: rtl8723bu v4.3.6.11_12942.20141204_BTCOEX20140507-4E40
[10186.466836] RTL871X: rtl8723bu BT-Coex version = BTCOEX20140507-4E40
[10186.514998] RTL871X: rtw_ndev_init(wlan0)
[10186.515220] usbcore: registered new interface driver rtl8723bu
[10186.515222] RTL871X: module init ret=0
[10186.530003] rtl8723bu 3-2:1.2 wlx40a5ef0ea956: renamed from wlan0
[10186.558590] IPv6: ADDRCONF(NETDEV_UP): wlx40a5ef0ea956: link is not ready
[10187.177361] RTL871X: RTW_ADAPTIVITY_EN_AUTO, chplan:0x20, Regulation:0,0
[10187.177363] RTL871X: RTW_ADAPTIVITY_MODE_NORMAL
[10188.024267] IPv6: ADDRCONF(NETDEV_UP): wlx40a5ef0ea956: link is not ready
[10188.057265] IPv6: ADDRCONF(NETDEV_UP): wlx40a5ef0ea956: link is not ready
[10190.764671] RTL871X: nolinked power save enter
[10192.329645] RTL871X: RTW_ADAPTIVITY_EN_AUTO, chplan:0x20, Regulation:0,0
[10192.329650] RTL871X: RTW_ADAPTIVITY_MODE_NORMAL
[10192.920649] RTL871X: nolinked power save leave
[10194.740650] RTL871X: nolinked power save enter
[10215.331593] RTL871X: RTW_ADAPTIVITY_EN_AUTO, chplan:0x20, Regulation:0,0
[10215.331597] RTL871X: RTW_ADAPTIVITY_MODE_NORMAL
[10215.902435] RTL871X: nolinked power save leave
[10217.722281] RTL871X: nolinked power save enter
[10227.888129] usb 3-2: USB disconnect, device number 6
[10247.767524] RTL871X: nolinked power save leave
[10290.774405] RTL871X: nolinked power save leave
[10343.775589] RTL871X: nolinked power save leave
[10406.777445] RTL871X: nolinked power save leave
[10440.858406] INFO: task kworker/4:0:29 blocked for more than 120 seconds.
[10440.858409]       Tainted: G           OE   4.4.0-34-generic #53-Ubuntu
[10440.858410] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[10440.858411] kworker/4:0     D ffff88021481fa48     0    29      2 0x00000000
[10440.858417] Workqueue: usb_hub_wq hub_event
[10440.858418]  ffff88021481fa48 0000000182000185 ffff8801f3838dc0 ffff880214f86e00
[10440.858419]  ffff880214820000 ffff8800ce8a2800 0000000000000001 ffff8800ce8a2890
[10440.858420]  ffff8801c6710000 ffff88021481fa60 ffffffff81829e15 ffff8800ce8a2ac0
[10440.858421] Call Trace:
[10440.858426]  [<ffffffff81829e15>] schedule+0x35/0x80
[10440.858446]  [<ffffffffc0496cd9>] wiphy_unregister+0x259/0x360 [cfg80211]
[10440.858448]  [<ffffffff810c3ca0>] ? wake_atomic_t_function+0x60/0x60
[10440.858464]  [<ffffffffc091a235>] rtw_wdev_unregister+0x4b/0x51 [8723bu]
[10440.858473]  [<ffffffffc09066ea>] rtw_unregister_netdevs+0x47/0x7a [8723bu]
[10440.858483]  [<ffffffffc0907b24>] rtw_dev_remove+0x25/0x77 [8723bu]
[10440.858484]  [<ffffffff8161d146>] usb_unbind_interface+0x86/0x280
[10440.858486]  [<ffffffff81553a11>] __device_release_driver+0xa1/0x150
[10440.858487]  [<ffffffff81553ae3>] device_release_driver+0x23/0x30
[10440.858488]  [<ffffffff81553131>] bus_remove_device+0x101/0x170
[10440.858489]  [<ffffffff8154f289>] device_del+0x139/0x260
[10440.858491]  [<ffffffff81621a6f>] ? usb_remove_ep_devs+0x1f/0x30
[10440.858492]  [<ffffffff8161a909>] usb_disable_device+0x89/0x270
[10440.858493]  [<ffffffff81610242>] usb_disconnect+0x92/0x280
[10440.858494]  [<ffffffff81611e12>] hub_port_connect+0x82/0x9c0
[10440.858496]  [<ffffffff81612e21>] hub_event+0x6d1/0xb10
[10440.858497]  [<ffffffff810b9415>] ? put_prev_entity+0x35/0x7d0
[10440.858499]  [<ffffffff8109a2c5>] process_one_work+0x165/0x480
[10440.858500]  [<ffffffff8109a62b>] worker_thread+0x4b/0x4c0
[10440.858501]  [<ffffffff8109a5e0>] ? process_one_work+0x480/0x480
[10440.858502]  [<ffffffff810a0808>] kthread+0xd8/0xf0
[10440.858503]  [<ffffffff810a0730>] ? kthread_create_on_node+0x1e0/0x1e0
[10440.858504]  [<ffffffff8182e28f>] ret_from_fork+0x3f/0x70
[10440.858505]  [<ffffffff810a0730>] ? kthread_create_on_node+0x1e0/0x1e0
[10440.858548] INFO: task colord-sane:8779 blocked for more than 120 seconds.
[10440.858549]       Tainted: G           OE   4.4.0-34-generic #53-Ubuntu
[10440.858550] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[10440.858550] colord-sane     D ffff8801f1d33d78     0  8779   3116 0x00000000
[10440.858552]  ffff8801f1d33d78 ffff8800abe8b700 ffff8802152b6040 ffff8800abe8b700
[10440.858553]  ffff8801f1d34000 ffff8800d63050fc ffff8800abe8b700 00000000ffffffff
[10440.858554]  ffff8800d6305100 ffff8801f1d33d90 ffffffff81829e15 ffff8800d63050f8
[10440.858555] Call Trace:
[10440.858557]  [<ffffffff81829e15>] schedule+0x35/0x80
[10440.858558]  [<ffffffff8182a0be>] schedule_preempt_disabled+0xe/0x10
[10440.858559]  [<ffffffff8182bcf9>] __mutex_lock_slowpath+0xb9/0x130
[10440.858560]  [<ffffffff8182bd8f>] mutex_lock+0x1f/0x30
[10440.858561]  [<ffffffff81620f07>] read_descriptors+0x37/0x100
[10440.858564]  [<ffffffff8128cfda>] sysfs_kf_bin_read+0x4a/0x70
[10440.858565]  [<ffffffff8128c54b>] kernfs_fop_read+0xab/0x160
[10440.858568]  [<ffffffff8120cc48>] __vfs_read+0x18/0x40
[10440.858569]  [<ffffffff8120d216>] vfs_read+0x86/0x130
[10440.858570]  [<ffffffff8120df65>] SyS_read+0x55/0xc0
[10440.858571]  [<ffffffff8182def2>] entry_SYSCALL_64_fastpath+0x16/0x71
[10469.786138] RTL871X: nolinked power save leave
[10532.786640] RTL871X: nolinked power save leave
[10560.867058] INFO: task kworker/4:0:29 blocked for more than 120 seconds.
[10560.867060]       Tainted: G           OE   4.4.0-34-generic #53-Ubuntu
[10560.867061] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[10560.867062] kworker/4:0     D ffff88021481fa48     0    29      2 0x00000000
[10560.867068] Workqueue: usb_hub_wq hub_event
[10560.867069]  ffff88021481fa48 0000000182000185 ffff8801f3838dc0 ffff880214f86e00
[10560.867070]  ffff880214820000 ffff8800ce8a2800 0000000000000001 ffff8800ce8a2890
[10560.867071]  ffff8801c6710000 ffff88021481fa60 ffffffff81829e15 ffff8800ce8a2ac0
[10560.867072] Call Trace:
[10560.867076]  [<ffffffff81829e15>] schedule+0x35/0x80
[10560.867096]  [<ffffffffc0496cd9>] wiphy_unregister+0x259/0x360 [cfg80211]
[10560.867098]  [<ffffffff810c3ca0>] ? wake_atomic_t_function+0x60/0x60
[10560.867112]  [<ffffffffc091a235>] rtw_wdev_unregister+0x4b/0x51 [8723bu]
[10560.867121]  [<ffffffffc09066ea>] rtw_unregister_netdevs+0x47/0x7a [8723bu]
[10560.867130]  [<ffffffffc0907b24>] rtw_dev_remove+0x25/0x77 [8723bu]
[10560.867131]  [<ffffffff8161d146>] usb_unbind_interface+0x86/0x280
[10560.867133]  [<ffffffff81553a11>] __device_release_driver+0xa1/0x150
[10560.867134]  [<ffffffff81553ae3>] device_release_driver+0x23/0x30
[10560.867135]  [<ffffffff81553131>] bus_remove_device+0x101/0x170
[10560.867137]  [<ffffffff8154f289>] device_del+0x139/0x260
[10560.867138]  [<ffffffff81621a6f>] ? usb_remove_ep_devs+0x1f/0x30
[10560.867140]  [<ffffffff8161a909>] usb_disable_device+0x89/0x270
[10560.867141]  [<ffffffff81610242>] usb_disconnect+0x92/0x280
[10560.867142]  [<ffffffff81611e12>] hub_port_connect+0x82/0x9c0
[10560.867143]  [<ffffffff81612e21>] hub_event+0x6d1/0xb10
[10560.867144]  [<ffffffff810b9415>] ? put_prev_entity+0x35/0x7d0
[10560.867146]  [<ffffffff8109a2c5>] process_one_work+0x165/0x480
[10560.867147]  [<ffffffff8109a62b>] worker_thread+0x4b/0x4c0
[10560.867148]  [<ffffffff8109a5e0>] ? process_one_work+0x480/0x480
[10560.867149]  [<ffffffff810a0808>] kthread+0xd8/0xf0
[10560.867150]  [<ffffffff810a0730>] ? kthread_create_on_node+0x1e0/0x1e0
[10560.867151]  [<ffffffff8182e28f>] ret_from_fork+0x3f/0x70
[10560.867152]  [<ffffffff810a0730>] ? kthread_create_on_node+0x1e0/0x1e0
[10560.867198] INFO: task colord-sane:8779 blocked for more than 120 seconds.
[10560.867199]       Tainted: G           OE   4.4.0-34-generic #53-Ubuntu
[10560.867200] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[10560.867200] colord-sane     D ffff8801f1d33d78     0  8779   3116 0x00000000
[10560.867201]  ffff8801f1d33d78 ffff8800abe8b700 ffff8802152b6040 ffff8800abe8b700
[10560.867202]  ffff8801f1d34000 ffff8800d63050fc ffff8800abe8b700 00000000ffffffff
[10560.867203]  ffff8800d6305100 ffff8801f1d33d90 ffffffff81829e15 ffff8800d63050f8
[10560.867204] Call Trace:
[10560.867206]  [<ffffffff81829e15>] schedule+0x35/0x80
[10560.867207]  [<ffffffff8182a0be>] schedule_preempt_disabled+0xe/0x10
[10560.867208]  [<ffffffff8182bcf9>] __mutex_lock_slowpath+0xb9/0x130
[10560.867209]  [<ffffffff8182bd8f>] mutex_lock+0x1f/0x30
[10560.867210]  [<ffffffff81620f07>] read_descriptors+0x37/0x100
[10560.867213]  [<ffffffff8128cfda>] sysfs_kf_bin_read+0x4a/0x70
[10560.867214]  [<ffffffff8128c54b>] kernfs_fop_read+0xab/0x160
[10560.867216]  [<ffffffff8120cc48>] __vfs_read+0x18/0x40
[10560.867217]  [<ffffffff8120d216>] vfs_read+0x86/0x130
[10560.867218]  [<ffffffff8120df65>] SyS_read+0x55/0xc0
[10560.867219]  [<ffffffff8182def2>] entry_SYSCALL_64_fastpath+0x16/0x71
[10560.867221] INFO: task lsusb:8802 blocked for more than 120 seconds.
[10560.867222]       Tainted: G           OE   4.4.0-34-generic #53-Ubuntu
[10560.867222] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[10560.867222] lsusb           D ffff880086ccbd78     0  8802   7166 0x00000004
[10560.867223]  ffff880086ccbd78 ffff8801b4cad280 ffff8802152b3700 ffff8801b4cad280
[10560.867224]  ffff880086ccc000 ffff8800d63050fc ffff8801b4cad280 00000000ffffffff
[10560.867225]  ffff8800d6305100 ffff880086ccbd90 ffffffff81829e15 ffff8800d63050f8
[10560.867226] Call Trace:
[10560.867228]  [<ffffffff81829e15>] schedule+0x35/0x80
[10560.867229]  [<ffffffff8182a0be>] schedule_preempt_disabled+0xe/0x10
[10560.867229]  [<ffffffff8182bcf9>] __mutex_lock_slowpath+0xb9/0x130
[10560.867230]  [<ffffffff8182bd8f>] mutex_lock+0x1f/0x30
[10560.867231]  [<ffffffff81620f07>] read_descriptors+0x37/0x100
[10560.867233]  [<ffffffff8128cfda>] sysfs_kf_bin_read+0x4a/0x70
[10560.867234]  [<ffffffff8128c54b>] kernfs_fop_read+0xab/0x160
[10560.867235]  [<ffffffff8120cc48>] __vfs_read+0x18/0x40
[10560.867236]  [<ffffffff8120d216>] vfs_read+0x86/0x130
[10560.867237]  [<ffffffff8120df65>] SyS_read+0x55/0xc0
[10560.867238]  [<ffffffff8182def2>] entry_SYSCALL_64_fastpath+0x16/0x71
[10595.793254] RTL871X: nolinked power save leave
[10658.797213] RTL871X: nolinked power save leave
[10680.875593] INFO: task kworker/4:0:29 blocked for more than 120 seconds.
[10680.875602]       Tainted: G           OE   4.4.0-34-generic #53-Ubuntu
[10680.875604] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[10680.875608] kworker/4:0     D ffff88021481fa48     0    29      2 0x00000000
[10680.875625] Workqueue: usb_hub_wq hub_event
[10680.875629]  ffff88021481fa48 0000000182000185 ffff8801f3838dc0 ffff880214f86e00
[10680.875634]  ffff880214820000 ffff8800ce8a2800 0000000000000001 ffff8800ce8a2890
[10680.875639]  ffff8801c6710000 ffff88021481fa60 ffffffff81829e15 ffff8800ce8a2ac0
[10680.875644] Call Trace:
[10680.875658]  [<ffffffff81829e15>] schedule+0x35/0x80
[10680.875703]  [<ffffffffc0496cd9>] wiphy_unregister+0x259/0x360 [cfg80211]
[10680.875712]  [<ffffffff810c3ca0>] ? wake_atomic_t_function+0x60/0x60
[10680.875763]  [<ffffffffc091a235>] rtw_wdev_unregister+0x4b/0x51 [8723bu]
[10680.875807]  [<ffffffffc09066ea>] rtw_unregister_netdevs+0x47/0x7a [8723bu]
[10680.875850]  [<ffffffffc0907b24>] rtw_dev_remove+0x25/0x77 [8723bu]
[10680.875856]  [<ffffffff8161d146>] usb_unbind_interface+0x86/0x280
[10680.875863]  [<ffffffff81553a11>] __device_release_driver+0xa1/0x150
[10680.875868]  [<ffffffff81553ae3>] device_release_driver+0x23/0x30
[10680.875872]  [<ffffffff81553131>] bus_remove_device+0x101/0x170
[10680.875877]  [<ffffffff8154f289>] device_del+0x139/0x260
[10680.875882]  [<ffffffff81621a6f>] ? usb_remove_ep_devs+0x1f/0x30
[10680.875889]  [<ffffffff8161a909>] usb_disable_device+0x89/0x270
[10680.875894]  [<ffffffff81610242>] usb_disconnect+0x92/0x280
[10680.875899]  [<ffffffff81611e12>] hub_port_connect+0x82/0x9c0
[10680.875905]  [<ffffffff81612e21>] hub_event+0x6d1/0xb10
[10680.875909]  [<ffffffff810b9415>] ? put_prev_entity+0x35/0x7d0
[10680.875916]  [<ffffffff8109a2c5>] process_one_work+0x165/0x480
[10680.875921]  [<ffffffff8109a62b>] worker_thread+0x4b/0x4c0
[10680.875926]  [<ffffffff8109a5e0>] ? process_one_work+0x480/0x480
[10680.875931]  [<ffffffff810a0808>] kthread+0xd8/0xf0
[10680.875935]  [<ffffffff810a0730>] ? kthread_create_on_node+0x1e0/0x1e0
[10680.875940]  [<ffffffff8182e28f>] ret_from_fork+0x3f/0x70
[10680.875944]  [<ffffffff810a0730>] ? kthread_create_on_node+0x1e0/0x1e0
[10680.876030] INFO: task colord-sane:8779 blocked for more than 120 seconds.
[10680.876034]       Tainted: G           OE   4.4.0-34-generic #53-Ubuntu
[10680.876036] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[10680.876039] colord-sane     D ffff8801f1d33d78     0  8779   3116 0x00000000
[10680.876044]  ffff8801f1d33d78 ffff8800abe8b700 ffff8802152b6040 ffff8800abe8b700
[10680.876049]  ffff8801f1d34000 ffff8800d63050fc ffff8800abe8b700 00000000ffffffff
[10680.876054]  ffff8800d6305100 ffff8801f1d33d90 ffffffff81829e15 ffff8800d63050f8
[10680.876059] Call Trace:
[10680.876066]  [<ffffffff81829e15>] schedule+0x35/0x80
[10680.876072]  [<ffffffff8182a0be>] schedule_preempt_disabled+0xe/0x10
[10680.876076]  [<ffffffff8182bcf9>] __mutex_lock_slowpath+0xb9/0x130
[10680.876080]  [<ffffffff8182bd8f>] mutex_lock+0x1f/0x30
[10680.876085]  [<ffffffff81620f07>] read_descriptors+0x37/0x100
[10680.876094]  [<ffffffff8128cfda>] sysfs_kf_bin_read+0x4a/0x70
[10680.876099]  [<ffffffff8128c54b>] kernfs_fop_read+0xab/0x160
[10680.876107]  [<ffffffff8120cc48>] __vfs_read+0x18/0x40
[10680.876112]  [<ffffffff8120d216>] vfs_read+0x86/0x130
[10680.876118]  [<ffffffff8120df65>] SyS_read+0x55/0xc0
[10680.876123]  [<ffffffff8182def2>] entry_SYSCALL_64_fastpath+0x16/0x71
[10680.876129] INFO: task lsusb:8802 blocked for more than 120 seconds.
[10680.876132]       Tainted: G           OE   4.4.0-34-generic #53-Ubuntu
[10680.876134] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[10680.876136] lsusb           D ffff880086ccbd78     0  8802   7166 0x00000004
[10680.876141]  ffff880086ccbd78 ffff8801b4cad280 ffff8802152b3700 ffff8801b4cad280
[10680.876146]  ffff880086ccc000 ffff8800d63050fc ffff8801b4cad280 00000000ffffffff
[10680.876150]  ffff8800d6305100 ffff880086ccbd90 ffffffff81829e15 ffff8800d63050f8
[10680.876155] Call Trace:
[10680.876161]  [<ffffffff81829e15>] schedule+0x35/0x80
[10680.876166]  [<ffffffff8182a0be>] schedule_preempt_disabled+0xe/0x10
[10680.876170]  [<ffffffff8182bcf9>] __mutex_lock_slowpath+0xb9/0x130
[10680.876174]  [<ffffffff8182bd8f>] mutex_lock+0x1f/0x30
[10680.876179]  [<ffffffff81620f07>] read_descriptors+0x37/0x100
[10680.876185]  [<ffffffff8128cfda>] sysfs_kf_bin_read+0x4a/0x70
[10680.876190]  [<ffffffff8128c54b>] kernfs_fop_read+0xab/0x160
[10680.876196]  [<ffffffff8120cc48>] __vfs_read+0x18/0x40
[10680.876200]  [<ffffffff8120d216>] vfs_read+0x86/0x130
[10680.876206]  [<ffffffff8120df65>] SyS_read+0x55/0xc0
[10680.876211]  [<ffffffff8182def2>] entry_SYSCALL_64_fastpath+0x16/0x71
[10721.804852] RTL871X: nolinked power save leave
[10784.804330] RTL871X: nolinked power save leave
[10800.883911] INFO: task kworker/4:0:29 blocked for more than 120 seconds.
[10800.883913]       Tainted: G           OE   4.4.0-34-generic #53-Ubuntu
[10800.883914] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[10800.883915] kworker/4:0     D ffff88021481fa48     0    29      2 0x00000000
[10800.883921] Workqueue: usb_hub_wq hub_event
[10800.883922]  ffff88021481fa48 0000000182000185 ffff8801f3838dc0 ffff880214f86e00
[10800.883923]  ffff880214820000 ffff8800ce8a2800 0000000000000001 ffff8800ce8a2890
[10800.883924]  ffff8801c6710000 ffff88021481fa60 ffffffff81829e15 ffff8800ce8a2ac0
[10800.883926] Call Trace:
[10800.883930]  [<ffffffff81829e15>] schedule+0x35/0x80
[10800.883949]  [<ffffffffc0496cd9>] wiphy_unregister+0x259/0x360 [cfg80211]
[10800.883952]  [<ffffffff810c3ca0>] ? wake_atomic_t_function+0x60/0x60
[10800.883967]  [<ffffffffc091a235>] rtw_wdev_unregister+0x4b/0x51 [8723bu]
[10800.883976]  [<ffffffffc09066ea>] rtw_unregister_netdevs+0x47/0x7a [8723bu]
[10800.883985]  [<ffffffffc0907b24>] rtw_dev_remove+0x25/0x77 [8723bu]
[10800.883986]  [<ffffffff8161d146>] usb_unbind_interface+0x86/0x280
[10800.883988]  [<ffffffff81553a11>] __device_release_driver+0xa1/0x150
[10800.883989]  [<ffffffff81553ae3>] device_release_driver+0x23/0x30
[10800.883990]  [<ffffffff81553131>] bus_remove_device+0x101/0x170
[10800.883991]  [<ffffffff8154f289>] device_del+0x139/0x260
[10800.883992]  [<ffffffff81621a6f>] ? usb_remove_ep_devs+0x1f/0x30
[10800.883994]  [<ffffffff8161a909>] usb_disable_device+0x89/0x270
[10800.883995]  [<ffffffff81610242>] usb_disconnect+0x92/0x280
[10800.883996]  [<ffffffff81611e12>] hub_port_connect+0x82/0x9c0
[10800.883997]  [<ffffffff81612e21>] hub_event+0x6d1/0xb10
[10800.883998]  [<ffffffff810b9415>] ? put_prev_entity+0x35/0x7d0
[10800.884000]  [<ffffffff8109a2c5>] process_one_work+0x165/0x480
[10800.884001]  [<ffffffff8109a62b>] worker_thread+0x4b/0x4c0
[10800.884002]  [<ffffffff8109a5e0>] ? process_one_work+0x480/0x480
[10800.884003]  [<ffffffff810a0808>] kthread+0xd8/0xf0
[10800.884004]  [<ffffffff810a0730>] ? kthread_create_on_node+0x1e0/0x1e0
[10800.884005]  [<ffffffff8182e28f>] ret_from_fork+0x3f/0x70
[10800.884006]  [<ffffffff810a0730>] ? kthread_create_on_node+0x1e0/0x1e0
[10800.884044] INFO: task colord-sane:8779 blocked for more than 120 seconds.
[10800.884045]       Tainted: G           OE   4.4.0-34-generic #53-Ubuntu
[10800.884045] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[10800.884046] colord-sane     D ffff8801f1d33d78     0  8779   3116 0x00000000
[10800.884047]  ffff8801f1d33d78 ffff8800abe8b700 ffff8802152b6040 ffff8800abe8b700
[10800.884048]  ffff8801f1d34000 ffff8800d63050fc ffff8800abe8b700 00000000ffffffff
[10800.884049]  ffff8800d6305100 ffff8801f1d33d90 ffffffff81829e15 ffff8800d63050f8
[10800.884050] Call Trace:
[10800.884052]  [<ffffffff81829e15>] schedule+0x35/0x80
[10800.884053]  [<ffffffff8182a0be>] schedule_preempt_disabled+0xe/0x10
[10800.884054]  [<ffffffff8182bcf9>] __mutex_lock_slowpath+0xb9/0x130
[10800.884055]  [<ffffffff8182bd8f>] mutex_lock+0x1f/0x30
[10800.884056]  [<ffffffff81620f07>] read_descriptors+0x37/0x100
[10800.884058]  [<ffffffff8128cfda>] sysfs_kf_bin_read+0x4a/0x70
[10800.884059]  [<ffffffff8128c54b>] kernfs_fop_read+0xab/0x160
[10800.884062]  [<ffffffff8120cc48>] __vfs_read+0x18/0x40
[10800.884063]  [<ffffffff8120d216>] vfs_read+0x86/0x130
[10800.884064]  [<ffffffff8120df65>] SyS_read+0x55/0xc0
[10800.884066]  [<ffffffff8182def2>] entry_SYSCALL_64_fastpath+0x16/0x71
[10847.810604] RTL871X: nolinked power save leave
[10910.812713] RTL871X: nolinked power save leave
[10973.820691] RTL871X: nolinked power save leave
[11036.822200] RTL871X: nolinked power save leave
[11099.828881] RTL871X: nolinked power save leave

before plug in the usb wireless adaptor:

enp2s0    Link encap:Ethernet  HWaddr d8:cb:8a:13:83:7b  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

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

wlp3s0    Link encap:Ethernet  HWaddr 80:19:34:55:a8:48  
          inet addr:192.168.0.100  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::9d58:aa6:315b:c1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:49831 errors:0 dropped:0 overruns:0 frame:0
          TX packets:39772 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:24738371 (24.7 MB)  TX bytes:6800837 (6.8 MB)

after plug-in the usb wireless adaptor

ifconfig
enp2s0    Link encap:Ethernet  HWaddr d8:cb:8a:13:83:7b  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

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

wlp3s0    Link encap:Ethernet  HWaddr 80:19:34:55:a8:48  
          inet addr:192.168.0.100  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::9d58:aa6:315b:c1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:49856 errors:0 dropped:0 overruns:0 frame:0
          TX packets:39810 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:24740834 (24.7 MB)  TX bytes:6806956 (6.8 MB)

wlx40a5ef0ea956 Link encap:Ethernet  HWaddr 40:a5:ef:0e:a9:56  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:1 errors:0 dropped:1 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

and unplug it

enp2s0    Link encap:Ethernet  HWaddr d8:cb:8a:13:83:7b  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

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

wlp3s0    Link encap:Ethernet  HWaddr 80:19:34:55:a8:48  
          inet addr:192.168.0.100  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::9d58:aa6:315b:c1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:49923 errors:0 dropped:0 overruns:0 frame:0
          TX packets:39878 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:24758761 (24.7 MB)  TX bytes:6822221 (6.8 MB)

wlx40a5ef0ea956 Link encap:Ethernet  HWaddr 40:a5:ef:0e:a9:56  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:5 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

And It sill here.

And I can't run lsusb because it stucked and never return.

When enable `CONCURRENT_MODE`, The usb wifi run into a problem

Hello, It's me again.

Thanks again for your programming the device driver.

I got another problem here.

I compiled the driver from the newest source code, and I found two interface:

[  759.880608] usb 1-1.4: new high-speed USB device number 7 using dwc_otg
[  759.982108] usb 1-1.4: New USB device found, idVendor=0bda, idProduct=b720
[  759.982134] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  759.982151] usb 1-1.4: Product: 802.11n WLAN Adapter
[  759.982166] usb 1-1.4: Manufacturer: Realtek
[  759.982181] usb 1-1.4: SerialNumber: 00e04c000001
[  759.998857] Bluetooth: hci0: rtl: examining hci_ver=06 hci_rev=000b lmp_ver=06 lmp_subver=8723
[  759.998891] Bluetooth: hci0: rtl: loading rtl_bt/rtl8723b_fw.bin
[  760.001510] Bluetooth: hci0: rom_version status=0 version=1
[  760.203715] RTL871X: rtw_ndev_init(wlan0)
[  760.206575] RTL871X: rtw_ndev_init(wlan1)
[  760.897178] rtl8723bu 1-1.4:1.2 wlx40a5ef0ea956: renamed from wlan0
[  761.014393] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[  761.805467] RTL871X: RTW_ADAPTIVITY_EN_AUTO, chplan:0x20, Regulation:3,3
[  761.805507] RTL871X: RTW_ADAPTIVITY_MODE_NORMAL
[  762.565995] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[  762.572329] IPv6: ADDRCONF(NETDEV_UP): wlx40a5ef0ea956: link is not ready
[  762.591467] IPv6: ADDRCONF(NETDEV_UP): wlx40a5ef0ea956: link is not ready
[  762.782852] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[  762.804952] IPv6: ADDRCONF(NETDEV_UP): wlx40a5ef0ea956: link is not ready
[  764.433991] RTL871X: nolinked power save enter
~$ ifconfig
enxb827ebe94cd6: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::ba27:ebff:fee9:4cd6  prefixlen 64  scopeid 0x20<link>
        ether b8:27:eb:e9:4c:d6  txqueuelen 1000  (Ethernet)
        RX packets 3  bytes 567 (567.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 45  bytes 9366 (9.3 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<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 35  bytes 3026 (3.0 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 35  bytes 3026 (3.0 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan1: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 42:a5:ef:0e:a9:56  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 1  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlx40a5ef0ea956: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 40:a5:ef:0e:a9:56  txqueuelen 1000  (Ethernet)
        RX packets 1  bytes 0 (0.0 B)
        RX errors 0  dropped 97  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

I checkouted bc9e782 , recompiled the driver and had no this issue. Did a bug introduced by recent commit(s)??

I don't know why, maybe my usb wifi adaptor's problems ?

It's late now, I will add more information after I'm free.

Am I the only person run into this situation?

Association never completes

Hello,
I've build the driver for ARM6 (RasberryPi B) using kernel version 4.4.8. The driver builds and I can install with modprobe -v 8732bu. A wlan0 interface is created after the driver loads.
I want to use the wlan0 in STATION mode and when I run wpa_supplicant I get the follow message in /var/log/messages

[ 7065.078703] RTL871X: module init start
[ 7065.085668] RTL871X: rtl8723bu v4.3.6.11_12942.20141204_BTCOEX20140507-4E40
[ 7065.096066] RTL871X: rtl8723bu BT-Coex version = BTCOEX20140507-4E40
[ 7065.402971] RTL871X: rtw_ndev_init(wlan0)
[ 7065.420611] usbcore: registered new interface driver rtl8723bu
[ 7065.429826] RTL871X: module init ret=0
[ 7089.842289] RTL871X: RTW_ADAPTIVITY_EN_AUTO, chplan:0x20, Regulation:0,0
[ 7089.852520] RTL871X: RTW_ADAPTIVITY_MODE_NORMAL
[ 7090.676344] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 7092.908077] RTL871X: rtw_set_802_11_connect(wlan0) fw_state=0x00000008
[ 7093.039380] RTL871X: start auth
[ 7093.053562] RTL871X: auth success, start assoc
[ 7096.942611] RTL871X: nolinked power save enter
[ 7103.883784] RTL871X: RTW_ADAPTIVITY_EN_AUTO, chplan:0x20, Regulation:0,0
[ 7103.894090] RTL871X: RTW_ADAPTIVITY_MODE_NORMAL
[ 7104.605052] RTL871X: nolinked power save leave
[ 7106.837570] RTL871X: rtw_set_802_11_connect(wlan0) fw_state=0x00000008
[ 7106.966355] RTL871X: start auth
[ 7106.980490] RTL871X: auth success, start assoc
[ 7110.872988] RTL871X: nolinked power save enter
[ 7117.812215] RTL871X: RTW_ADAPTIVITY_EN_AUTO, chplan:0x20, Regulation:0,0
[ 7117.822562] RTL871X: RTW_ADAPTIVITY_MODE_NORMAL
[ 7118.585753] RTL871X: nolinked power save leave
[ 7120.823400] RTL871X: nolinked power save enter
[ 7127.674783] RTL871X: RTW_ADAPTIVITY_EN_AUTO, chplan:0x20, Regulation:0,0
[ 7127.685325] RTL871X: RTW_ADAPTIVITY_MODE_NORMAL
[ 7128.096725] RTL871X: nolinked power save leave
[ 7130.328180] RTL871X: rtw_set_802_11_connect(wlan0) fw_state=0x00000008
[ 7130.416899] RTL871X: start auth
[ 7130.433583] RTL871X: auth success, start assoc
[ 7134.363824] RTL871X: nolinked power save enter
[ 7141.304621] RTL871X: RTW_ADAPTIVITY_EN_AUTO, chplan:0x20, Regulation:0,0
[ 7141.315668] RTL871X: RTW_ADAPTIVITY_MODE_NORMAL
[ 7141.726533] RTL871X: nolinked power save leave
[ 7143.974079] RTL871X: nolinked power save enter
........ followed by repetitions of the above lines.....

The output shows 'start assoc' but the association it ever completes and consequently the wlan0 interface is never brought up.
Is there anything that I can do to overcome this problem? i.e. is there a driver parameter that I can set when 'modprobe-ing' the driver?

Thanks

Compilation not supported on GCC6

At least that's what this is caused by, as far as I'm aware.

from /root/build/rtl8723bu/core/rtw_cmd.c:22: include/linux/compiler-gcc.h:106:30: fatal error: linux/compiler-gcc6.h: No such file or directory #include gcc_header(__GNUC__) ^ compilation terminated. scripts/Makefile.build:308: recipe for target '/root/build/rtl8723bu/core/rtw_cmd.o' failed

Arch Linux ARM now uses GCC6 which means this module now unfortunately cannot be compiled on that platform.

porting to Mac OS X

sorry if this wrong place to ask but can you help me to port these codes for mac to get the drivers ready for mac os x

Need a way to determine antenna port when using single antenna

We have used the RTL8723BU on our board and have had some complaints about the transmit power of the module.
The driver is built as is from the lwfinger/rtl8723bu repository and all seems OK when in close proximity to the board.
Our system uses only a single antenna for the WiFi and BT.

We would like to know how to select the desired antenna as it seems like the default one being used is not RF0. We think the default mode is with antenna diversity.

Is there a way to actively select the antenna and to force it to single antenna mode ?

Thanks
Marc

how to build on beagle bone black

Hi,

I'm trying to build this on a BBB. I have cloned the repo, but trying to make it gives me an error:

root@beaglebone:~#git clone https://github.com/lwfinger/rtl8723bu.git
root@beaglebone:~#cd rtl8723bu
root@beaglebone:~/rtl8723bu# make
make ARCH=armv7l CROSS_COMPILE= -C /lib/modules/3.14.46-ti-r70/build M=/root/rtl8723bu modules
make[1]: Entering directory `/lib/modules/3.14.46-ti-r70/build'
make[1]: *** No rule to make target `modules'.  Stop.
make[1]: Leaving directory `/lib/modules/3.14.46-ti-r70/build'
make: *** [modules] Error 2
root@beaglebone:~/rtl8723bu#

What is the proper way to build this?

Setting up a WIFI AP via hostapd

Has anyone been successful with using this RTL8723bu driver to setup a WIFI access point via hostapd?

I can see the network from my client device, but every time it tries to connect, it fails with the following line in dmesg:

RTL871X: ap recv disassoc reason code(8)

This is the same no matter what client I use (Android phone, Windows PC, etc.)

This reason code maps to "Disassociated because sending station is leaving (or has left) BSS". Which doesn't make sense in this context as the phone is stationary with a strong signal. The module works fine as a WIFI client, just not as an AP.

At this point I'm not sure if it's an issue with the driver, hostapd, or some configuration setting somewhere.

Hostapd is using driver=rtl871xdrv

Compile errorn on kernel 4.3.4

Hi there,

recently I have updated my fedora 22 to kernel 4.3.4.200 now the driver could not be compiled with the following errors. Could You make a patch please.

Thanks in adwance:
Bence

CC [M] $/rtl8723bu/core/rtw_cmd.o
In file included from $/rtl8723bu/include/drv_types.h:65:0,
from $/rtl8723bu/core/rtw_cmd.c:22:
$/rtl8723bu/core/rtw_cmd.c: In function ‘btinfo_evt_dump’:
$/rtl8723bu/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
#define _seqdump seq_printf
^
$/rtl8723bu/include/rtw_debug.h:240:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /rtw_warn_on(1)/;
^
$/rtl8723bu/core/rtw_cmd.c:3166:2: note: in expansion of macro ‘DBG_871X_SEL_NL’
DBG_871X_SEL_NL(sel, "cid:0x%02x, len:%u\n", info->cid, info->len);
^
$/rtl8723bu/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
#define _seqdump seq_printf
^
$/rtl8723bu/include/rtw_debug.h:240:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /rtw_warn_on(1)/;
^
$/rtl8723bu/core/rtw_cmd.c:3169:2: note: in expansion of macro ‘DBG_871X_SEL_NL’
DBG_871X_SEL_NL(sel, "byte2:%s%s%s%s%s%s%s%s\n"
^
$/rtl8723bu/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
#define _seqdump seq_printf
^
$/rtl8723bu/include/rtw_debug.h:240:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /rtw_warn_on(1)/;
^
$/rtl8723bu/core/rtw_cmd.c:3181:2: note: in expansion of macro ‘DBG_871X_SEL_NL’
DBG_871X_SEL_NL(sel, "retry_cnt:%u\n", info->retry_cnt);
^
$/rtl8723bu/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
#define _seqdump seq_printf
^
$/rtl8723bu/include/rtw_debug.h:240:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /rtw_warn_on(1)/;
^
$/rtl8723bu/core/rtw_cmd.c:3184:2: note: in expansion of macro ‘DBG_871X_SEL_NL’
DBG_871X_SEL_NL(sel, "rssi:%u\n", info->rssi);
^
$/rtl8723bu/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
#define _seqdump seq_printf
^
$/rtl8723bu/include/rtw_debug.h:240:7: note: in expansion of macro ‘_seqdump’
if(_seqdump(sel, fmt, ##arg)) /rtw_warn_on(1)/;
^
$/rtl8723bu/core/rtw_cmd.c:3187:2: note: in expansion of macro ‘DBG_871X_SEL_NL’
DBG_871X_SEL_NL(sel, "byte5:%s%s\n"
^
scripts/Makefile.build:258: recipe for target '$/rtl8723bu/core/rtw_cmd.o' failed

Connecting works after several attempts when IPv6 is enabled

Using this driver I have to make connection attempts several times before it finally work. I tested this over a few weeks and it was clearly not a fluke. It happens with various routers, not just a specific one. Tested both on linux 4.3 and linux 4.5 and same thing happens.

Failed attempt:

[  130.451736] ------------[ cut here ]------------
[  130.451757] WARNING: CPU: 1 PID: 37 at net/wireless/sme.c:714 __cfg80211_connect_result+0x284/0x2fc()
[  130.451763] Modules linked in: rtsx_usb_ms rtsx_usb_sdmmc memstick rtsx_usb 8723bu(O) crc32_pclmul aesni_intel aes_x86_64 glue_helper lrw ablk_helper cryptd intel_rapl x86_pkg_temp_thermal i915 intel_pch_thermal lpc_ich processor_thermal_device intel_soc_dts_iosf iosf_mbi intel_gtt dw_dmac dw_dmac_core sdhci_acpi int3403_thermal goodix wmi elan_i2c kxcjk_1013 fjes industrialio_triggered_buffer uvcvideo acpi_als int3400_thermal int3402_thermal videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core acpi_thermal_rel int340x_thermal_zone kfifo_buf videodev acpi_pad industrialio tpm_tis efivarfs
[  130.451856] CPU: 1 PID: 37 Comm: kworker/u8:1 Tainted: G           O    4.5.0+ SMP
[  130.451861] Hardware name: TECLAST tPAD/tPAD, BIOS 5.6.5 09/01/2015
[  130.451873] Workqueue: cfg80211 cfg80211_event_work
[  130.451879]  0000000000000000 ffff8800dbbd3cc8 ffffffff8146ef79 0000000000000000
[  130.451890]  0000000000000009 ffff8800dbbd3d00 ffffffff81066abf ffffffff81a48e93
[  130.451900]  ffff8800cd424c00 0000000000000000 ffff88009b606218 ffff8800dbbd3d50
[  130.451910] Call Trace:
[  130.451924]  [<ffffffff8146ef79>] dump_stack+0x61/0x7d
[  130.451937]  [<ffffffff81066abf>] warn_slowpath_common+0x94/0xad
[  130.451947]  [<ffffffff81a48e93>] ? __cfg80211_connect_result+0x284/0x2fc
[  130.451957]  [<ffffffff81066b7c>] warn_slowpath_null+0x15/0x17
[  130.451966]  [<ffffffff81a48e93>] __cfg80211_connect_result+0x284/0x2fc
[  130.451977]  [<ffffffff81a2cab8>] cfg80211_process_wdev_events+0xdb/0x189
[  130.451986]  [<ffffffff81a2cab8>] ? cfg80211_process_wdev_events+0xdb/0x189
[  130.451996]  [<ffffffff81a2cbb4>] cfg80211_process_rdev_events+0x4e/0x5d
[  130.452004]  [<ffffffff81a289a9>] cfg80211_event_work+0x19/0x21
[  130.452014]  [<ffffffff81079554>] process_one_work+0x174/0x281
[  130.452023]  [<ffffffff81079b3a>] worker_thread+0x1fc/0x2ae
[  130.452032]  [<ffffffff8107993e>] ? rescuer_thread+0x2af/0x2af
[  130.452043]  [<ffffffff8107d9c1>] kthread+0xa0/0xa8
[  130.452053]  [<ffffffff8107d921>] ? kthread_parkme+0x1f/0x1f
[  130.452076]  [<ffffffff81abc18f>] ret_from_fork+0x3f/0x70
[  130.452086]  [<ffffffff8107d921>] ? kthread_parkme+0x1f/0x1f
[  130.452093] ---[ end trace f2784fa5e330dd71 ]---
[  130.454074] RTL871X: send eapol packet
[  130.457269] RTL871X: send eapol packet
[  130.601822] RTL871X: set pairwise key camid:4, addr:20:aa:4b:e5:b1:5d, kid:0, type:AES
[  130.602782] RTL871X: set group key camid:5, addr:20:aa:4b:e5:b1:5d, kid:1, type:AES
[  133.793320] IPv6: ADDRCONF(NETDEV_UP): wlp0s20u3i2: link is not ready
[  133.812953] RTL871X: set bssid:00:00:00:00:00:00
[  137.781984] RTL871X: nolinked power save enter

Successful attempt:

[  224.975916] ------------[ cut here ]------------
[  224.975933] WARNING: CPU: 3 PID: 122 at net/wireless/sme.c:714 __cfg80211_connect_result+0x284/0x2fc()
[  224.975966] Modules linked in: rtsx_usb_ms rtsx_usb_sdmmc memstick rtsx_usb 8723bu(O) crc32_pclmul aesni_intel aes_x86_64 glue_helper lrw ablk_helper cryptd intel_rapl x86_pkg_temp_thermal i915 intel_pch_thermal lpc_ich processor_thermal_device intel_soc_dts_iosf iosf_mbi intel_gtt dw_dmac dw_dmac_core sdhci_acpi int3403_thermal goodix wmi elan_i2c kxcjk_1013 fjes industrialio_triggered_buffer uvcvideo acpi_als int3400_thermal int3402_thermal videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core acpi_thermal_rel int340x_thermal_zone kfifo_buf videodev acpi_pad industrialio tpm_tis efivarfs
[  224.976030] CPU: 3 PID: 122 Comm: kworker/u8:2 Tainted: G        W  O    4.5.0+ SMP
[  224.976034] Hardware name: TECLAST tPAD/tPAD, BIOS 5.6.5 09/01/2015
[  224.976042] Workqueue: cfg80211 cfg80211_event_work
[  224.976049]  0000000000000000 ffff8800da147cc8 ffffffff8146ef79 0000000000000000
[  224.976056]  0000000000000009 ffff8800da147d00 ffffffff81066abf ffffffff81a48e93
[  224.976062]  ffff8800cd424c00 0000000000000000 ffff880087539e18 ffff8800da147d50
[  224.976067] Call Trace:
[  224.976078]  [<ffffffff8146ef79>] dump_stack+0x61/0x7d
[  224.976088]  [<ffffffff81066abf>] warn_slowpath_common+0x94/0xad
[  224.976096]  [<ffffffff81a48e93>] ? __cfg80211_connect_result+0x284/0x2fc
[  224.976103]  [<ffffffff81066b7c>] warn_slowpath_null+0x15/0x17
[  224.976108]  [<ffffffff81a48e93>] __cfg80211_connect_result+0x284/0x2fc
[  224.976115]  [<ffffffff81a2cab8>] cfg80211_process_wdev_events+0xdb/0x189
[  224.976121]  [<ffffffff81a2cab8>] ? cfg80211_process_wdev_events+0xdb/0x189
[  224.976129]  [<ffffffff81a2cbb4>] cfg80211_process_rdev_events+0x4e/0x5d
[  224.976134]  [<ffffffff81a289a9>] cfg80211_event_work+0x19/0x21
[  224.976141]  [<ffffffff81079554>] process_one_work+0x174/0x281
[  224.976146]  [<ffffffff81079b3a>] worker_thread+0x1fc/0x2ae
[  224.976151]  [<ffffffff8107993e>] ? rescuer_thread+0x2af/0x2af
[  224.976163]  [<ffffffff8107d9c1>] kthread+0xa0/0xa8
[  224.976170]  [<ffffffff8107d921>] ? kthread_parkme+0x1f/0x1f
[  224.976179]  [<ffffffff81abc18f>] ret_from_fork+0x3f/0x70
[  224.976186]  [<ffffffff8107d921>] ? kthread_parkme+0x1f/0x1f
[  224.976190] ---[ end trace f2784fa5e330dd72 ]---
[  224.976967] IPv6: ADDRCONF(NETDEV_CHANGE): wlp0s20u3i2: link becomes ready
[  224.980954] RTL871X: send eapol packet
[  224.983808] RTL871X: send eapol packet
[  225.005478] RTL871X: set pairwise key camid:4, addr:20:aa:4b:e5:b1:5d, kid:0, type:AES
[  225.006507] RTL871X: set group key camid:5, addr:20:aa:4b:e5:b1:5d, kid:1, type:AES

Mp_Precomp.h: No such file or directory

pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.4.15-v7+ #1 SMP Sun Jul 17 18:21:18 CST 2016 armv7l GNU/Linux

pi@raspberrypi:~/test2/rtl8723bu $ make -j5
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -C /home/pi/rpikernel/linux M=/home/pi/test2/rtl8723bu modules
make[1]: Entering directory '/home/pi/rpikernel/linux'
CC [M] /home/pi/test2/rtl8723bu/hal/hal_btcoex.o
CC [M] /home/pi/test2/rtl8723bu/hal/rtl8723b_rf6052.o
CC [M] /home/pi/test2/rtl8723bu/hal/rtl8723b_dm.o
CC [M] /home/pi/test2/rtl8723bu/hal/rtl8723b_rxdesc.o
CC [M] /home/pi/test2/rtl8723bu/hal/rtl8723b_cmd.o
/home/pi/test2/rtl8723bu/hal/hal_btcoex.c:26:24: fatal error: Mp_Precomp.h: No such file or directory
#include <Mp_Precomp.h>
^
compilation terminated.

multiple rtl8723bu units at once - second unit will not work

If I run multiple rtl8723bu (odba:b720) realtek units at once, only one of the units will work. From what I can tell, it's consistently the the last one loaded (i.e. wlan3 vs wlan2), so order matters.

I have 3 RTL8723BU USB units, and tried plugging random pairs of them in at once to ensure it wasn't the actual device, or the usb port itself.

Seems only to be related to the order they are picked up by the OS.

Building the driver

$ sudo apt-get install build-essential git
$ git clone https://github.com/lwfinger/rtl8723bu.git
$ cd rtl8723bu
$ make
$ sudo make install
# load the module (which will be loaded automatically until the next kernel update)
$ sudo modprobe -v 8723bu

OS details (happens with kernel 3 and 4)

pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.1.13+-v7 #1 SMP PREEMPT Mon Jan 11 07:08:40 UTC 2016 armv7l GNU/Linux

USB device details (0bda:b720 are the rtl8723bu's)

pi@raspberrypi:~ $ lsusb
Bus 001 Device 008: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
Bus 001 Device 006: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
Bus 001 Device 005: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
Bus 001 Device 009: ID 0bda:b720 Realtek Semiconductor Corp. 
Bus 001 Device 007: ID 0bda:b720 Realtek Semiconductor Corp. 
Bus 001 Device 004: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I'm using these units specifically:
http://www.ccandc.com.tw/products_2.php?prod=269

Further context

I tried configuring each as a normal wifi card and only the second one would work.

Similarly, configuring it with hostapd (creating an access point), only the second one would create an access point. That is, if i configure hostapd.conf to use wlan3, it works. If i configure hostapd.conf to use wlan2, it doesn't work.

However, the same scenarios work fine with the RTL8188CUS usb wifi adapters that i have plugged into my device. Thus, I believe it's a driver problem, rather than a kernel/OS problem.

Matt.

error compiling with CONFIG_CONCURRENT_MODE enabled

Hi,

When compiling with the CONFIG_CONCURRENT_MODE define enabled in autoconf.h, I get an error during compilation. See below.

My goal is to work in concurrent mode (AP+STA). And I am following this nice post:
http://randomstuffidosometimes.blogspot.nl/2016/03/rtl8192cu-and-rtl8188cus-in-station-and.html

any ideas?

best, Matthijs

| make[1]: Entering directory '/media/venusbuilds/wipbbbjethro/build/tmp-glibc/work-shared/beaglebone/kernel-source'
| make[2]: Entering directory '/media/venusbuilds/wipbbbjethro/build/tmp-glibc/work-shared/beaglebone/kernel-build-artifacts'
|   CC [M]  /media/venusbuilds/wipbbbjethro/build/tmp-glibc/work/beaglebone-ve-linux-gnueabi/rtl8723bu/0.0-r0/git/core/rtw_cmd.o
|   CC [M]  /media/venusbuilds/wipbbbjethro/build/tmp-glibc/work/beaglebone-ve-linux-gnueabi/rtl8723bu/0.0-r0/git/core/rtw_security.o
|   CC [M]  /media/venusbuilds/wipbbbjethro/build/tmp-glibc/work/beaglebone-ve-linux-gnueabi/rtl8723bu/0.0-r0/git/core/rtw_debug.o
|   CC [M]  /media/venusbuilds/wipbbbjethro/build/tmp-glibc/work/beaglebone-ve-linux-gnueabi/rtl8723bu/0.0-r0/git/core/rtw_io.o
|   CC [M]  /media/venusbuilds/wipbbbjethro/build/tmp-glibc/work/beaglebone-ve-linux-gnueabi/rtl8723bu/0.0-r0/git/core/rtw_ioctl_query.o
|   CC [M]  /media/venusbuilds/wipbbbjethro/build/tmp-glibc/work/beaglebone-ve-linux-gnueabi/rtl8723bu/0.0-r0/git/core/rtw_ioctl_set.o
|   CC [M]  /media/venusbuilds/wipbbbjethro/build/tmp-glibc/work/beaglebone-ve-linux-gnueabi/rtl8723bu/0.0-r0/git/core/rtw_ieee80211.o
|   CC [M]  /media/venusbuilds/wipbbbjethro/build/tmp-glibc/work/beaglebone-ve-linux-gnueabi/rtl8723bu/0.0-r0/git/core/rtw_mlme.o
|   CC [M]  /media/venusbuilds/wipbbbjethro/build/tmp-glibc/work/beaglebone-ve-linux-gnueabi/rtl8723bu/0.0-r0/git/core/rtw_mlme_ext.o
| /media/venusbuilds/wipbbbjethro/build/tmp-glibc/work/beaglebone-ve-linux-gnueabi/rtl8723bu/0.0-r0/git/core/rtw_mlme_ext.c: In function 'site_survey':
| /media/venusbuilds/wipbbbjethro/build/tmp-glibc/work/beaglebone-ve-linux-gnueabi/rtl8723bu/0.0-r0/git/core/rtw_mlme_ext.c:9381:3: error: 'else' without a previous 'if'
|    else if(padapter->pbuddy_adapter
|    ^
| /media/venusbuilds/wipbbbjethro/build/tmp-glibc/work-shared/beaglebone/kernel-source/scripts/Makefile.build:258: recipe for target '/media/venusbuilds/wipbbbjethro/build/tmp-glibc/work/beaglebone-ve-linux-gnueabi/rtl8723bu/0.0-r0/git/core/rtw_mlme_ext.o' failed

stuck while rebooting when driver is loaded?

Hi,

with the rtl8723bu driver loaded, my device won't reboot anymore. Its 100% reproducible. And solved by booting without loading the driver.

system log output is:

root@beaglebone:~# reboot

Broadcast message from root@beaglebone (ttyO0) (Fri Sep 16 00:00:49 2016):
The system is going down for reboot NOW!
INIT: Sending processes the TERM signal
root@beaglebone:~#
INIT: Sending processes the KILL signal
Stopping simple-upnpd
Stopping system message bus
hwclock: can't open '/dev/misc/rtc': No such file or directory
Stopping syslogd/klogd: stopped syslogd (pid 1842)
stopped klogd (pid 1843)
done
Stopping Connection Manager
[  325.401405] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Stopping crond: OK
Gracefully shutting down php-fpm . done
Stopping Hiawatha Web Server: stopped /usr/sbin/hiawatha (pid 1967)
hiawatha.
Deconfiguring network interfaces... done.
Sending all processes the TERM signal...
[  328.963540] RTL871X: nolinked power save enter
Sending all processes the KILL signal...
Unmounting remote filesystems...
Deactivating swap...
Unmounting local filesystems...
[  333.493695] EXT4-fs (mmcblk1p3): re-mounted. Opts: data=ordered
Rebooting... [  335.629452] musb-hdrc musb-hdrc.1.auto: remove, state 1
[  335.635012] usb usb1: USB disconnect, device number 1
[  335.640312] usb 1-1: USB disconnect, device number 2
[  335.645536] usb 1-1.4: USB disconnect, device number 3

the used device is a beaglebone enhanced from Sancloud, running our own image called Venus. So not the IoT beaglebone image. I am still awaiting feedback to know if this same issue happens on their beaglebone IoT image, as I know they use this same driver.

Any ideas? Is this a known issue?

Matthijs

ps. I have this issue (also) when not working with the concurrent_mode. About which I made that other issue for last night, #35. So thought it best to keep these two issues seperate. Also I have some more compile errors with the concurrent_mode. And fixes for them this time ;-). I'll post that in #35, after doing some more tests.

Segmentation fault when unloading driver

Hello lwfinger,

I have run into an issue, when unloading the driver I get the following segfault:

/ # rmmod 8723bu
[  967.657737] RTL871X: module exit start
[  967.661925] usbcore: deregistering interface driver rtl8723bu
[  967.672778] ------------[ cut here ]------------
[  967.677678] kernel BUG at net/wireless/core.c:653!
[  967.682721] Internal error: Oops - BUG: 0 [#1] SMP ARM
[  967.688125] Modules linked in: can_raw can c_can_platform c_can can_dev rtk_btusb(O) bluetooth 6lowpan_iphc rt2800usb rt2800lib crc_ccitt rt2x00usb rt2x00lib mac80211 pwm_bl leds_pwm usb_f_acm u_serial usb_f_ecm g_multi usb_f_mass_storage usb_f_rndis u_ether libcomposite 8723bu(O-) cfg80211
[  967.715464] CPU: 0 PID: 314 Comm: rmmod Tainted: G           O 3.14.1+ #4
[  967.722608] task: de696400 ti: da008000 task.ti: da008000
[  967.728806] PC is at wiphy_unregister+0xb0/0x258 [cfg80211]
[  967.734959] LR is at wiphy_unregister+0x98/0x258 [cfg80211]
[  967.740830] pc : [<bf000530>]    lr : [<bf000518>]    psr: 200d0013
[  967.740830] sp : da009e70  ip : 00000000  fp : 00000000
[  967.752891] r10: 00000000  r9 : 00000000  r8 : de44f000
[  967.758388] r7 : de44e800  r6 : de502000  r5 : 00000000  r4 : de502140
[  967.765253] r3 : de502038  r2 : de502c08  r1 : 600d0013  r0 : c08caee8
[  967.772119] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[  967.779622] Control: 10c5387d  Table: 9a0ac019  DAC: 00000015
[  967.785666] Process rmmod (pid: 314, stack limit = 0xda008248)
[  967.791800] Stack: (0xda009e70 to 0xda00a000)
[  967.796393] 9e60:                                     da33cab0 de41f0d8 de0280c4 da009ec0
[  967.805001] 9e80: e090f000 e0912f04 de502c00 e0912000 de44e9b8 de44e800 de44f000 bf0df4ac
[  967.813609] 9ea0: e090f000 00000000 de44e9b8 bf0cc5d4 e090f000 de41b600 de41b600 00000000
[  967.822218] 9ec0: bf122f3c bf0cda9c de41b620 de3eac00 de41b600 c03afb7c de41b620 bf122f3c
[  967.830826] 9ee0: de41b654 bec2eb80 c000dbc4 da008000 00000000 c033e434 de41b620 bf122f3c
[  967.839434] 9f00: de41b654 c033ea98 bf122f3c bf122f08 c08604c8 c033e188 bf122f08 c03af120
[  967.848041] 9f20: 00000000 bf13e748 c08604c8 bec2eb80 c000dbc4 bf115ab0 00000000 c00975d0
[  967.856648] 9f40: 00000000 bf13e748 00000880 da009f40 33323738 b6007562 00000001 00000001
[  967.865254] 9f60: 00000001 c010bc54 00100871 00000000 00000000 b6f1f000 00000003 de6a3aa8
[  967.873862] 9f80: 00000000 b6f1f568 00027d38 bd94362f 0000007d 0001fc1b 33323738 b6007562
[  967.882469] 9fa0: 00000081 c000da40 0001fc1b 33323738 bec2eb80 00000880 00000000 bec2ee38
[  967.891077] 9fc0: 0001fc1b 33323738 b6007562 00000081 bec2ee34 000000b6 b6f1f000 00000000
[  967.899684] 9fe0: bec2eb78 bec2eb68 0001fb5d b6e25442 800d0030 bec2eb80 00000000 00000000
[  967.909332] [<bf000530>] (wiphy_unregister [cfg80211]) from [<bf0df4ac>] (rtw_wdev_unregister+0x48/0x4c [8723bu])
[  967.921027] [<bf0df4ac>] (rtw_wdev_unregister [8723bu]) from [<bf0cc5d4>] (rtw_unregister_netdevs+0x38/0x64 [8723bu])
[  967.932983] [<bf0cc5d4>] (rtw_unregister_netdevs [8723bu]) from [<bf0cda9c>] (rtw_dev_remove+0x20/0x78 [8723bu])
[  967.944112] [<bf0cda9c>] (rtw_dev_remove [8723bu]) from [<c03afb7c>] (usb_unbind_interface+0x60/0x160)
[  967.953936] [<c03afb7c>] (usb_unbind_interface) from [<c033e434>] (__device_release_driver+0x7c/0xc4)
[  967.963647] [<c033e434>] (__device_release_driver) from [<c033ea98>] (driver_detach+0xa4/0xcc)
[  967.972714] [<c033ea98>] (driver_detach) from [<c033e188>] (bus_remove_driver+0x64/0x8c)
[  967.981235] [<c033e188>] (bus_remove_driver) from [<c03af120>] (usb_deregister+0x5c/0xd0)
[  967.990231] [<c03af120>] (usb_deregister) from [<bf115ab0>] (rtw_drv_halt+0x38/0x6c [8723bu])
[  967.999598] [<bf115ab0>] (rtw_drv_halt [8723bu]) from [<c00975d0>] (SyS_delete_module+0x13c/0x1c0)
[  968.009044] [<c00975d0>] (SyS_delete_module) from [<c000da40>] (ret_fast_syscall+0x0/0x30)
[  968.017746] Code: e5c43220 e2443f42 e1520003 0a000000 (e7f001f2) 
[  968.024187] ---[ end trace 831f666d51db0056 ]---
Segmentation fault

Here is some information about the system.

/ # uname -a
Linux EnatelLinux 3.14.1+ #4 SMP Fri Jul 29 13:55:49 NZST 2016 armv7l GNU/Linux

It is on a TI AM3352 using a LM811 USB IC.
I have looked at the line of the code raising the error, and understanding the potential cause is beyond me at this point in time.

Are you able to suggest a potential starting point of investigation?

Thanks,
Phil

kernel deadlock warning during driver load

Hi Larry,

see message at 24.146556 below. It doesn't seem to do any harm, at least, I did not find anything that doesn't work yet.

Any thoughts on below? Or should I perhaps go to connman with this?

best, Matthijs

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.1.15-venus (matthijs@matthijs-VirtualBox) (gcc version 5.2.0 (GCC) ) #1 Sun Oct 9 21:47:33 CEST 2016
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: TI AM335x BeagleBone Black
[    0.000000] cma: Reserved 16 MiB at 0xbf000000
[    0.000000] Memory policy: Data cache writeback
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] AM335X ES2.1 (sgx neon )
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260624
[    0.000000] Kernel command line: console=ttyO0,115200n8 consoleblank=0 root=/dev/mmcblk1p3 rootfstype=ext4 rootwait
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1007408K/1048576K available (4993K kernel code, 322K rwdata, 1752K rodata, 276K init, 8172K bss, 24784K reserved, 16384K cma-reserved, 253952K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0000000 - 0xff000000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xef800000   ( 760 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc069e928   (6747 kB)
[    0.000000]       .init : 0xc069f000 - 0xc06e4000   ( 276 kB)
[    0.000000]       .data : 0xc06e4000 - 0xc0734a38   ( 323 kB)
[    0.000000]        .bss : 0xc0734a38 - 0xc0f2fc18   (8173 kB)
[    0.000000] Running RCU self tests
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[    0.000012] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000034] clocksource timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000075] OMAP clocksource: timer1 at 24000000 Hz
[    0.000739] Console: colour dummy device 80x30
[    0.000790] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
[    0.000798] ... MAX_LOCKDEP_SUBCLASSES:  8
[    0.000804] ... MAX_LOCK_DEPTH:          48
[    0.000810] ... MAX_LOCKDEP_KEYS:        8191
[    0.000816] ... CLASSHASH_SIZE:          4096
[    0.000822] ... MAX_LOCKDEP_ENTRIES:     32768
[    0.000828] ... MAX_LOCKDEP_CHAINS:      65536
[    0.000834] ... CHAINHASH_SIZE:          32768
[    0.000840]  memory used by lock dependency info: 5167 kB
[    0.000846]  per task-struct memory footprint: 1152 bytes
[    0.000871] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
[    0.078946] pid_max: default: 32768 minimum: 301
[    0.079148] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.079162] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.081389] CPU: Testing write buffer coherency: ok
[    0.082578] Setting up static identity map for 0x80008200 - 0x80008258
[    0.086560] devtmpfs: initialized
[    0.111873] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.147591] omap_hwmod: tptc0 using broken dt data from edma
[    0.147993] omap_hwmod: tptc1 using broken dt data from edma
[    0.148375] omap_hwmod: tptc2 using broken dt data from edma
[    0.156163] omap_hwmod: debugss: _wait_target_disable failed
[    0.211265] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.213701] pinctrl core: initialized pinctrl subsystem
[    0.218328] NET: Registered protocol family 16
[    0.224825] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.227542] cpuidle: using governor ladder
[    0.227579] cpuidle: using governor menu
[    0.235124] OMAP GPIO hardware version 0.1
[    0.253063] No ATAGs?
[    0.253095] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.322501] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
[    0.326947] usbcore: registered new interface driver usbfs
[    0.327105] usbcore: registered new interface driver hub
[    0.327257] usbcore: registered new device driver usb
[    0.328163] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
[    0.328263] omap_i2c 4802a000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c1_pins, deferring probe
[    0.331784] Switched to clocksource timer1
[    0.469459] NET: Registered protocol family 2
[    0.471154] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.471370] TCP bind hash table entries: 8192 (order: 6, 294912 bytes)
[    0.473841] TCP: Hash tables configured (established 8192 bind 8192)
[    0.474060] UDP hash table entries: 512 (order: 3, 40960 bytes)
[    0.474384] UDP-Lite hash table entries: 512 (order: 3, 40960 bytes)
[    0.475285] NET: Registered protocol family 1
[    0.477176] CPU PMU: Failed to parse /pmu/interrupt-affinity[0]
[    0.477247] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[    0.480989] futex hash table entries: 256 (order: 1, 11264 bytes)
[    0.490396] VFS: Disk quotas dquot_6.6.0
[    0.490500] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.496350] bounce: pool size: 64 pages
[    0.496475] io scheduler noop registered
[    0.496494] io scheduler deadline registered
[    0.496530] io scheduler cfq registered (default)
[    0.499745] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[    0.503436] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.509900] omap_uart 44e09000.serial: no wakeirq for uart0
[    0.510488] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 154, base_baud = 3000000) is a OMAP UART0
[    1.087377] console [ttyO0] enabled
[    1.094205] omap_uart 48024000.serial: no wakeirq for uart2
[    1.100334] 48024000.serial: ttyO2 at MMIO 0x48024000 (irq = 155, base_baud = 3000000) is a OMAP UART2
[    1.111746] omap_uart 481a8000.serial: no wakeirq for uart4
[    1.117922] 481a8000.serial: ttyO4 at MMIO 0x481a8000 (irq = 156, base_baud = 3000000) is a OMAP UART4
[    1.129201] omap_uart 481aa000.serial: no wakeirq for uart5
[    1.135362] 481aa000.serial: ttyO5 at MMIO 0x481aa000 (irq = 157, base_baud = 3000000) is a OMAP UART5
[    1.148309] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
[    1.187793] brd: module loaded
[    1.208978] loop: module loaded
[    1.214155] vcan: Virtual CAN interface driver
[    1.218830] slcan: serial line CAN interface driver
[    1.223991] slcan: 10 dynamic interface channels.
[    1.228935] CAN device driver interface
[    1.235447] c_can_platform 481cc000.can: c_can_platform device registered (regs=fa1cc000, irq=163)
[    1.246700] c_can_platform 481d0000.can: c_can_platform device registered (regs=fa1d0000, irq=164)
[    1.257634] usbcore: registered new interface driver asix
[    1.263481] usbcore: registered new interface driver ax88179_178a
[    1.269973] usbcore: registered new interface driver cdc_ether
[    1.276262] usbcore: registered new interface driver smsc95xx
[    1.282409] usbcore: registered new interface driver net1080
[    1.288444] usbcore: registered new interface driver cdc_subset
[    1.294772] usbcore: registered new interface driver zaurus
[    1.300810] usbcore: registered new interface driver cdc_ncm
[    1.316996] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.323935] ehci-omap: OMAP-EHCI Host Controller driver
[    1.329766] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.336490] usbcore: registered new interface driver cdc_wdm
[    1.342628] usbcore: registered new interface driver usbtest
[    1.351212] 47401300.usb-phy supply vcc not found, using dummy regulator
[    1.367708] 47401b00.usb-phy supply vcc not found, using dummy regulator
[    1.379982] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.389293] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    1.399385] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.406561] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.414151] usb usb1: Product: MUSB HDRC host driver
[    1.419357] usb usb1: Manufacturer: Linux 4.1.15-venus musb-hcd
[    1.425576] usb usb1: SerialNumber: musb-hdrc.1.auto
[    1.434956] hub 1-0:1.0: USB hub found
[    1.439725] hub 1-0:1.0: 1 port detected
[    1.450617] mousedev: PS/2 mouse device common for all mice
[    1.459746] i2c /dev entries driver
[    1.463585] Driver for 1-wire Dallas network protocol.
[    1.474127] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    1.483866] omap_hsmmc 48060000.mmc: Got CD GPIO
[    1.569587] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.581511] ledtrig-cpu: registered to indicate activity on CPUs
[    1.588401] usbcore: registered new interface driver usbhid
[    1.594278] usbhid: USB HID core driver
[    1.599320] oprofile: using arm/armv7
[    1.603825] Initializing XFRM netlink socket
[    1.608629] NET: Registered protocol family 10
[    1.615829] mmc0: new high speed SDHC card at address 59b4
[    1.628610] mmcblk0: mmc0:59b4 00000 14.9 GiB
[    1.638440] sit: IPv6 over IPv4 tunneling driver
[    1.645522] NET: Registered protocol family 17
[    1.650261] NET: Registered protocol family 15
[    1.654993] can: controller area network core (rev 20120528 abi 9)
[    1.661602] NET: Registered protocol family 29
[    1.666382] can: raw protocol (rev 20120528)
[    1.670998] can: broadcast manager protocol (rev 20120528 t)
[    1.677431] Key type dns_resolver registered
[    1.682109] omap_voltage_late_init: Voltage driver support not added
[    1.689753] ThumbEE CPU extension supported.
[    1.695966]  mmcblk0: p1
[    1.749152] tps65217 0-0024: TPS65217 ID 0x6 version 1.2
[    1.754925] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    1.761992] mmc1: MAN_BKOPS_EN bit is not set
[    1.773774] mmc1: new high speed MMC card at address 0001
[    1.780844] mmcblk1: mmc1:0001 P1XXXX 3.60 GiB
[    1.786767] mmcblk1boot0: mmc1:0001 P1XXXX partition 1 2.00 MiB
[    1.793969] mmcblk1boot1: mmc1:0001 P1XXXX partition 2 2.00 MiB
[    1.803662]  mmcblk1: p1 p2 p3 p4 < p5 p6 >
[    1.851881] usb 1-1: new high-speed USB device number 2 using musb-hdrc
[    1.992158] usb 1-1: New USB device found, idVendor=0424, idProduct=2514
[    1.999200] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.009726] hub 1-1:1.0: USB hub found
[    2.014460] hub 1-1:1.0: 4 ports detected
[    2.291837] usb 1-1.4: new high-speed USB device number 3 using musb-hdrc
[    2.412580] usb 1-1.4: New USB device found, idVendor=0bda, idProduct=b720
[    2.419795] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.427487] usb 1-1.4: Product: 802.11n WLAN Adapter
[    2.432710] usb 1-1.4: Manufacturer: Realtek
[    2.437186] usb 1-1.4: SerialNumber: 00e04c000001
[    2.781829] omap_i2c 4802a000.i2c: timeout waiting for bus ready
[    2.788261] rtc-pcf8523: probe of 1-0068 failed with error -110
[    2.794542] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 400 kHz
[    2.861851] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[    2.868261] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
[    2.877943] libphy: 4a101000.mdio: probed
[    2.882242] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver Atheros 8035 ethernet
[    2.892998] cpsw 4a100000.ethernet: Detected MACID = b0:d5:cc:f1:b4:c2
[    2.903099] hctosys: unable to open rtc device (rtc0)
[    2.941936] EXT4-fs (mmcblk1p3): mounted filesystem with ordered data mode. Opts: (null)
[    2.950584] VFS: Mounted root (ext4 filesystem) readonly on device 179:11.
[    2.962455] devtmpfs: mounted
[    2.966073] Freeing unused kernel memory: 276K (c069f000 - c06e4000)
INIT: version 2.88 booting
[    3.313916] EXT4-fs (mmcblk1p5): mounted filesystem with ordered data mode. Opts: (null)
[    3.329037] EXT4-fs (mmcblk1p6): mounted filesystem with ordered data mode. Opts: (null)
Starting udev
udev: Not using udev cache because of changes detected in the following files:
udev:     /proc/version /proc/cmdline /proc/devices
udev:     lib/udev/rules.d/* etc/udev/rules.d/*
udev: The udev cache will be regenerated. To identify the detected changes,
udev: compare the cached sysconf at   /etc/udev/cache.data
udev: against the current sysconf at  /dev/shm/udev.cache
[    3.576089] udevd[680]: starting version 182
[    4.176437] cfg80211: Calling CRDA to update world regulatory domain
[    4.568469] RTL871X: module init start
[    4.572530] RTL871X: rtl8723bu v4.3.6.11_12942.20141204_BTCOEX20140507-4E40
[    4.579831] RTL871X: rtl8723bu BT-Coex version = BTCOEX20140507-4E40
[    7.333506] cfg80211: Calling CRDA to update world regulatory domain
[    7.855974] RTL871X: rtw_ndev_init(wlan0)
[    7.862894] RTL871X: rtw_ndev_init(wlan1)
[    7.869668] usbcore: registered new interface driver rtl8723bu
[    7.875860] RTL871X: module init ret=0
[    8.176733] cfg80211: World regulatory domain updated:
[    8.182236] cfg80211:  DFS Master region: unset
[    8.186806] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[    8.197042] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    8.205449] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    8.213855] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[    8.222262] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[    8.232217] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[    8.242185] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[    8.250669] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[    8.259077] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[    8.445930] EXT4-fs (mmcblk1p3): re-mounted. Opts: data=ordered
bootlogd: cannot allocate pseudo tty: No such file or directory
[    8.598357] random: dd urandom read with 106 bits of entropy available
Populating dev cache
Starting watchdog
[    9.694001] watchdog watchdog0: watchdog did not stop!
INIT: Entering runlevel: 5
Configuring network interfaces... [   11.381624] net eth0: initializing cpsw version 1.12 (0)
[   11.462457] net eth0: phy found : id is : 0x4dd072
[   11.467641] libphy: PHY 4a101000.mdio:01 not found
[   11.472697] net eth0: phy 4a101000.mdio:01 not found on slave 1
[   11.484881] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
udhcpc (v1.23.2) started
Sending discover...
Sending discover...
Sending discover...
No lease, forking to background
done.
Starting system message bus: Setting up watches.
Watches established.
/var/run/dbus/ CREATE system_bus_socket
hwclock: can't open '/dev/misc/rtc': No such file or directory
Starting syslogd/klogd: done
Starting php-fpm [   21.061920] random: nonblocking pool is initialized
 done
Starting Connection Manager
Starting Hiawatha Web Server: dbus[1402]: [system] Activating service name='fi.w1.wpa_supplicant1' (using servicehelper)
hiawatha.
Starting crond: dbus[1402]: [system] Successfully activated service 'fi.w1.wpa_supplicant1'
[   24.144964]
[   24.146556] =============================================
[   24.152214] [ INFO: possible recursive locking detected ]
[   24.157877] 4.1.15-venus #1 Tainted: G           O
[   24.163168] ---------------------------------------------
[   24.168824] connmand/1524 is trying to acquire lock:
[   24.174025]  (pmutex){+.+...}, at: [<bf10c37c>] usbctrl_vendorreq+0x9c/0x29c [8723bu]
[   24.182581]
[   24.182581] but task is already holding lock:
[   24.188695]  (pmutex){+.+...}, at: [<bf10af0c>] netdev_open+0x28/0x50 [8723bu]
[   24.196390]
[   24.196390] other info that might help us debug this:
[   24.203233]  Possible unsafe locking scenario:
[   24.203233]
[   24.209436]        CPU0
[   24.211994]        ----
[   24.214551]   lock(pmutex);
[   24.217482]   lock(pmutex);
[   24.220413]
[   24.220413]  *** DEADLOCK ***
[   24.220413]
[   24.226618]  May be due to missing lock nesting notation
[   24.226618]
[   24.233734] 2 locks held by connmand/1524:
[   24.238022]  #0:  (rtnl_mutex){+.+.+.}, at: [<c042c530>] devinet_ioctl+0xd0/0x7d4
[   24.245904]  #1:  (pmutex){+.+...}, at: [<bf10af0c>] netdev_open+0x28/0x50 [8723bu]
[   24.254042]
[   24.254042] stack backtrace:
[   24.258614] CPU: 0 PID: 1524 Comm: connmand Tainted: G           O    4.1.15-venus #1
[   24.266821] Hardware name: Generic AM33XX (Flattened Device Tree)
[   24.273234] [<c0014844>] (unwind_backtrace) from [<c0012994>] (show_stack+0x10/0x14)
[   24.281362] [<c0012994>] (show_stack) from [<c0067fe0>] (__lock_acquire+0x1454/0x1da0)
[   24.289665] [<c0067fe0>] (__lock_acquire) from [<c006922c>] (lock_acquire+0xac/0x12c)
[   24.297886] [<c006922c>] (lock_acquire) from [<c04bf4b4>] (mutex_lock_interruptible_nested+0x48/0x3bc)
[   24.307746] [<c04bf4b4>] (mutex_lock_interruptible_nested) from [<bf10c37c>] (usbctrl_vendorreq+0x9c/0x29c [8723bu])
[   24.318989] [<bf10c37c>] (usbctrl_vendorreq [8723bu]) from [<bf13ce9c>] (usb_read8+0x30/0x3c [8723bu])
[   24.328918] [<bf13ce9c>] (usb_read8 [8723bu]) from [<bf0db2a8>] (rtw_read8+0x18/0x1c [8723bu])
[   24.338108] [<bf0db2a8>] (rtw_read8 [8723bu]) from [<bf13b2f4>] (rtl8723bu_hal_init+0x30/0xb8c [8723bu])
[   24.348240] [<bf13b2f4>] (rtl8723bu_hal_init [8723bu]) from [<bf11fc60>] (rtw_hal_init+0x18/0x154 [8723bu])
[   24.358632] [<bf11fc60>] (rtw_hal_init [8723bu]) from [<bf10a9fc>] (_netdev_open+0x60/0x2b8 [8723bu])
[   24.368464] [<bf10a9fc>] (_netdev_open [8723bu]) from [<bf10af14>] (netdev_open+0x30/0x50 [8723bu])
[   24.378045] [<bf10af14>] (netdev_open [8723bu]) from [<c03c7d64>] (__dev_open+0xb8/0x11c)
[   24.386625] [<c03c7d64>] (__dev_open) from [<c03c7fe8>] (__dev_change_flags+0x94/0x144)
[   24.395021] [<c03c7fe8>] (__dev_change_flags) from [<c03c80b0>] (dev_change_flags+0x18/0x48)
[   24.403872] [<c03c80b0>] (dev_change_flags) from [<c042cb2c>] (devinet_ioctl+0x6cc/0x7d4)
[   24.412462] [<c042cb2c>] (devinet_ioctl) from [<c03adbec>] (sock_ioctl+0x1d8/0x2b0)
[   24.420496] [<c03adbec>] (sock_ioctl) from [<c011c39c>] (do_vfs_ioctl+0x3f0/0x5c0)
[   24.428436] [<c011c39c>] (do_vfs_ioctl) from [<c011c5a0>] (SyS_ioctl+0x34/0x5c)
[   24.436104] [<c011c5a0>] (SyS_ioctl) from [<c000f1e0>] (ret_fast_syscall+0x0/0x54)
OK
Checking available software versions...
[   24.932718] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
Starting simple-upnpd

[   26.566484] RTL871X: RTW_ADAPTIVITY_EN_AUTO, chplan:0x20, Regulation:3,3
[   26.573663] RTL871X: RTW_ADAPTIVITY_MODE_NORMAL
[   27.912415] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   29.074533] RTL871X: nolinked power save enter
[   31.459176] RTL871X: RTW_ADAPTIVITY_EN_AUTO, chplan:0x20, Regulation:3,3
[   31.466352] RTL871X: RTW_ADAPTIVITY_MODE_NORMAL
[   35.041026] RTL871X: nolinked power save leave
[   35.264525] RTL871X: rtw_set_802_11_connect(wlan0)  fw_state=0x00000008
[   35.300008] c_can_platform 481cc000.can can0: setting BTR=1c05 BRPE=0000
[   35.307172] c_can_platform 481cc000.can: obtain a copy of previously claimed pinctrl
[   35.315461] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
[   35.393186] RTL871X: start auth
[   35.398277] RTL871X: auth success, start assoc
[   35.405995] RTL871X: rtw_cfg80211_indicate_connect(wlan0) BSS not found !!
[   35.413307] RTL871X: assoc success
[   35.417140] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   36.405464] RTL871X: send eapol packet
[   36.414788] RTL871X: send eapol packet
[   36.419568] RTL871X: set pairwise key camid:4, addr:98:fc:11:ae:b5:04, kid:0, type:AES
bgscan simple: Failed to enable signal strength monitoring
[   36.456327] RTL871X: set group key camid:5, addr:98:fc:11:ae:b5:04, kid:1, type:AES

Two wifi adapters shown in network manager even if I have only one. Internet disconnects randomly

screenshot_from_2016-10-12 22-40-52

My computer has only one wifi card (inbuilt in the laptop). But, I am seeing two entries as shown in the above screenshot. Internet works only with one of the devices decided at random. So, often I choose one device, check internet and choose the other when internet does not work.

vivek@vivek-laptop:~$ sudo lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 5986:065e Acer, Inc 
Bus 001 Device 002: ID 0bda:b720 Realtek Semiconductor Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
vivek@vivek-laptop:~$ iwconfig
lo        no wireless extensions.

wlp0s20u4i2  unassociated  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency=2.412 GHz  Access Point: Not-Associated   
          Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

wlxcc79cfd70c41  IEEE 802.11bgn  ESSID:"ssid"  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency:2.462 GHz  Access Point: F4:9E:F0:FF:73:9F   
          Bit Rate:150 Mb/s   Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=89/100  Signal level=100/100  Noise level=0/100
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

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.