From: Johannes Berg <johannes@sipsolutions.net>
To: Zefir Kurtisi <zefir.kurtisi@neratec.com>,
linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: Q: iw - how to scan for a specific ssid / AP mode scan
Date: Fri, 03 Jul 2015 20:38:02 +0200 [thread overview]
Message-ID: <1435948682.2059.41.camel@sipsolutions.net> (raw)
In-Reply-To: <5596BDAB.4020001@neratec.com>
On Fri, 2015-07-03 at 18:51 +0200, Zefir Kurtisi wrote:
> Folks,
>
> I have difficulties using iw for a specific use case or fail to
> understand the documentation correctly.
>
> My platform is a recent OpenWRT, running ath9k.
>
> First use case is scanning for a given ssid in managed mode.
> According do iw's documentation (and the attribute description in
> nl80211.h), issuing
>
> iw dev wlan0 scan flush ssid <SSID>
>
> should do exactly this, but I keep receiving a full list of visible
> APs.
This is telling it to scan for that particular network, and that's what
it's going to do, but it's still going to report everything that it
heard, for example when hearing beacons while scanning.
> The second issue is about scanning in AP mode. Where I want to go is
> having two
> APs operating on arbitrary DFS channels with periodic scans to
> discover each
> other. What I observe is
> a) passive scanning: iw dev wlan0 scan flush ap-force passive
> => does not work - no scan results are provided
> b) active scanning: iw dev wlan0 scan flush ap-force
> * finds only a subset of APs compared to a scan in managed mode
> * finds only APs on non-DFS channels
>
> Again, I might be missing some relevant documentation, but to me the
> observed results look rather like 'not yet implemented' than inherent
> limitations.
>
Not sure - but you do need to realize that the AP isn't really allowed
to go off-channel for any period of time (like scanning) so this isn't
really guaranteed to work well. Especially passive scanning seems like
a really bad idea. As to why it's not actually working, I have no idea.
johannes
next prev parent reply other threads:[~2015-07-03 18:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-03 16:51 Q: iw - how to scan for a specific ssid / AP mode scan Zefir Kurtisi
2015-07-03 18:38 ` Johannes Berg [this message]
2015-07-06 8:31 ` Zefir Kurtisi
2015-07-13 8:18 ` 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=1435948682.2059.41.camel@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=zefir.kurtisi@neratec.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 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).