From: Luca Coelho <luca@coelho.fi>
To: Arend van Spriel <arend@broadcom.com>
Cc: Johannes Berg <johannes@sipsolutions.net>,
Jouni Malinen <j@w1.fi>,
"hostap@lists.shmoo.com" <hostap@lists.shmoo.com>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: scheduled scan api
Date: Mon, 26 May 2014 14:54:34 +0300 [thread overview]
Message-ID: <1401105274.4431.9.camel@dubbel> (raw)
In-Reply-To: <536A1FA9.7010404@broadcom.com>
Hi Arend,
I'm replying to this since I've been "somewhat" involved in the
implementation. ;)
I think it will make more sense if you check the nl80211 doc:
---8<----
* @NL80211_ATTR_SCHED_SCAN_MATCH: Nested attribute with one or more
* sets of attributes to match during scheduled scans. Only BSSs
* that match any of the sets will be reported. These are
* pass-thru filter rules.
* For a match to succeed, the BSS must match all attributes of a
* set. Since not every hardware supports matching all types of
* attributes, there is no guarantee that the reported BSSs are
* fully complying with the match sets and userspace needs to be
* able to ignore them by itself.
* Thus, the implementation is somewhat hardware-dependent, but
* this is only an optimization and the userspace application
* needs to handle all the non-filtered results anyway.
* If the match attributes don't make sense when combined with
* the values passed in @NL80211_ATTR_SCAN_SSIDS (eg. if an SSID
* is included in the probe request, but the match attributes
* will never let it go through), -EINVAL may be returned.
* If ommited, no filtering is done.
---8<----
Especially the second paragraph. This means that for the SSIDs, a
broadcast SSID means that everything goes through, there is no filtering
of SSIDs. You can use that for RSSI-only matches with a single RSSI
match attribute (so you don't need to specify an RSSI attribute for
every SSID you need to match).
This is a bit unclear, but it's due to some confusion that was
introduced when the RSSI match attribute was added.
--
Luca.
On Wed, 2014-05-07 at 13:57 +0200, Arend van Spriel wrote:
> Hi Johannes,
>
> I received a couple of reports from people who got problem with brcmfmac
> when a scheduled scan is requested, without any ssid specified.
> Currently, brcmfmac basically rejects the request. So what are valid
> usage scenarios for scheduled scans with respect to the n_ssid,
> n_channels, and n_matchsets. In the kernel doc below it says a
> zero-length ssid means 'no match'. I suppose it means any ssid which
> signal is above RRSI threshold will match.
>
> Regards,
> Arend
> ---8<----------------------------------------------------------
> /**
> * struct cfg80211_match_set - sets of attributes to match
> *
> * @ssid: SSID to be matched; may be zero-length for no match (RSSI only)
> * @rssi_thold: don't report scan results below this threshold (in s32 dBm)
> */
> _______________________________________________
> HostAP mailing list
> HostAP@lists.shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap
prev parent reply other threads:[~2014-05-26 11:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-07 11:57 scheduled scan api Arend van Spriel
2014-05-26 11:54 ` Luca Coelho [this message]
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=1401105274.4431.9.camel@dubbel \
--to=luca@coelho.fi \
--cc=arend@broadcom.com \
--cc=hostap@lists.shmoo.com \
--cc=j@w1.fi \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.