* scan_request->nr_ssids never 0 ?
@ 2009-09-29 13:18 Holger Schurig
2009-09-29 14:04 ` Johannes Berg
0 siblings, 1 reply; 2+ messages in thread
From: Holger Schurig @ 2009-09-29 13:18 UTC (permalink / raw)
To: linux-wireless
Even when I do an "iw xxx scan trigger", scan_request->nr_ssids
is always 1 in my driver.
Is this a bug or a feature?
However, scan_request->ssids[0].ssid_len is 0.
So to ask my firmware for an SSID scan, I need to do
if (req->n_ssids && req->ssid[0].ssid_len)
instead of simply
if (req->n_ssids)
--
http://www.holgerschurig.de
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: scan_request->nr_ssids never 0 ?
2009-09-29 13:18 scan_request->nr_ssids never 0 ? Holger Schurig
@ 2009-09-29 14:04 ` Johannes Berg
0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2009-09-29 14:04 UTC (permalink / raw)
To: Holger Schurig; +Cc: linux-wireless
[-- Attachment #1: Type: text/plain, Size: 536 bytes --]
On Tue, 2009-09-29 at 15:18 +0200, Holger Schurig wrote:
> Even when I do an "iw xxx scan trigger", scan_request->nr_ssids
> is always 1 in my driver.
>
> Is this a bug or a feature?
# iw wlan0 scan trigger passive
> However, scan_request->ssids[0].ssid_len is 0.
>
> So to ask my firmware for an SSID scan, I need to do
>
> if (req->n_ssids && req->ssid[0].ssid_len)
>
> instead of simply
>
> if (req->n_ssids)
No. You need to ask it to probe for the wildcard SSID, which is 0 bytes
long.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-09-29 14:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-29 13:18 scan_request->nr_ssids never 0 ? Holger Schurig
2009-09-29 14:04 ` Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox