From: Lukasz Majewski <lukma@denx.de>
To: Sharvari Harisangam <sharvari.harisangam@nxp.com>,
Ganapathi Bhat <ganapathi.bhat@nxp.com>
Cc: "Pali Rohár" <pali@kernel.org>,
linux-firmware@kernel.org, l.majewski@majess.pl,
"Marek Behún" <marek.behun@nic.cz>
Subject: Re: wifi: 88W8801: Newest firmware for sd8801_uapsta.bin bug
Date: Fri, 11 Feb 2022 12:12:24 +0100 [thread overview]
Message-ID: <20220211121224.42ea2868@ktm> (raw)
In-Reply-To: <20210524145822.5ac95365@ktm>
[-- Attachment #1.1: Type: text/plain, Size: 5290 bytes --]
Dear Ganapathi and Sharvari
> Dear Ganapathi and Sharvari
>
> > Hi Pali,
> >
> > > On Saturday 08 May 2021 13:29:11 Pali Rohár wrote:
> > > > + Sharvari and Ganapathi
> > > >
> > > > To let you know about this mwifiex firmware issue. Could you
> > > > look at it?
> > > >
> > > > On Friday 07 May 2021 15:17:02 Lukasz Majewski wrote:
> > > > > Dear community,
> > > > >
> > > > > I would like to report that the version: 14.68.36.p204 of
> > > > > sd8801_uapsta.bin binary (newest, SHA1:
> > > > > ecdfcf8e2ca15f5682ab94fd30ba29fb869b24a7) has the issue with
> > > > > getting channel info (HostCmd_CMD_STA_CONFIGURE command
> > > > > execution).
> > > > >
> > > > > As a result the module seems to be stuck and no transmission
> > > > > is performed.
> > > > >
> > > > > The issue is not present in 14.68.36.p146 verson of the
> > > > > firmware.
> > >
> > > And FYI, NXP has newer version 14.76.36.p139 of this
> > > sd8801_uapsta.bin firmware in their mwifiex-firmware github
> > > repository:
> > >
> > > https://github.com/NXP/mwifiex-firmware/commit/c38b125a920a695d360b62e8b1f7fb1c4e1afd46
> > >
> > > I hope that Sharvari or Ganapathi brings some light in this
> > > issue...
> >
> > Thanks for sharing this issue with NXP developers.
> >
> > >
> > > Lukasz, meanwhile could you try to check if this new firmware
> > > version has this issue fixed?
> > >
> >
> > It looks like the issue is still there (even new errors pops up when
> > compared to the original one):
> >
> > root@mx6ul:~# dmesg|grep sdio
> > [ 29.025231] mwifiex_sdio mmc0:0001:1: info: FW download over,
> > size 262660 bytes [ 29.310488] mwifiex_sdio mmc0:0001:1: WLAN FW
> > is active [ 29.390778] mwifiex_sdio mmc0:0001:1: CMD_RESP: cmd
> > 0x242 error, result=0x2 [ 29.398245] mwifiex_sdio mmc0:0001:1:
> > mwifiex_process_cmdresp: cmd 0x242 failed during
> > initialization [ 29.707952] mwifiex_sdio mmc0:0001:1: info:
> > MWIFIEX VERSION: mwifiex 1.0 (14.76.36.p139) [ 29.717360]
> > mwifiex_sdio mmc0:0001:1: driver_version = mwifiex 1.0
> > (14.76.36.p139)
> >
> > root@mx6ul:~# ./tst_sdio.sh
> > + wpa_supplicant -B -i mlan0 -c /etc/wpa_supplicant.conf
> > Successfully initialized wpa_supplicant
> > + sleep 3
> > [ 251.425350] mwifiex_sdio mmc0:0001:1: CMD_RESP: cmd 0x107 error,
> > result=0x2
> > + udhcpc -i mlan0
> > udhcpc: started, v1.31.1
> > udhcpc: sending discover
> > [ 256.476210] mwifiex_sdio mmc0:0001:1: CMD_RESP: cmd 0x107 error,
> > result=0x2 udhcpc: sending discover
> > udhcpc: sending discover
> > [ 261.497057] mwifiex_sdio mmc0:0001:1: CMD_RESP: cmd 0x107 error,
> > result=0x2 [ 261.507859] ieee80211 phy0: sched_scan start :
> > n_ssids=1 n_match_sets=1 [ 261.515872] ieee80211 phy0:
> > n_channels=13 interval=10 ie_len=0
> >
> >
> > Please pay attention to the new "cmd 0x107 error, result=0x2" issue
> > with this new FW version.
>
> Is there any update on this issue? Ganapathi and Sharvari, have you
> managed to make the STA mode working on with the newest FW for
> 88W8801 ?
It looks like there was no update on the linux-firmware repository for
sd8801_uapsta.bin binary in the official linux-firmware tree.
I can share that I've tested: 14.68.36.p160 version with mwifiex driver
on 5.4.y kernel and the STA mode works.
The used NXP soc is imx6ull, and wi-fi is SDIO connected 88W8801.
However, there is the issue with AP mode. Please find attached logs and
reproduction procedure.
Is there any schedule for releasing new FW for this wifi chip?
>
> Thanks in advance for sharing the knowledge.
>
> >
> > > > > For reproduction one needs to execute:
> > > > > #! /bin/sh
> > > > > set -x
> > > > > wpa_supplicant -B -i mlan0 -c /etc/wpa_supplicant.conf
> > > > > sleep 3
> > > > > dhclient mlan0
> > > > >
> > > > > exit 0
> > > > >
> > > > >
> > > > >
> > > > > I'm using the Azurewave AW-NM191NF module (with 88W8801 SoC).
> > > > >
> > > > > Best regards,
> > > > >
> > > > > Lukasz Majewski
> > > > >
> > > > > --
> > > > >
> > > > > DENX Software Engineering GmbH, Managing Director:
> > > > > Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194
> > > > > Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax:
> > > > > (+49)-8142-66989-80 Email: lukma@denx.de
> >
> >
> >
> > Best regards,
> >
> > Lukasz Majewski
> >
> > --
> >
> > DENX Software Engineering GmbH, Managing Director: Wolfgang
> > Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell,
> > Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email:
> > lukma@denx.de
>
>
>
> Best regards,
>
> Lukasz Majewski
>
> --
>
> DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email:
> lukma@denx.de
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de
[-- Attachment #1.2: AP_88W8801-issue-lukma.txt --]
[-- Type: text/plain, Size: 5282 bytes --]
Linux 5.4.24
Driver mwifiex (open source)
Status: STA works as expected, AP (FW issue)
hostapd v2.9
Wifi: 88W8801 (azzure)
SoC - imx6ull
cat /etc/hostapd.conf
interface=mlan0
channel=1
driver=nl80211
ssid=imx6ullevk
auth_algs=1
ignore_broadcast_ssid=0
hw_mode=g
wpa=2
wpa_passphrase=foofoofoo
wpa_key_mgmt=WPA-PSK
Logs after boot up:
[ 21.334518] mwifiex_sdio mmc0:0001:1: info: FW download over, size 260184 bytes
[ 21.567047] mwifiex_sdio mmc0:0001:1: WLAN FW is active
[ 21.610346] mwifiex_sdio mmc0:0001:1: CMD_RESP: cmd 0x242 error, result=0x2
[ 21.610495] mwifiex_sdio mmc0:0001:1: mwifiex_process_cmdresp: cmd 0x242 failed during initialization
[ 21.699920] mwifiex_sdio mmc0:0001:1: info: MWIFIEX VERSION: mwifiex 1.0 (14.68.36.p160)
[ 21.699946] mwifiex_sdio mmc0:0001:1: driver_version = mwifiex 1.0 (14.68.36.p160)
hostapd -d -B -i mlan0 /etc/hostapd.conf
[ 127.849506] mwifiex_sdio mmc0:0001:1: mwifiex_cmd_timeout_func: Timeout cmd id = 0xb1, act = 0x0
[ 127.849536] mwifiex_sdio mmc0:0001:1: num_data_h2c_failure = 0
[ 127.849554] mwifiex_sdio mmc0:0001:1: num_cmd_h2c_failure = 0
[ 127.849569] mwifiex_sdio mmc0:0001:1: is_cmd_timedout = 1
[ 127.849582] mwifiex_sdio mmc0:0001:1: num_tx_timeout = 0
[ 127.849598] mwifiex_sdio mmc0:0001:1: last_cmd_index = 4
[ 127.849617] mwifiex_sdio mmc0:0001:1: last_cmd_id: 28 00 28 00 5b 00 b0 00 b1 00
[ 127.849635] mwifiex_sdio mmc0:0001:1: last_cmd_act: 13 00 13 00 01 00 01 00 00 00
[ 127.849650] mwifiex_sdio mmc0:0001:1: last_cmd_resp_index = 3
[ 127.849665] mwifiex_sdio mmc0:0001:1: last_cmd_resp_id: 28 80 28 80 5b 80 b0 80 28 80
[ 127.849679] mwifiex_sdio mmc0:0001:1: last_event_index = 4
[ 127.849695] mwifiex_sdio mmc0:0001:1: last_event: 00 00 0b 00 0a 00 0b 00 0a 00
[ 127.849709] mwifiex_sdio mmc0:0001:1: data_sent=0 cmd_sent=1
[ 127.849726] mwifiex_sdio mmc0:0001:1: ps_mode=1 ps_state=0
[ 127.850131] mwifiex_sdio mmc0:0001:1: Failed to start the BSS
[ 127.850154] mwifiex_sdio mmc0:0001:1: Failed to start AP
[ 127.851443] mwifiex_sdio mmc0:0001:1: PREP_CMD: FW is in bad state
[ 127.851470] mwifiex_sdio mmc0:0001:1: deleting the crypto keys
[ 127.851980] mwifiex_sdio mmc0:0001:1: PREP_CMD: FW is in bad state
[ 127.852004] mwifiex_sdio mmc0:0001:1: deleting the crypto keys
[ 127.852477] mwifiex_sdio mmc0:0001:1: PREP_CMD: FW is in bad state
[ 127.852500] mwifiex_sdio mmc0:0001:1: deleting the crypto keys
[ 127.852975] mwifiex_sdio mmc0:0001:1: PREP_CMD: FW is in bad state
[ 127.852996] mwifiex_sdio mmc0:0001:1: deleting the crypto keys
[ 127.865552] mwifiex_sdio mmc0:0001:1: ===mwifiex driverinfo dump start===
[ 127.865593] mwifiex_sdio mmc0:0001:1: info: MWIFIEX VERSION: mwifiex 1.0 (14.68.36.p160)
[ 127.865645] mwifiex_sdio mmc0:0001:1: SDIO register dump start
[ 127.866398] mwifiex_sdio mmc0:0001:1: SDIO Func0 (0x0-0x9): 32 02 02 02 03 00 00 02 03 00
[ 127.867807] mwifiex_sdio mmc0:0001:1: SDIO Func1 (0x0-0x9): 02 3f 03 00 00 00 ff 0f ad 00
[ 127.868155] mwifiex_sdio mmc0:0001:1: SDIO Func1: (0x28) 00 (0x30) 08 (0x34) 07 (0x38) 10 (0x3c) 00
[ 127.868859] mwifiex_sdio mmc0:0001:1: SDIO Func1 (0x60-0x6a): dc fe c8 00 c1 02 07 47 46 00 20
[ 127.907493] mwifiex_sdio mmc0:0001:1: PREP_CMD: FW is in bad state
[ 127.907737] mwifiex_sdio mmc0:0001:1: PREP_CMD: FW is in bad state
[ 127.907756] mwifiex_sdio mmc0:0001:1: PREP_CMD: FW is in bad state
[ 128.075589] mwifiex_sdio mmc0:0001:1: PREP_CMD: FW is in bad state
[ 128.075623] mwifiex_sdio mmc0:0001:1: PREP_CMD: FW is in bad state
[ 128.075664] mwifiex_sdio mmc0:0001:1: mlan0: changing to 2 not supported
[ 128.075995] mwifiex_sdio mmc0:0001:1: PREP_CMD: FW is in bad state
[ 128.076286] mwifiex_sdio mmc0:0001:1: PREP_CMD: FW is in bad state
[ 128.076599] mwifiex_sdio mmc0:0001:1: mlan0: changing to 2 not supported
[ 128.099476] mwifiex_sdio mmc0:0001:1: PREP_CMD: FW is in bad state
[ 128.099503] mwifiex_sdio mmc0:0001:1: PREP_CMD: FW is in bad state
[ 128.099732] mwifiex_sdio mmc0:0001:1: PREP_CMD: FW is in bad state
[ 128.099752] mwifiex_sdio mmc0:0001:1: PREP_CMD: FW is in bad state
[ 128.118086] mwifiex_sdio mmc0:0001:1: SDIO Func1 (0x60-0x6a): dc fe c8 00 c1 02 07 47 46 00 20
[ 128.118124] mwifiex_sdio mmc0:0001:1: SDIO register dump end
[ 128.118437] mwifiex_sdio mmc0:0001:1: ===mwifiex driverinfo dump end===
[ 128.118465] mwifiex_sdio mmc0:0001:1: == mwifiex dump information to /sys/class/devcoredump start
[ 128.122393] mwifiex_sdio mmc0:0001:1: == mwifiex dump information to /sys/class/devcoredump end
[ 128.131774] mwifiex_sdio mmc0:0001:1: info: shutdown mwifiex...
[ 128.167775] mwifiex_sdio mmc0:0001:1: PREP_CMD: card is removed
[ 129.161305] mwifiex_sdio mmc0:0001:1: info: FW download over, size 260184 bytes
[ 129.399453] mwifiex_sdio mmc0:0001:1: WLAN FW is active
[ 129.436070] mwifiex_sdio mmc0:0001:1: CMD_RESP: cmd 0x242 error, result=0x2
[ 129.436228] mwifiex_sdio mmc0:0001:1: mwifiex_process_cmdresp: cmd 0x242 failed during initialization
[ 129.517345] mwifiex_sdio mmc0:0001:1: info: MWIFIEX VERSION: mwifiex 1.0 (14.68.36.p160)
[ 129.517371] mwifiex_sdio mmc0:0001:1: driver_version = mwifiex 1.0 (14.68.36.p160)
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2022-02-11 11:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-07 13:17 wifi: 88W8801: Newest firmware for sd8801_uapsta.bin bug Lukasz Majewski
2021-05-08 11:29 ` Pali Rohár
2021-05-08 11:37 ` Pali Rohár
2021-05-10 8:54 ` Lukasz Majewski
2021-05-24 12:58 ` Lukasz Majewski
2022-02-11 11:12 ` Lukasz Majewski [this message]
2022-07-06 12:35 Thomas Schaefer
2022-07-07 8:10 ` Lukasz Majewski
2022-07-07 13:49 ` AW: " Thomas Schaefer
2022-07-07 14:30 ` Lukasz Majewski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220211121224.42ea2868@ktm \
--to=lukma@denx.de \
--cc=ganapathi.bhat@nxp.com \
--cc=l.majewski@majess.pl \
--cc=linux-firmware@kernel.org \
--cc=marek.behun@nic.cz \
--cc=pali@kernel.org \
--cc=sharvari.harisangam@nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).