All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: Johannes Berg <johannes@sipsolutions.net>,
	Tim Kourt <tim.a.kourt@linux.intel.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH] cfg80211: Fix support for flushing old scan results
Date: Tue, 22 May 2018 15:49:35 -0500	[thread overview]
Message-ID: <2036335b-ca8f-d63f-8142-11d81cfb9a22@gmail.com> (raw)
In-Reply-To: <1527021608.6787.47.camel@sipsolutions.net>

Hi Johannes,

On 05/22/2018 03:40 PM, Johannes Berg wrote:
> Hi,
> 
>> So I need to absorb all of this some more, but I'm still wondering why
>> we are seeing two separate scan entries (with hidden & plain ssid) when
>> we requested a flush?  Is there a way to force the kernel to only show
>> us the probe responses.
> 
> Oh. I didn't even think about this part, but that's just a consequence
> of having a hidden SSID. We need one entry to track the beacon, and then
> we add another entry for each hidden SSID it may have. Some APs
> implement multiple SSIDs that way (old Cisco equipment, IIRC, though
> then with zero-length SSID instead of zero-bytes), so you can't lump
> them together into a single BSS entry.
> 
>> It would seem that even with the flush flag set, there could still be
>> spurious beacons getting in causing these results to appear in the scan
>> result set, right?
> 
> In general anything can, there's no filtering. So you might do a flush
> scan for a specific SSID and still get 20 (different) results, if 20
> beacons happened to be received while you were scanning.
> 

Okay, so we need to use NL80211_BSS_PRESP_DATA if we want to filter out 
scan results that are coming from beacons, right?

So what's the practical use of the flush flag?  Or is that something 
that was meant to be 'for-testing-only'?

Regards,
-Denis

  reply	other threads:[~2018-05-22 20:49 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-11 16:48 [PATCH] cfg80211: Fix support for flushing old scan results Tim Kourt
2018-05-18  8:13 ` Johannes Berg
2018-05-18 16:47   ` Denis Kenzior
2018-05-18 18:54     ` Arend van Spriel
2018-05-18 19:00       ` Denis Kenzior
2018-05-22  7:24         ` Arend van Spriel
2018-05-22 14:48           ` Denis Kenzior
2018-05-22 14:50             ` Johannes Berg
2018-05-22 14:51               ` Johannes Berg
2018-05-22 15:03                 ` Denis Kenzior
2018-05-22  8:12     ` Johannes Berg
2018-05-22 14:50       ` Denis Kenzior
2018-05-22 20:12     ` Johannes Berg
2018-05-22 20:37       ` Denis Kenzior
2018-05-22 20:40         ` Johannes Berg
2018-05-22 20:49           ` Denis Kenzior [this message]
2018-05-22 20:52             ` Johannes Berg
2018-05-22 21:00               ` Denis Kenzior
2018-05-22 21:11                 ` Johannes Berg
2018-05-22 21:25                   ` Denis Kenzior
2018-05-22 21:28                     ` Johannes Berg
2018-05-22 21:45                       ` Denis Kenzior
2018-05-23  7:08                         ` 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=2036335b-ca8f-d63f-8142-11d81cfb9a22@gmail.com \
    --to=denkenz@gmail.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=tim.a.kourt@linux.intel.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.