From: Arend van Spriel <arend.vanspriel@broadcom.com>
To: "Rafał Miłecki" <zajec5@gmail.com>
Cc: Franky Lin <franky.lin@broadcom.com>,
Hante Meuleman <hante.meuleman@broadcom.com>,
Chi-Hsien Lin <chi-hsien.lin@cypress.com>,
Wright Feng <wright.feng@cypress.com>,
Pieter-Paul Giesberts <pieter-paul.giesberts@broadcom.com>,
"open list:BROADCOM BRCM80211 IEEE802.11n WIRELESS DRIVER"
<brcm80211-dev-list.pdl@broadcom.com>,
"open list:BROADCOM BRCM80211 IEEE802.11n WIRELESS DRIVER"
<brcm80211-dev-list.pdl@broadcom.com>,
brcm80211-dev-list@cypress.com,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: Research + questions on brcmfmac and support for monitor mode
Date: Mon, 18 Jun 2018 21:36:55 +0200 [thread overview]
Message-ID: <5B2809D7.9050503@broadcom.com> (raw)
In-Reply-To: <CACna6rw9BnZvUM47-GEUpWp34eaDYeUz3yAyDpo6z+Z0TpKD8A@mail.gmail.com>
On 6/18/2018 1:54 PM, Rafał Miłecki wrote:
> On Mon, 11 Jun 2018 at 12:48, Arend van Spriel
> <arend.vanspriel@broadcom.com> wrote:
>> On 5/30/2018 1:52 PM, Rafał Miłecki wrote:
>>> I'm providing extra version info of tested firmware images as requested
>>> by Arend in another e-mail thread.
>>
>> Looking into our firmware repo it there are two flags, ie. WL_MONITOR
>> and WL_RADIOTAP. It seems both are set for firmware containing -stamon-
>> feature. Your list below confirms that. I still plan to add indication
>> for WL_RADIOTAP in the "cap" iovar, but a stamon feature check could be
>> used for older firmwares.
>
> The problem is that there isn't a direct mapping between what's
> visible with the "tail" command and what firmware returns for the
> "cap" iovar. Just to be sure I bumped #define MAX_CAPS_BUFFER_SIZE to
> 1024. Firmware that has "stamon" when checked with "tail" command
> doesn't report "stamon" over "cap" iovar. So I can't detect if
> firmware was compiled with WL_MONITOR and WL_RADIOTAP using "cap"
> iovar.
All true. My suggestion is to look for "monitor" and "rtap" in the "cap"
iovar response to detect if firmware is compiled with WL_MONITOR and
WL_RADIOTAP respectively. When one (or both) of these is not detected,
we could fallback to try a stamon iovar and if it is supported enable
both WL_MONITOR and WL_RADIOTAP. I am looking into a good candidate for
the stamon iovar so I can prepare a patch.
Regards,
Arend
next prev parent reply other threads:[~2018-06-18 19:36 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-15 12:29 Research + questions on brcmfmac and support for monitor mode Rafał Miłecki
2018-05-16 8:37 ` Arend van Spriel
2018-05-16 10:42 ` Rafał Miłecki
2018-05-30 11:52 ` Rafał Miłecki
2018-06-11 10:48 ` Arend van Spriel
2018-06-18 11:54 ` Rafał Miłecki
2018-06-18 19:36 ` Arend van Spriel [this message]
2018-06-18 21:46 ` Rafał Miłecki
2018-06-19 5:36 ` Rafał Miłecki
2018-06-19 6:58 ` Rafał Miłecki
2018-06-19 7:27 ` Rafał Miłecki
2018-06-19 7:53 ` Arend van Spriel
2018-06-19 8:32 ` Rafał Miłecki
2018-06-19 10:49 ` Arend van Spriel
2018-06-25 8:39 ` Rafał Miłecki
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=5B2809D7.9050503@broadcom.com \
--to=arend.vanspriel@broadcom.com \
--cc=brcm80211-dev-list.pdl@broadcom.com \
--cc=brcm80211-dev-list@cypress.com \
--cc=chi-hsien.lin@cypress.com \
--cc=franky.lin@broadcom.com \
--cc=hante.meuleman@broadcom.com \
--cc=linux-wireless@vger.kernel.org \
--cc=pieter-paul.giesberts@broadcom.com \
--cc=wright.feng@cypress.com \
--cc=zajec5@gmail.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).