Discussion:
"iwlist scan" while hostapd running
r***@nanoair.com
2013-10-21 16:13:10 UTC
Permalink
I am using hostapd to create an adhoc WPA secured wifi network,
everything is working fine. From another machine I can connect with no
issues.
However when hostapd is running, the command:

iwlist wlan0 scan

returns

wlan0 Interface doesn't support scanning : Operation not supported

If I kill the hostapd process and bring up the wlan0 interface then
iwlist wlan0 scan works perfectly.
I want to be able to scan while hostapd is running.
How to do this?
Nicolas Cavallari
2013-10-21 18:26:39 UTC
Permalink
Post by r***@nanoair.com
I am using hostapd to create an adhoc WPA secured wifi network,
everything is working fine. From another machine I can connect with no
issues.
iwlist wlan0 scan
returns
wlan0 Interface doesn't support scanning : Operation not supported
If I kill the hostapd process and bring up the wlan0 interface then
iwlist wlan0 scan works perfectly.
I want to be able to scan while hostapd is running.
How to do this?
iwlist is obsolete, stop using it. Use iw instead.

iw has an "ap-force" option that forces scanning even when in AP mode.
Of course, this may temporarily break connection to clients.

iw wlan0 scan ap-force

Loading...