starfive-tech / Fedora_on_StarFive

62 stars 12 forks source link

[WIFI] No response in terminal after connect to a wireless hotspot sometimes #8

Closed MichaelZhuxx closed 3 years ago

MichaelZhuxx commented 3 years ago

Based on fedora image: Fedora-riscv64-vic7100-dev-raw-image-Rawhide-20210419121453.n.0-sda.raw

Do modprobe wifi driver successfully, then use nmtui to connect/active a wireless hotspot, there is no response of the terminal phenomenon sometimes

here is the demsg log:

[ 2082.717455] [dhd-wlan0] wl_cfg80211_disconnect : Reason 3, act 1
[ 2082.765055] [dhd-wlan0] wl_iw_event : [0 times] disconnected with 80:ea:07:44:80:8f, event 11, reason 8
[ 2082.801524] [dhd-wlan0] wl_ext_iapsta_event : [S] Link down with 80:ea:07:44:80:8f, WLC_E_DISASSOC(11), reason 8
[ 2082.846881] [dhd] CFG80211-ERROR) wl_is_linkdown : Link down Reason : WLC_E_LINK
[ 2082.846894] [dhd-wlan0] wl_iw_event : Link Down with 80:ea:07:44:80:8f, reason=2
[ 2082.846959] [dhd-wlan0] wl_ext_iapsta_event : [S] Link down with 80:ea:07:44:80:8f, WLC_E_LINK(16), reason 2
[ 2082.881281] [dhd] CFG80211-ERROR) wl_is_linkdown : Link down Reason : WLC_E_LINK
[ 2082.986485] [dhd] CFG80211-ERROR) wl_notify_connect_status : link down--clearing disconnect IEs
[ 2083.719307] [dhd] CFG80211-ERROR) wl_cfg80211_disconnect : Clearing disconnect IEs 
[ 2083.851858] [dhd] [wlan0] tx queue stopped
[ 2083.883614] [dhd] dhd_stop: Enter wlan0
[ 2083.918087] [dhd] dhd_stop: ######### dhd_stop called for ifidx=0 #########
[ 2083.951859] [dhd] dhd_stop: making dhdpub up FALSE
[ 2083.988123] [dhd] CFG80211-ERROR) wl_cfg80211_set_mgmt_vndr_ies : vndr ie set error : -30
[ 2084.026559] [dhd] WLC_E_IF: NO_IF set, event Ignored
[ 2084.026596] [dhd] CFG80211-ERROR) wl_cfgp2p_down : Clean up the p2p discovery IF
[ 2084.058643] [dhd] dhd_rx_frame: net device is NOT registered. drop event packet
[ 2084.179342] [dhd] CFGP2P-ERROR) wl_cfgp2p_del_p2p_disc_if : P2P interface unregistered
[ 2084.214296] [dhd] dhd_tcpack_suppress_set: TCP ACK Suppress mode 1 -> mode 0
[ 2084.248459] [dhd-wlan0] wl_android_wifi_off : in g_wifi_on=1, on_failure=1
[ 2084.289875] [dhd] dhd_bus_devreset: == Power OFF ==
[ 2084.322323] [dhd] dhd_bus_stop: making DHD_BUS_DOWN
[ 2084.354252] [dhd] dhd_bus_devreset: making dhdpub up FALSE
[ 2084.386678] [dhd] dhd_txglom_enable: enable 0
[ 2084.417834] [dhd] dhd_bus_devreset: making DHD_BUS_DOWN
[ 2084.449869] [dhd] dhd_bus_devreset:  WLAN OFF DONE
[ 2084.481689] [dhd] wifi_platform_set_power = 0, delay: 0 msec
[ 2084.514016] [dhd] ======== PULL WL_REG_ON(37) LOW! ========
[ 2084.546332] [dhd-wlan0] wl_android_wifi_off : out
[ 2084.577876] [dhd] dhd_stop: Exit wlan0
[ 2084.612233] [dhd] dhd_set_mac_addr_handler: interface info not available/down 
[ 2084.748442] [dhd] dhd_open: Enter wlan0
[ 2084.778929] [dhd] dhd_open : no mutex held. set lock
[ 2084.810576] [dhd] 
               Dongle Host Driver, version 100.10.545.13 (r826445-20200914-2)
