Skip to contentSkip to conversation

scan_request->nr_ssids never 0 ?

DISCUSSION Holger Schurig 2 participants 2 messages Sep 29, 2009

lore
Share & tools
lore
#0 lore raw

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)

Signature · 1 line
http://www.holgerschurig.de
#1 lore raw
Quoted 4 lines · Holger Schurig

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
Quoted 9 lines

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