All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jouni Malinen <j@w1.fi>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: Dedy Lansky <dlansky@codeaurora.org>,
	linux-wireless@vger.kernel.org,
	Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Subject: Re: [PATCH] nl80211: add new scan flag to indicate P2P search
Date: Mon, 26 Jan 2015 11:58:00 +0200	[thread overview]
Message-ID: <20150126095800.GA12740@w1.fi> (raw)
In-Reply-To: <1422260840.1890.9.camel@sipsolutions.net>

On Mon, Jan 26, 2015 at 09:27:20AM +0100, Johannes Berg wrote:
> On Sun, 2015-01-25 at 14:30 +0200, Dedy Lansky wrote:
> > Scan request (NL80211_CMD_TRIGGER_SCAN) is used for triggering both scan
> > and P2P search.
> > At driver/firmware layer, scan and P2P search might be handled differently.
> > 
> > Add new scan flag to indicate P2P search. This flag can be used
> > by applications (e.g. wpa_supplicant) to explicitly request P2P search.
> 
> I think this ship has sailed many months ago -- too late, you can never
> rely on wpa_supplicant settings this flag.

I'm not sure I'd fully agree with that.. wpa_supplicant currently maps
its internal struct wpa_driver_scan_params::p2p_probe to
NL80211_ATTR_TX_NO_CCK_RATE (and also removal of CCK rates from
NL80211_ATTR_SCAN_SUPP_RATES). However, neither of these make much sense
in bands other than 2.4 GHz. There is ongoing effort in defining P2P
social channels on other bands and it would be useful to be prepared for
those with a clear nl80211 flag in scan parameters. P2P on those new
bands will require wpa_supplicant changes, so it is reasonable to assume
that a wpa_supplicant version that supports those bands will also
support this new flag.

> If you need to distinguish, you should be able to advertise P2P-Device
> supports, and then get P2P scans on the P2P-Device virtual interface.
> Could be a pure driver thing of course.

It would be unfortunate to force people to use P2P-Device for this.
 
-- 
Jouni Malinen                                            PGP id EFC895FA

  reply	other threads:[~2015-01-26  9:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-25 12:30 [PATCH] nl80211: add new scan flag to indicate P2P search Dedy Lansky
2015-01-26  8:27 ` Johannes Berg
2015-01-26  9:58   ` Jouni Malinen [this message]
2015-01-29  7:01     ` Dedy Lansky
2015-02-23 16:07     ` Johannes Berg

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=20150126095800.GA12740@w1.fi \
    --to=j@w1.fi \
    --cc=dlansky@codeaurora.org \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=qca_vkondrat@qca.qualcomm.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 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.