brektrou / rtl8821CU

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

Can't works with linux kernel version 5.4.70 #195

Open ShawnLiaoLSQ opened 1 year ago

ShawnLiaoLSQ commented 1 year ago

below is debug info:

[ 2.702269] RTW: [HALMAC]11692M [ 2.702269] HALMAC_MAJOR_VER = 1 [ 2.702269] HALMAC_PROTOTYPE_VER = 4 [ 2.702269] HALMAC_MINOR_VER = 19 [ 2.702269] HALMAC_PATCH_VER = 3 [ 2.740311] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend [ 2.751346] imx_thermal tempmon: Industrial CPU temperature grade - max:105C critical:100C passive:95C [ 2.782692] snvs_rtc 20cc000.snvs:snvs-rtc-lp: setting system clock to 1970-01-01T01:58:09 UTC (7089) [ 2.889668] SMSC LAN8710/LAN8720 20b4000.ethernet-1:01: attached PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=20b4000.ethernet-1:01, irq=POLL) [ 3.054895] RTW: HW EFUSE [ 3.057587] RTW: 0x000: 29 81 00 BC 09 00 21 00 6E 04 A4 10 10 00 30 0B
[ 3.064821] RTW: 0x010: FF FF FF FF FF FF FF FF FF FF FF 02 FF FF FF FF
[ 3.071964] RTW: 0x020: FF FF 22 21 21 22 24 25 25 26 26 26 27 27 27 27
[ 3.079090] RTW: 0x030: 02 FF FF FF FF FF 0E FF FF FF 1F 1F 20 21 21 21
[ 3.086230] RTW: 0x040: 2A 2A 2A 2B 2B 02 FF FF FF FF FF FF FF FF FF FF
[ 3.093389] RTW: 0x050: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3.100519] RTW: 0x060: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3.107623] RTW: 0x070: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3.114752] RTW: 0x080: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3.121901] RTW: 0x090: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3.129005] RTW: 0x0A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3.136141] RTW: 0x0B0: FF FF FF FF FF FF FF FF 29 1F 1D 00 FF FF FF FF
[ 3.143273] RTW: 0x0C0: FF 00 00 41 00 00 00 00 00 FF 22 FF FF FF FF FF
[ 3.150422] RTW: 0x0D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3.157525] RTW: 0x0E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3.164655] RTW: 0x0F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3.171779] RTW: 0x100: DA 0B 11 C8 E3 46 02 4C 77 66 2E 11 FF 09 03 52
[ 3.178882] RTW: 0x110: 65 61 6C 74 65 6B 0E 03 38 30 32 2E 31 31 61 63
[ 3.186029] RTW: 0x120: 20 4E 49 43 08 03 31 32 33 34 35 36 FF FF FF FF
[ 3.193163] RTW: 0x130: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3.200287] RTW: 0x140: FF FF FF FF 00 00 31 0F FF FF FF FF FF FF FF FF
[ 3.207389] RTW: 0x150: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3.214538] RTW: 0x160: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3.221666] RTW: 0x170: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3.228767] RTW: 0x180: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3.235892] RTW: 0x190: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3.243043] RTW: 0x1A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3.250178] RTW: 0x1B0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3.257281] RTW: 0x1C0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3.264408] RTW: 0x1D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3.271555] RTW: 0x1E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3.278658] RTW: 0x1F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 3.286763] RTW: hal_com_config_channel_plan chplan:0x29 [ 3.296903] RTW: WARN [HALMAC][WARN]power state unchange!! [ 3.320674] RTW: [HALMAC][ALWAYS]shall R reg twice!! [ 3.325696] RTW: WARN rtw_halmac_poweron: Power state abnormal, try to recover...OK [ 3.338044] RTW: WARN [HALMAC][WARN]H2C/C2H ver is compatible!! [ 3.458703] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend [ 3.464594] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend [ 3.470326] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend [ 3.476068] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend [ 3.481822] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend [ 3.487913] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend [ 3.494186] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend [ 3.501251] RTW: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1 [ 5.050235] fec 20b4000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx [ 5.072044] RTW: rtw_ndev_init(wlan0) if1 mac_addr=4c:77:66:2e:11:ff

