lwfinger / rtl8723bu

Driver for RTL8723BU
282 stars 143 forks source link

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

Open howardqiao opened 7 years ago

howardqiao commented 7 years ago

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!

howardqiao commented 7 years ago

after disable line 449-454 and line 477-482,then set CONFIG_POWER_SAVING = n in Makefile '/ if ((padapter->bDriverStopped == _TRUE)||(padapter->bSurpriseRemoved== _TRUE)) // { // DBG_871X_LEVEL(_drvalways, "%s: DriverStopped(%d) SurpriseRemoved(%d) break at line %d\n", // FUNCTION, padapter->bDriverStopped, padapter->bSurpriseRemoved, LINE); // break; // }

pi@raspberrypi:~ $ dmesg | grep RTL [ 8.514794] RTL871X: module init start [ 8.514841] RTL871X: rtl8723bu v4.3.6.11_12942.20141204_BTCOEX20140507-4E40 [ 8.514853] RTL871X: rtl8723bu BT-Coex version = BTCOEX20140507-4E40 [ 8.728323] RTL871X: rtw_ndev_init(wlan0) [ 8.731399] RTL871X: module init ret=0 [ 9.961239] RTL871X: RTW_ADAPTIVITY_EN_ENABLE [ 9.961264] RTL871X: RTW_ADAPTIVITY_MODE_NORMAL

pi@raspberrypi:~ $ iwlist wlan0 scanning wlan0 No scan results

' still cannot find any singnal,and cannot start asoc

howardqiao commented 7 years ago

after disable line 449-454 and line 477-482,but set CONFIG_POWER_SAVING = y in Makefile ` pi@raspberrypi:~ $ dmesg | grep RTL [ 9.405998] RTL871X: module init start [ 9.406033] RTL871X: rtl8723bu v4.3.6.11_12942.20141204_BTCOEX20140507-4E40 [ 9.406045] RTL871X: rtl8723bu BT-Coex version = BTCOEX20140507-4E40 [ 9.576217] RTL871X: rtw_ndev_init(wlan0) [ 9.579646] RTL871X: module init ret=0 [ 10.666944] RTL871X: RTW_ADAPTIVITY_EN_ENABLE [ 10.666976] RTL871X: RTW_ADAPTIVITY_MODE_NORMAL [ 13.575320] RTL871X: rtw_set_802_11_connect(wlan0) fw_state=0x00000008 [ 21.581996] RTL871X: nolinked power save enter [ 23.732526] RTL871X: nolinked power save leave [ 23.790906] RTL871X: nolinked power save leave [ 23.944647] RTL871X: nolinked power save leave [ 24.000615] RTL871X: nolinked power save leave [ 25.054916] RTL871X: nolinked power save leave [ 25.110661] RTL871X: nolinked power save leave [ 26.165005] RTL871X: nolinked power save leave [ 26.220731] RTL871X: nolinked power save leave [ 31.280766] RTL871X: nolinked power save leave [ 31.339229] RTL871X: nolinked power save leave [ 36.398584] RTL871X: nolinked power save leave [ 36.457139] RTL871X: nolinked power save leave [ 46.516564] RTL871X: nolinked power save leave [ 46.575205] RTL871X: nolinked power save leave [ 56.633321] RTL871X: nolinked power save leave [ 56.689134] RTL871X: nolinked power save leave

pi@raspberrypi:~ $ iwlist wlan0 scanning | grep ESSID ESSID:"1234567890" ESSID:"TP-LINK_0B52"

`

By iwlist command can be scanned several signals , but still can not be connected to any signal which prompts the connection fails

` cat /var/log/syslog

Aug 14 13:01:34 raspberrypi kernel: [ 562.518609] RTL871X: nolinked power save leave Aug 14 13:01:34 raspberrypi wpa_supplicant[523]: wlan0: Association request to the driver failed Aug 14 13:01:34 raspberrypi kernel: [ 562.573388] RTL871X: nolinked power save leave Aug 14 13:01:44 raspberrypi wpa_supplicant[523]: wlan0: Trying to associate with d6:ee:07:3f:24:75 (SSID='1234567890' freq=2452 MHz) Aug 14 13:01:44 raspberrypi kernel: [ 572.627194] RTL871X: nolinked power save leave Aug 14 13:01:44 raspberrypi wpa_supplicant[523]: wlan0: Association request to the driver failed Aug 14 13:01:44 raspberrypi kernel: [ 572.684376] RTL871X: nolinked power save leave Aug 14 13:01:55 raspberrypi wpa_supplicant[523]: wlan0: Trying to associate with d6:ee:07:3f:24:75 (SSID='1234567890' freq=2452 MHz) Aug 14 13:01:55 raspberrypi kernel: [ 582.738418] RTL871X: nolinked power save leave Aug 14 13:01:55 raspberrypi wpa_supplicant[523]: wlan0: Association request to the driver failed Aug 14 13:01:55 raspberrypi kernel: [ 582.795039] RTL871X: nolinked power save leave `

lwfinger commented 7 years ago

Power?

howardqiao commented 7 years ago

I use with a separate power supply USB HUB, still have the same problem.

Osndok commented 6 years ago

I started to get this message after a recent fedora update, but in my case, the wireless chip is integrated into my x86 tablet.

I've always had an issue with this hardware/driver stopping after long-term use, but I don't recall ever seeing this message before (maybe I've never looked at dmesg during such an outage?).

Usually, just restarting NetworkManager is enough, but in this case, I found that unloading/reloading the module (along with restarting NetworkManager) seems to have worked around the issue, so I have tweaked the script and we'll see if it holds up long-term!