[ 2084.872363] [dhd-wlan0] wl_android_wifi_on : in g_wifi_on=0
[ 2084.904543] [dhd] wifi_platform_set_power = 1, delay: 200 msec
[ 2084.936913] [dhd] ======== PULL WL_REG_ON(37) HIGH! ========
[ 2085.293272] mmc_host mmc0: Bus speed (slot 0) = 100000000Hz (slot req 100000Hz, actual 100000HZ div = 500)
[ 2085.345060] mmc0: queuing unknown CIS tuple 0x80 (2 bytes)
[ 2085.379911] mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
[ 2085.414527] mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
[ 2085.451105] mmc0: queuing unknown CIS tuple 0x80 (7 bytes)
[ 2085.488236] mmc0: queuing unknown CIS tuple 0x81 (9 bytes)
[ 2085.652608] mmc_host mmc0: Bus speed (slot 0) = 100000000Hz (slot req 10000000Hz, actual 10000000HZ div = 5)
[ 2085.689366] [dhd] sdioh_start: set sd_f2_blocksize 256
[ 2085.721777] [dhd] dhd_bus_devreset: == Power ON ==
[ 2085.753560] [dhd] F1 signature read @0x18000000=0x1542a9a6
[ 2085.794002] [dhd] F1 signature OK, socitype:0x1 chip:0xa9a6 rev:0x2 pkg:0x4
[ 2085.830669] [dhd] DHD: dongle ram size is set to 524288(orig 524288) at 0x0
[ 2085.865080] [dhd] dhd_bus_devreset: making DHD_BUS_DOWN
[ 2085.897595] [dhd] dhdsdio_probe_init: making DHD_BUS_DOWN
[ 2085.930552] [dhd] dhd_os_open_image1: /usr/lib/firmware/brcm/config.txt (63 bytes) open success
[ 2085.966790] ------------[ cut here ]------------
[ 2085.998675] kernel BUG at mm/slub.c:304!
[ 2086.029941] Kernel BUG [#1]
[ 2086.059999] Modules linked in: bcmdhd cfg80211 nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat nf_tables ebtable_nat ebtable_broute ip6table_nat ip6table_mangle ip6tas
[ 2086.185997] CPU: 1 PID: 478 Comm: NetworkManager Tainted: G        W    L    5.10.6+ #26
[ 2086.222265] epc: ffffffe0003c3b82 ra : ffffffe0003c42dc sp : ffffffe08d912f10
[ 2086.257565]  gp : ffffffe0018416a8 tp : ffffffe080738000 t0 : 000000000000005c
[ 2086.292951]  t1 : 00000000000002c6 t2 : ffffffe000ea9d88 s0 : ffffffe08d912fe0
[ 2086.328361]  s1 : 0000000000000001 a0 : ffffffe0003c42dc a1 : 0000000080040003
[ 2086.363797]  a2 : 0000ff0000000000 a3 : ffffffe08158a000 a4 : ffffffe08158b000
[ 2086.399231]  a5 : ffffffdf81e6d11a a6 : 00ff000000000000 a7 : 00ff000000000000
[ 2086.434876]  s2 : ffffffe08158a000 s3 : 0000000000210d00 s4 : 000000ff00000000
[ 2086.470248]  s5 : ffffffcf0405e200 s6 : ffffffe0018ab6d8 s7 : ffffffe08158a000
[ 2086.505530]  s8 : ffffffe07fe01200 s9 : ffffffe08158a000 s10: 00000000000000ff
[ 2086.540718]  s11: 000000000000ff00 t3 : 000000000000000a t4 : 000000000000003f
[ 2086.575836]  t5 : 0000000000000001 t6 : 0000000000000023
[ 2086.608942] status: 0000000200000120 badaddr: ffffffcf0405e228 cause: 0000000000000003
[ 2086.644831] ---[ end trace 7780a39c0c7db0a2 ]---
pdp7 commented 3 years ago

@MichaelZhuxx should we close as this was about bcmdhd?

MichaelZhuxx commented 3 years ago

sure