All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Arik Nemtsov <arik@wizery.com>
Cc: linux-wireless@vger.kernel.org, Luciano Coelho <coelho@ti.com>,
	"John W. Linville" <linville@tuxdriver.com>
Subject: Re: [PATCH v2 0/6] Probe-resp offloading support
Date: Wed, 26 Jan 2011 09:44:57 +0100	[thread overview]
Message-ID: <1296031497.3635.27.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <AANLkTikKM3sz5Y=+BNh9z6u-RuhUB81Y9BWavFnjKH7s@mail.gmail.com>

[let me take both your emails at once]

> > That is _very_ dangerous. If the user has older firmware that doesn't
> > know about WSC2, how would the user know not to configure WSC2 in
> > hostapd? That needs to be known to hostapd so it can verify this
> > situation. For P2P, we already know whether or not P2P is supported, but
> > that's rather vague in case there will ever be a revision of the P2P
> > spec with say different IEs.
> 
> Well basically the FW should white-list probe-requests it knows about
> and pass up all the rest.

Indeed. But we need to know what things the firmware knows about, so we
can disable additional functionality automatically.

> > IMHO it would be smarter to rework the firmware to only reply to probe
> > requests if the probe response is configured. Then, if WSC, P2P, or
> > similar technologies are in use on the interface, hostapd can simply
> > decide to not configure the probe response and have host-based
> > processing. Would that be a change you could still make?
> 
> With the current set of patches the decision is left at the hands of
> the driver/fw. Hostapd currently doesn't have a way of toggling
> probe-resp offloading in the low level driver.
> This kind of plumbing is not needed in case the FW handles what it can
> and passes up unknown probe-requests.

Well, it could trivially have this functionality by simply not setting
the SSID/probe response frame -- older hostapd would "automatically" not
use this feature, and you'd even have a good upgrade path -- the feature
is only used for new hostapd, and then only when hostapd knows that it
is possible to use the feature.

> Its also conceivable that an old driver/fw won't work when some
> protocol is changed/updated, even if hostapd supports it.
> I'm not sure the probe-resp will be the culprit here..

Indeed. But in such cases, we've dealt with it. But with a simple update
like for example WSC 3.0 (which I don't think is being planned yet, but
may eventually be written) your approach would certainly require a
firmware update. I think that's a bit undesirable, but I'm not saying
that you _need_ to change the firmware. I'm merely recommending that if
the firmware doesn't know the SSID, it will pass up all probe requests.
It has to have the "pass up" functionality already for P2P/WSC2, so that
could trivially be extended to pass up when the driver sets a certain
bit to request it always.


It's been pointed out to me that maybe I'm not always communicating
things effectively -- so let me try to write a summary of the entire
thing again:

The way you're implementing this feature right now _relies_ on the
firmware to do the right thing for all protocols. However,
hostapd/wpa_supplicant have no way of knowing what protocols the
firmware knows about, and they will almost certainly be extended for
more protocols in the future. This I don't want to see -- I want you to
advertise in nl80211 what protocols (including their versions) the
firmware knows about, so that a future hostapd can automatically disable
new protocols that the firmware doesn't know about.

I'm also _recommending_ that you change the firmware implementation to
guard against that and be more backward compatible: allow the driver to
set a bit meaning "pass up all probe requests". Yes, that will destroy
host power savings obtained by this feature if enabled, but will allow
hostapd/wpa_s to implement new features and one could then actually at
least test, if not use, them with the older device. You could also get
rid of the beacon parsing code etc. and simply require that a modern
hostapd that implements the offload be used for maximum power saving.

johannes



  reply	other threads:[~2011-01-26  8:44 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-23 21:02 [PATCH v2 0/6] Probe-resp offloading support Arik Nemtsov
2011-01-23 21:02 ` [PATCH v2 1/6] nl80211: allow passing SSID in nl80211_set_bss Arik Nemtsov
2011-01-23 21:02 ` [PATCH v2 2/6] nl80211: Pass probe response data to drivers Arik Nemtsov
2011-01-24 11:35   ` Johannes Berg
2011-01-24 20:47     ` Arik Nemtsov
2011-01-25 10:12       ` Johannes Berg
2011-01-26  6:00         ` Arik Nemtsov
2011-01-26  8:32           ` Johannes Berg
2011-01-26 21:51             ` Arik Nemtsov
2011-01-26 21:55               ` Johannes Berg
2011-01-27 13:29               ` Johannes Berg
2011-01-30 10:34                 ` Arik Nemtsov
2011-01-30 10:44                   ` Johannes Berg
2011-01-23 21:02 ` [PATCH v2 3/6] mac80211: add SSID for AP mode with change notification Arik Nemtsov
2011-01-23 21:02 ` [PATCH v2 4/6] mac80211: Save probe response data for BSS Arik Nemtsov
2011-01-24 11:38   ` Johannes Berg
2011-01-26  5:54     ` Arik Nemtsov
2011-01-23 21:02 ` [PATCH v2 5/6] wl12xx: AP mode - support hidden SSID Arik Nemtsov
2011-01-23 21:02 ` [PATCH v2 6/6] wl12xx: configure probe-resp template according to notification Arik Nemtsov
2011-01-24  9:44 ` [PATCH v2 0/6] Probe-resp offloading support Jouni Malinen
2011-01-24 21:16   ` Arik Nemtsov
2011-01-25  9:41     ` Jouni Malinen
2011-01-26  6:08       ` Arik Nemtsov
2011-01-26  6:24         ` Arik Nemtsov
2011-01-26  9:46           ` Jouni Malinen
2011-01-24 11:41 ` Johannes Berg
2011-01-24 21:21   ` Arik Nemtsov
2011-01-25 10:10     ` Johannes Berg
2011-01-25 10:42       ` Johannes Berg
2011-01-26  6:38         ` Arik Nemtsov
2011-01-26  6:35       ` Arik Nemtsov
2011-01-26  8:44         ` Johannes Berg [this message]
2011-01-26 14:04     ` Jouni Malinen
2011-01-30 11:24       ` Arik Nemtsov
2011-01-30 18:37         ` Jouni Malinen
2011-01-30 22:19           ` Arik Nemtsov

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=1296031497.3635.27.camel@jlt3.sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=arik@wizery.com \
    --cc=coelho@ti.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.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.