Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wifi driver crashes while trying to reconnect - 88W8997 #5

Open
jerin-omcare opened this issue Sep 10, 2023 · 8 comments
Open

wifi driver crashes while trying to reconnect - 88W8997 #5

jerin-omcare opened this issue Sep 10, 2023 · 8 comments

Comments

@jerin-omcare
Copy link

We are using AW-CM276NF Wifi module with 88W8997chipset in our device. The wifi driver is getting crashed with the log below when we try to reconnect to a wifi network.

[ 401.326751] mwifiex_sdio mmc0:0001:1: info: successfully disconnected from f6:d8:96:29:ab:52: reason code 1
[ 405.464785] mwifiex_sdio mmc0:0001:1: info: trying to associate to bssid f6:d8:96:29:ab:52
[ 406.471395] mwifiex_sdio mmc0:0001:1: ASSOC_RESP: failed, status code=2 err=0xfffa a_id=0x3fff
[ 406.471925] mwifiex_sdio mmc0:0001:1: assoc failure: reason Unknown connect failure
[ 406.472495] mwifiex_sdio mmc0:0001:1: info: association to bssid f6:d8:96:29:ab:52 failed
[ 411.049455] mwifiex_sdio mmc0:0001:1: info: trying to associate to bssid f6:d8:96:29:ab:52
[ 412.056066] mwifiex_sdio mmc0:0001:1: ASSOC_RESP: failed, status code=2 err=0xfffa a_id=0x3fff
[ 412.056595] mwifiex_sdio mmc0:0001:1: assoc failure: reason Unknown connect failure
[ 412.057102] mwifiex_sdio mmc0:0001:1: info: association to bssid f6:d8:96:29:ab:52 failed
[ 417.169912] mwifiex_sdio mmc0:0001:1: info: trying to associate to bssid f6:d8:96:29:ab:52
[ 418.176744] mwifiex_sdio mmc0:0001:1: ASSOC_RESP: failed, status code=2 err=0xfffa a_id=0x3fff
[ 418.177275] mwifiex_sdio mmc0:0001:1: assoc failure: reason Unknown connect failure
[ 418.177772] mwifiex_sdio mmc0:0001:1: info: association to bssid f6:d8:96:29:ab:52 failed
[ 422.434262] mwifiex_sdio mmc0:0001:1: info: trying to associate to bssid f6:d8:96:29:ab:52
[ 423.440750] mwifiex_sdio mmc0:0001:1: ASSOC_RESP: failed, status code=2 err=0xfffa a_id=0x3fff
[ 423.441311] mwifiex_sdio mmc0:0001:1: assoc failure: reason Unknown connect failure
[ 423.441820] mwifiex_sdio mmc0:0001:1: info: association to bssid f6:d8:96:29:ab:52 failed
[ 446.106807] ieee80211 phy0: sched_scan start : n_ssids=1 n_match_sets=1
[ 446.107230] ieee80211 phy0: n_channels=41 interval=10 ie_len=148
[ 447.990792] ieee80211 phy0: sched scan stop!
[ 458.049370] mwifiex_sdio mmc0:0001:1: mwifiex_cmd_timeout_func: Timeout cmd id = 0x6b, act = 0x1
[ 458.049928] mwifiex_sdio mmc0:0001:1: num_data_h2c_failure = 0
[ 458.050283] mwifiex_sdio mmc0:0001:1: num_cmd_h2c_failure = 0
[ 458.050631] mwifiex_sdio mmc0:0001:1: is_cmd_timedout = 1
[ 458.050957] mwifiex_sdio mmc0:0001:1: num_tx_timeout = 0
[ 458.051279] mwifiex_sdio mmc0:0001:1: last_cmd_index = 0
[ 458.051599] mwifiex_sdio mmc0:0001:1: last_cmd_id: 6b 00 07 01 07 01 07 01 6b 00
[ 458.052043] mwifiex_sdio mmc0:0001:1: last_cmd_act: 01 00 00 00 00 00 00 00 01 00
[ 458.052492] mwifiex_sdio mmc0:0001:1: last_cmd_resp_index = 4
[ 458.052839] mwifiex_sdio mmc0:0001:1: last_cmd_resp_id: 07 81 07 81 07 81 07 81 6b 80
[ 458.053306] mwifiex_sdio mmc0:0001:1: last_event_index = 4
[ 458.053637] mwifiex_sdio mmc0:0001:1: last_event: 58 00 58 00 0b 00 0a 00 65 00
[ 458.054073] mwifiex_sdio mmc0:0001:1: data_sent=0 cmd_sent=1
[ 458.054416] mwifiex_sdio mmc0:0001:1: ps_mode=0 ps_state=0
[ 458.064002] mwifiex_sdio mmc0:0001:1: ===mwifiex driverinfo dump start===
[ 458.064467] mwifiex_sdio mmc0:0001:1: info: MWIFIEX VERSION: mwifiex 1.0 (16.68.1.p197)
[ 458.064975] mwifiex_sdio mmc0:0001:1: SDIO register dump start
[ 458.068188] mwifiex_sdio mmc0:0001:1: SDIO Func0 (0x0-0x9): 43 03 02 02 03 02 00 02 03 00
[ 458.068950] mwifiex_sdio mmc0:0001:1: SDIO Func1 (0x10-0x17): 00 00 00 00 00 00 f8 ff
[ 458.089631] mwifiex_sdio mmc0:0001:1: SDIO Func1: (0x8) c3 (0x58) 00 (0x5c) 48 (0x5d) 00 (0x60) 07 (0x61) 0c (0x62) 00 (0x64) 10 (0x65) 00 (0x66) 00 (0x68) 00 (0x69) 00 (0x6a) 00
[ 458.092877] mwifiex_sdio mmc0:0001:1: SDIO Func1 (0xe8-0xf2): dc fe 18 00 f3 00 3f d1 d1 01 70
[ 458.134717] mwifiex_sdio mmc0:0001:1: Ignore scan. Card removed or firmware in bad state
[ 458.135221] mwifiex_sdio mmc0:0001:1: scan failed: -14
[ 458.230172] mwifiex_sdio mmc0:0001:1: SDIO Func1 (0xe8-0xf2): dc fe 2a 00 01 00 3f d1 d1 01 70
[ 458.230915] mwifiex_sdio mmc0:0001:1: SDIO register dump end
[ 458.231338] mwifiex_sdio mmc0:0001:1: ===mwifiex driverinfo dump end===
[ 458.232059] mwifiex_sdio mmc0:0001:1: == mwifiex firmware dump start ==
[ 458.263530] mwifiex_sdio mmc0:0001:1: Fail to pull ctrl_data
[ 458.263884] mwifiex_sdio mmc0:0001:1: firmware dump failed
[ 458.264401] mwifiex_sdio mmc0:0001:1: == mwifiex dump information to /sys/class/devcoredump start
[ 458.267768] mwifiex_sdio mmc0:0001:1: == mwifiex dump information to /sys/class/devcoredump end
[ 458.268530] mwifiex_sdio mmc0:0001:1: DNLD_CMD: FW in reset state, ignore cmd 0x28
[ 458.279216] mwifiex_sdio mmc0:0001:1: info: shutdown mwifiex...
[ 458.281557] mwifiex_sdio mmc0:0001:1: PREP_CMD: card is removed
[ 458.297111] mwifiex_sdio mmc0:0001:1: PREP_CMD: card is removed
[ 459.456997] mwifiex_sdio mmc0:0001:1: info: FW download over, size 623240 bytes
[ 460.409318] mwifiex_sdio mmc0:0001:1: WLAN FW is active
[ 460.471399] mwifiex_sdio mmc0:0001:1: info: MWIFIEX VERSION: mwifiex 1.0 (16.68.1.p197)
[ 460.471904] mwifiex_sdio mmc0:0001:1: driver_version = mwifiex 1.0 (16.68.1.p197)
[ 460.477732] mwifiex_sdio mmc0:0001:1 wlan0: renamed from mlan0
[ 465.171548] mwifiex_sdio mmc0:0001:1: info: trying to associate to bssid e8:9f:80:13:74:eb
[ 465.195957] mwifiex_sdio mmc0:0001:1: info: associated to bssid e8:9f:80:13:74:eb successfully
[ 468.304620] mwifiex_sdio mmc0:0001:1: info: successfully disconnected from e8:9f:80:13:74:eb: reason code 15
[ 472.442824] mwifiex_sdio mmc0:0001:1: info: trying to associate to bssid e8:9f:80:13:74:eb
[ 472.466416] mwifiex_sdio mmc0:0001:1: info: associated to bssid e8:9f:80:13:74:eb successfully
[ 475.574180] mwifiex_sdio mmc0:0001:1: info: successfully disconnected from e8:9f:80:13:74:eb: reason code 15
[ 479.712709] mwifiex_sdio mmc0:0001:1: info: trying to associate to bssid e8:9f:80:13:74:eb
[ 479.739568] mwifiex_sdio mmc0:0001:1: info: associated to bssid e8:9f:80:13:74:eb successfully
[ 482.853753] mwifiex_sdio mmc0:0001:1: info: successfully disconnected from e8:9f:80:13:74:eb: reason code 15
[ 486.992099] mwifiex_sdio mmc0:0001:1: info: trying to associate to bssid e8:9f:80:13:74:eb
[ 487.010396] mwifiex_sdio mmc0:0001:1: info: associated to bssid e8:9f:80:13:74:eb successfully
[ 489.984135] mwifiex_sdio mmc0:0001:1: info: successfully disconnected from e8:9f:80:13:74:eb: reason code 3
[ 490.081789] mwifiex_sdio mmc0:0001:1: info: trying to associate to bssid e8:9f:80:13:74:eb
[ 490.095428] mwifiex_sdio mmc0:0001:1: info: associated to bssid e8:9f:80:13:74:eb successfully
[ 493.223039] mwifiex_sdio mmc0:0001:1: info: successfully disconnected from e8:9f:80:13:74:eb: reason code 15
[ 507.237092] mwifiex_sdio mmc0:0001:1: info: trying to associate to bssid e8:9f:80:13:74:eb
[ 507.249399] mwifiex_sdio mmc0:0001:1: info: associated to bssid e8:9f:80:13:74:eb successfully
[ 510.371998] mwifiex_sdio mmc0:0001:1: info: successfully disconnected from e8:9f:80:13:74:eb: reason code 15
[ 515.073561] mwifiex_sdio mmc0:0001:1: info: trying to associate to bssid e8:9f:80:13:74:eb
[ 515.086487] mwifiex_sdio mmc0:0001:1: info: associated to bssid e8:9f:80:13:74:eb successfully
[ 518.201535] mwifiex_sdio mmc0:0001:1: info: successfully disconnected from e8:9f:80:13:74:eb: reason code 15

@jerin-omcare
Copy link
Author

Any updates?

@moataz960
Copy link

We have the exact behavior with another panasonic module: PAN9028

@jerin-omcare
Copy link
Author

In my case disabling the auto deep sleep by setting mwifiex.disable_auto_ds=1 fixed the issue for now. Don't know if this is the right solution.

@diogomattioli
Copy link

diogomattioli commented Oct 2, 2023

@jerin-omcare Which firmware version/revision are you using?

@jerin-omcare
Copy link
Author

jerin-omcare commented Oct 9, 2023

@jerin-omcare Which firmware version/revision are you using?

mwifiex_sdio mmc0:0001:1: info: MWIFIEX VERSION: mwifiex 1.0 (15.68.7.p189)

Kernel version : 5.15.87-2.2.0

@moataz960
Copy link

@jerin-omcare I am not sure which firmware corresponds to this version: 15.68.7.p189 as I do not find this version anywhere. could you please share the exact firmware revision?

@jerin-omcare
Copy link
Author

jerin-omcare commented Oct 10, 2023

@moataz960 Extremely sorry for the confusion. That was for a different module. Please see the correct one:
[ 8.405742] mwifiex_sdio mmc0:0001:1: info: MWIFIEX VERSION: mwifiex 1.0 (16.68.1.p197)
[ 8.406244] mwifiex_sdio mmc0:0001:1: driver_version = mwifiex 1.0 (16.68.1.p197)

@paletteguy
Copy link

paletteguy commented Apr 23, 2024

Info seen when out-of-range and reassocicate.
Mar 22 10:27:34 kernel: mwifiex_sdio mmc1:0001:1: mwifiex_cmd_timeout_func: Timeout cmd id = 0x6b, act = 0x1
Mar 22 10:27:34 kernel: mwifiex_sdio mmc1:0001:1: num_data_h2c_failure = 0
Mar 22 10:27:34 kernel: mwifiex_sdio mmc1:0001:1: num_cmd_h2c_failure = 0
Mar 22 10:27:34 kernel: mwifiex_sdio mmc1:0001:1: is_cmd_timedout = 1
Mar 22 10:27:34 kernel: mwifiex_sdio mmc1:0001:1: num_tx_timeout = 0
Mar 22 10:27:34 kernel: mwifiex_sdio mmc1:0001:1: last_cmd_index = 1
Mar 22 10:27:34 kernel: mwifiex_sdio mmc1:0001:1: last_cmd_id: 6b 00 6b 00 07 01 07 01 07 01
Mar 22 10:27:34 kernel: mwifiex_sdio mmc1:0001:1: last_cmd_act: 01 00 01 00 00 00 00 00 00 00
Mar 22 10:27:34 kernel: mwifiex_sdio mmc1:0001:1: last_cmd_resp_index = 0
Mar 22 10:27:34 kernel: mwifiex_sdio mmc1:0001:1: last_cmd_resp_id: 6b 80 07 81 07 81 07 81 07 81
Mar 22 10:27:34 kernel: mwifiex_sdio mmc1:0001:1: last_event_index = 1
Mar 22 10:27:34 kernel: mwifiex_sdio mmc1:0001:1: last_event: 0a 00 65 00 0b 00 0a 00 0b 00
Mar 22 10:27:34 kernel: mwifiex_sdio mmc1:0001:1: data_sent=0 cmd_sent=1
Mar 22 10:27:34 kernel: mwifiex_sdio mmc1:0001:1: ps_mode=1 ps_state=0
Mar 22 10:27:34 kernel: mwifiex_sdio mmc1:0001:1: ===mwifiex driverinfo dump start===
Mar 22 10:27:34 kernel: mwifiex_sdio mmc1:0001:1: PREP_CMD: FW is in bad state
Mar 22 10:27:34 kernel: mwifiex_sdio mmc1:0001:1: info: MWIFIEX VERSION: mwifiex 1.0 (16.92.21.p84)

And turning off deep sleep is not an option since power consumption will spike too high and cause elevated temperatures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants