brektrou / rtl8821CU

Realtek RTL8811CU/RTL8821CU USB Wi-Fi adapter driver for Linux
GNU General Public License v2.0
1.59k stars 462 forks source link

RTL8821CU crash when joining an unsecured WiFi network #16

Open edmont opened 5 years ago

edmont commented 5 years ago

I am having issues to make a RTL8821CU dongle work in this host:

root@localhost:~# uname -a
Linux localhost 4.19.64-sunxi #5.93 SMP Mon Aug 5 14:17:36 CEST 2019 armv7l GNU/Linux
root@localhost:~# lsusb | grep Realtek
Bus 005 Device 004: ID 0bda:c820 Realtek Semiconductor Corp.

I just tried to join an unsecured 2.4 GHz network, but something crashed:

root@localhost:~# iwconfig wlxd0c0bfba4179 essid "AndroidAP"
root@localhost:~# ifconfig wlxd0c0bfba4179 up
root@localhost:~# dmesg
[ 2182.251001] RTW: set ssid [AndroidAP] fw_state=0x00000008
[ 2186.483412] RTW: start auth
[ 2186.488471] RTW: auth success, start assoc
[ 2186.495820] RTW: assoc success
[ 2186.495928] ------------[ cut here ]------------
[ 2186.496241] WARNING: CPU: 2 PID: 6739 at net/wireless/sme.c:752 __cfg80211_connect_result+0x264/0x2d4 [cfg80211]
[ 2186.496264] Modules linked in: appletalk ax25 zstd evdev btusb btbcm btintel 8821cu(O) sun8i_codec_analog snd_soc_simple_card btrtl snd_soc_simple_card_utils lima bluetooth sun8i_adda_pr_regmap sun4i_i2s gpu_sched snd_soc_core ttm snd_pcm_dmaengine snd_pcm ecdh_generic sun4i_gpadc_iio cfg80211 snd_timer industrialio snd cdc_acm soundcore cdc_ether sun8i_ths usbnet gpio_keys uio_pdrv_genirq uio cpufreq_dt thermal_sys zram usb_f_acm u_serial g_serial libcomposite ip_tables x_tables
[ 2186.496531] CPU: 2 PID: 6739 Comm: kworker/u8:0 Tainted: G        W  O      4.19.64-sunxi #5.93
[ 2186.496538] Hardware name: Allwinner sun8i Family
[ 2186.496706] Workqueue: cfg80211 cfg80211_event_work [cfg80211]
[ 2186.496759] [<c010d74d>] (unwind_backtrace) from [<c010a2f1>] (show_stack+0x11/0x14)
[ 2186.496786] [<c010a2f1>] (show_stack) from [<c08fc401>] (dump_stack+0x69/0x78)
[ 2186.496815] [<c08fc401>] (dump_stack) from [<c011b25d>] (__warn+0xa1/0xb4)
[ 2186.496840] [<c011b25d>] (__warn) from [<c011b337>] (warn_slowpath_null+0x2f/0x34)
[ 2186.496989] [<c011b337>] (warn_slowpath_null) from [<bf923755>] (__cfg80211_connect_result+0x264/0x2d4 [cfg80211])
[ 2186.497259] [<bf923755>] (__cfg80211_connect_result [cfg80211]) from [<bf90384b>] (cfg80211_process_wdev_events+0xae/0xec [cfg80211])
[ 2186.497527] [<bf90384b>] (cfg80211_process_wdev_events [cfg80211]) from [<bf9038b1>] (cfg80211_process_rdev_events+0x28/0x68 [cfg80211])
[ 2186.497806] [<bf9038b1>] (cfg80211_process_rdev_events [cfg80211]) from [<bf8ff1e7>] (cfg80211_event_work+0x16/0x1c [cfg80211])
[ 2186.497957] [<bf8ff1e7>] (cfg80211_event_work [cfg80211]) from [<c012e47b>] (process_one_work+0x167/0x384)
[ 2186.497983] [<c012e47b>] (process_one_work) from [<c012f017>] (worker_thread+0xfb/0x3fc)
[ 2186.498006] [<c012f017>] (worker_thread) from [<c0132aed>] (kthread+0xfd/0x104)
[ 2186.498027] [<c0132aed>] (kthread) from [<c01010f9>] (ret_from_fork+0x11/0x38)
[ 2186.498047] Exception stack(0xca057fb0 to 0xca057ff8)
[ 2186.498062] 7fa0:                                     00000000 00000000 00000000 00000000
[ 2186.498079] 7fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2186.498094] 7fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 2186.498105] ---[ end trace 12a9ba06e45a3e3c ]---
[ 2186.498276] IPv6: ADDRCONF(NETDEV_CHANGE): wlxd0c0bfba4179: link becomes ready
[ 2186.504032] RTW: ============ STA [02:1a:11:fd:9e:7b]  ===================
[ 2186.504045] RTW: mac_id : 0
[ 2186.504051] RTW: wireless_mode : 0x0b
[ 2186.504056] RTW: mimo_type : 0
[ 2186.504064] RTW: bw_mode : 20MHz, ra_bw_mode : 20MHz
[ 2186.504070] RTW: rate_id : 3
[ 2186.504077] RTW: rssi : -1 (%), rssi_level : 0
[ 2186.504084] RTW: is_support_sgi : Y, is_vht_enable : N
[ 2186.504090] RTW: disable_ra : N, disable_pt : N
[ 2186.504095] RTW: is_noisy : N
[ 2186.504101] RTW: txrx_state : 0
[ 2186.504109] RTW: curr_tx_rate : CCK_1M (L)
[ 2186.504114] RTW: curr_tx_bw : 20MHz
[ 2186.504120] RTW: curr_retry_ratio : 0
[ 2186.504125] RTW: ra_mask : 0x00000000000fffff