From: Johannes Berg <johannes@sipsolutions.net>
To: Dmitry Tarnyagin <abi.dmitryt@gmail.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH] cfg80211: merge in beacon ies of hidden bss.
Date: Thu, 03 Nov 2011 11:13:05 +0100 [thread overview]
Message-ID: <1320315185.3950.40.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <CAMG6FYjQWc2fXDM8eWpEi7OqS+tVfjh5onf_332R3pzq8ks0aQ@mail.gmail.com> (sfid-20111103_110403_472262_9290A6A0)
Hi,
> -1 means "lesser", which is not true if both of ies are absent.
> 0 means "equal", which is correct (but logically impossible with the
> current usage of the comparator). Now I think even WARN_ON is a bad
> idea, the comparator can be reused for other purposes when both
> SSID ies are missing.
Fair enough. Maybe a comment along the lines of
/* can't really happen, but they're the same then */
would be useful.
> > Eliad pointed out another thing: It is possible to have multiple SSIDs
> > hidden behind a single hidden SSID. Therefore, this should update all of
> > those BSS structs. Also, I'm a tad confused about the matching code
> > here, this code path executes for both received beacons and probe
> > responses, but probe responses would typically have found the BSS
> > already? But what if we only have a beacon and then receive a probe
> > response? Or vice versa? Some comments would be good outlining how that
> > works.
> >
> I will add some comments in the code. Is a word, the code searches for a beacon
> of the hidden BSS and copies beacon IEs (with nullified SSID) into the probe
> response bss entry (with real SSID). It works fine in case of multi-SSID hidden
> BSS too.
Right, that should work.
> > Or vice versa?
> It will not work. Update of beacon IEs of probe response is not implemented.
> The code is not trying to update existing probe response bss entries when beacon
> IEs are getting changed. Technically it's possible to update them, but
> I think it's a bit
> overkill, I'm addressing only PSM in this commit.
I think that would actually be useful too since userspace may obtain
this data from scan results at any point in time, and might expect
up-to-date information? Could be a separate patch though.
Anyway, comments indicating what happens and which case this handles
would be great.
Thanks!
johannes
next prev parent reply other threads:[~2011-11-03 10:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-02 18:19 [PATCH] cfg80211: merge in beacon ies of hidden bss Dmitry Tarnyagin
2011-11-03 8:55 ` Johannes Berg
2011-11-03 9:17 ` Dmitry Tarnyagin
2011-11-03 9:39 ` Johannes Berg
2011-11-03 10:03 ` Dmitry Tarnyagin
2011-11-03 10:13 ` Johannes Berg [this message]
2011-11-03 15:14 ` Eliad Peller
2011-11-03 21:12 ` Dmitry Tarnyagin
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=1320315185.3950.40.camel@jlt3.sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=abi.dmitryt@gmail.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