/ # wpa_supplicant -D wext -c /etc/wpa_supplicant.conf -i wlan0 & / # Successfully initialized wpa_supplicant rfkill: Cannot open RFKILL control device [ 474.081407] RTW: [HALMAC][ALWAYS]shall R reg twice!! [ 474.090171] RTW: WARN [HALMAC][WARN]H2C/C2H ver is compatible!! [ 475.162564] RTW: wlan0- hw port(0) mac_addr =4c:77:66:2e:11:ff [ 475.185161] RTW: set bssid:00:00:00:00:00:00 ioctl[SIOCSIWAP]: Operation not permitted wlan0: Trying to associate with 1c:40:e8:11:81:fb (SSID='DOCK-NET-5G' freq=5180 MHz) Failed to add supported operating classes IE [ 485.627059] RTW: set bssid:1c:40:e8:11:81:fb [ 485.631992] RTW: set ssid [DOCK-NET-5G] fw_state=0x00000088 [ 485.988936] RTW: start auth [ 485.994439] RTW: auth success, start assoc [ 486.001112] RTW: assoc success [ 486.004952] RTW: recv eapol packet [ 486.012382] ------------[ cut here ]------------ [ 486.017234] WARNING: CPU: 0 PID: 107 at net/wireless/sme.c:756 __cfg80211_connect_result+0x440/0x4ec [ 486.027123] Modules linked in: [ 486.030856] CPU: 0 PID: 107 Comm: kworker/u2:0 Not tainted 5.4.70-00001-gf7dc6f0-dirty #1 [ 486.039068] Hardware name: Freescale i.MX6 Ultralite (Device Tree) [ 486.045303] Workqueue: cfg80211 cfg80211_event_work [ 486.050265] [<80110710>] (unwind_backtrace) from [<8010b80c>] (show_stack+0x10/0x14) [ 486.058057] [<8010b80c>] (show_stack) from [<80d26cf8>] (dump_stack+0xa0/0xb4) [ 486.065331] [<80d26cf8>] (dump_stack) from [<80130c00>] (warn+0xd8/0xf0) [ 486.072254] [<80130c00>] (warn) from [<80130cc8>] (warn_slowpath_fmt+0xb0/0xb8) [ 486.079792] [<80130cc8>] (warn_slowpath_fmt) from [<80ccc920>] (cfg80211_connect_result+0x440/0x4ec) [ 486.089155] [<80ccc920>] (cfg80211_connect_result) from [<80ca2c50>] (cfg80211_process_wdev_events+0xf4/0x150) [ 486.099381] [<80ca2c50>] (cfg80211_process_wdev_events) from [<80ca2cdc>] (cfg80211_process_rdev_events+0x30/0x88) [ 486.109780] [<80ca2cdc>] (cfg80211_process_rdev_events) from [<80c9cf04>] (cfg80211_event_work+0x14/0x1c) [ 486.119403] [<80c9cf04>] (cfg80211_event_work) from [<80149f84>] (process_one_work+0x150/0x394) [ 486.128152] [<80149f84>] (process_one_work) from [<8014a528>] (worker_thread+0x2c/0x4f4) [ 486.136290] [<8014a528>] (worker_thread) from [<8014f644>] (kthread+0x148/0x188) [ 486.143731] [<8014f644>] (kthread) from [<801010e8>] (ret_from_fork+0x14/0x2c) [ 486.150979] Exception stack(0x92dbdfb0 to 0x92dbdff8) [ 486.156065] dfa0: 00000000 00000000 00000000 00000000 [ 486.164282] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 486.172494] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 486.180221] ---[ end trace d5d1474fdbbe6dd8 ]--- wlan0: Associated with 1c:40:e8:1[ 486.186876] RTW: send eapol packet 1:81:fb [ 486.194158] RTW: recv eapol packet [ 486.198180] RTW: ============ STA [1c:40:e8:11:81:fb] =================== [ 486.205847] RTW: send eapol packet wlan0: WPA: Key negotiation compl[ 486.210112] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready eted with 1c:40:e8:11:81:fb [PTK=[ 486.219492] RTW: mac_id : 0 CCMP GTK=CCMP] wlan0: CTRL-EVENT[ 486.224769] RTW: wireless_mode : 0x44 -CONNECTED - Connection to 1c:40:[ 486.232113] RTW: mimo_type : 0 e8:11:81:fb completed [id=0 id_st[ 486.237223] RTW: bw_mode : 80MHz, ra_bw_mode : 80MHz r=] [ 486.245143] RTW: rate_id : 10 [ 486.248414] RTW: rssi : 55 (%), rssi_level : 0 [ 486.253044] RTW: is_support_sgi : Y, is_vht_enable : Y [ 486.258300] RTW: disable_ra : N, disable_pt : N [ 486.263714] RTW: is_noisy : N [ 486.266794] RTW: txrx_state : 0 [ 486.270019] RTW: curr_tx_rate : CCK_1M (L) [ 486.274153] RTW: curr_tx_bw : 20MHz [ 486.277652] RTW: curr_retry_ratio : 0 [ 486.281448] RTW: ra_mask : 0x00000000003ffff0 [ 486.281448] [ 486.290361] RTW: set pairwise key camid:4, addr:1c:40:e8:11:81:fb, kid:0, type:AES [ 486.301311] RTW: set group key camid:5, addr:1c:40:e8:11:81:fb, kid:2, type:AES

/ # / # udhcpc -i wlan0 udhcpc: started, v1.29.0 udhcpc: sending discover udhcpc: sending select for 192.168.1.137 udhcpc: lease of 192.168.1.137 obtained, lease time 43200 / # ping -I 192.168.1.137 www.baidu.com PING www.baidu.com (14.215.177.39) from 192.168.1.137: 56 data bytes ping: can't set multicast source interface

/ # ifconfig eth0 Link encap:Ethernet HWaddr 00:1E:AC:11:22:33
inet addr:192.168.1.206 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::21e:acff:fe11:2233/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:5332 errors:0 dropped:0 overruns:0 frame:0 TX packets:2027 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:6740232 (6.4 MiB) TX bytes:359364 (350.9 KiB)

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: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)

wlan0 Link encap:Ethernet HWaddr 4C:77:66:2E:11:FF
inet6 addr: fe80::4e77:66ff:fe2e:11ff/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:518 errors:0 dropped:0 overruns:0 frame:0 TX packets:15 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:94074 (91.8 KiB) TX bytes:2226 (2.1 KiB)

but I can't ping success to 192.168.1.137