On 11/24/22 13:47, Arend van Spriel wrote:
On 11/24/2022 1:54 PM, Andy Green wrote:
[ 17.202348] brcmfmac: brcmf_escan_prep ### List of SSIDs to scan ### 1
[ 17.202350] brcmfmac: brcmf_escan_prep 0: Broadcast scan
[ 17.202352] brcmfmac: brcmf_fil_iovar_data_set ifidx=0, name=escan,
len=180
[ 17.204223] brcmfmac: brcmf_fil_cmd_data Firmware error:
BCME_VERSION (-37)
root@inmusic-az04-mpc:~# [ 44.202645] ieee80211 phy0:
brcmf_run_escan: error (-52)
[ 44.202649] ieee80211 phy0: brcmf_cfg80211_scan: scan error (-52)
The root cause is easy. Basically the brcmfmac driver is not on par with
the firmware. brcmfmac uses escan api version 1 and firmware expects
version 2. Fixing it is going to be more difficult. Things start to
It seems so.
diverge on firmware API level. I already had a patch on the shelf
supporting version 2, but it does not match the API your firmware expects.
I was working on supporting multiple vendors, but I need some rework.
The scanning issue confirms the need for per-vendor support. Hopefully I
can spend some time on it.
If it makes sense for you, I'm willing take a look at your alpha patch
with the idea to align with what the OOT driver does for scan, but I'm
not sure how intricate wading in there is going to get.
I'd need at least some guidance about how to detect which api stack it
wants dynamically if there's more than one "version 2" and likely some
hand-holding about firmware or soc-specific things in places.
-Andy