From: Luca Coelho <luca@coelho.fi>
To: Jouni Malinen <jouni@qca.qualcomm.com>,
Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH v2 1/3] cfg80211: Allow a scan request for a specific BSSID
Date: Fri, 04 Mar 2016 10:07:56 +0200 [thread overview]
Message-ID: <1457078876.28365.124.camel@coelho.fi> (raw)
In-Reply-To: <1456517569-27235-1-git-send-email-jouni@qca.qualcomm.com>
Looks good. A couple of small comments.
On Fri, 2016-02-26 at 22:12 +0200, Jouni Malinen wrote:
> This allows scans for a specific BSSID to be optimized by the user space
> application by requesting the driver to set the Probe Request frame
> BSSID field (Address 3) to the specified BSSID instead of the wildcard
> BSSID. This prevents other APs from replying which reduces airtime need
> and latency in getting the response from the target AP through.
>
> This is an optimization and as such, it is acceptable for some of the
> drivers not to support the mechanism. If not supported, the wildcard
> BSSID will be used and more responses may be received.
Receiving more responses than what we asked for is always possible,
because we don't filter out other things we may receive at the same
time. It's like requesting for a specific SSID, it just means that the
SSID will be used in the probe requests, but it doesn't guarantee that
other results will not be returned.
> Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
> ---
>
> Notes:
> v2: Updated two forgotten rdev_scan() callers
>
> include/net/cfg80211.h | 2 ++
> include/uapi/linux/nl80211.h | 4 +++-
> net/wireless/nl80211.c | 6 ++++++
> net/wireless/scan.c | 2 ++
> net/wireless/sme.c | 2 ++
> 5 files changed, 15 insertions(+), 1 deletion(-)
>
> diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
> index 9e1b24c..14c0c43 100644
> --- a/include/net/cfg80211.h
> +++ b/include/net/cfg80211.h
> @@ -1455,6 +1455,7 @@ struct cfg80211_ssid {
> * @mac_addr_mask: MAC address mask used with randomisation, bits that
> * are 0 in the mask should be randomised, bits that are 1 should
> * be taken from the @mac_addr
> + * @bssid: BSSID to scan for (most commonly, the wildcard BSSID)
> */
> struct cfg80211_scan_request {
> struct cfg80211_ssid *ssids;
> @@ -1471,6 +1472,7 @@ struct cfg80211_scan_request {
>
> u8 mac_addr[ETH_ALEN] __aligned(2);
> u8 mac_addr_mask[ETH_ALEN] __aligned(2);
> + u8 bssid[ETH_ALEN] __aligned(2);
>
> /* internal */
> struct wiphy *wiphy;
> diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h
> index 5a30a75..23bf066 100644
> --- a/include/uapi/linux/nl80211.h
> +++ b/include/uapi/linux/nl80211.h
> @@ -322,7 +322,9 @@
> * @NL80211_CMD_GET_SCAN: get scan results
> * @NL80211_CMD_TRIGGER_SCAN: trigger a new scan with the given parameters
> * %NL80211_ATTR_TX_NO_CCK_RATE is used to decide whether to send the
> - * probe requests at CCK rate or not.
> + * probe requests at CCK rate or not. %NL80211_ATTR_MAC can be used to
> + * specify a BSSID to scan for; if not included, the wildcard BSSID will
> + * be used.
Maybe you could be explicit here about the possibility of receiving
more results than requested?
--
Cheers,
Luca.
next prev parent reply other threads:[~2016-03-04 8:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-26 20:12 [PATCH v2 1/3] cfg80211: Allow a scan request for a specific BSSID Jouni Malinen
2016-02-26 20:12 ` [PATCH v2 2/3] mac80211: Support " Jouni Malinen
2016-02-26 20:12 ` [PATCH v2 3/3] mac80211_hwsim: Support a hw " Jouni Malinen
2016-03-03 15:11 ` [PATCH v2 1/3] cfg80211: Allow a " Johannes Berg
2016-03-04 8:07 ` Luca Coelho [this message]
2016-03-04 9:15 ` Malinen, Jouni
2016-03-04 9:39 ` Luca Coelho
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=1457078876.28365.124.camel@coelho.fi \
--to=luca@coelho.fi \
--cc=johannes@sipsolutions.net \
--cc=jouni@qca.qualcomm.com \
--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 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).