Hi,

On Fri, 2013-01-04 at 09:25 -0800, Stan Hu wrote:
> Let's say you took your device somewhere and connected to SSID Alice.
> connman saves a settings file in /var/lib/connman for this successful
> connection.  Let's say you then moved your device and connected to
> SSID Bob.  connman also saves another settings file for this
> connection.
> 
> Now, when connman starts up, it asks wpa_supplicant to scan SSIDs
> Alice and Bob and the frequencies on which the device last connected.

The SSIDs are scanned only if the WiFi networks were hidden, in other
cases a normal broadcast scan is done.

> Since Alice doesn't exist, the nl80211 driver reports:
> 
> nl80211: Scan trigger failed: ret=-22 (Invalid argument)

Which version of wpa_supplicant is in use?

> wpa_supplicant never returns a successful scan, so connman gets stuck
> waiting for the scan to complete.  If you call 'iwlist wlan0
> scanning', this causes the nl80211 driver to do a full scan WITHOUT
> the SSIDs.  wpa_supplicant returns back the results,connman resumes,
> and everything works.

Can you check ConnMan is stuck by running either 'test/test-connman scan
wifi' or 'connmanctl scan wifi'? Both commands wait until the scan is
done, which is a few seconds. What about a subsequent scan? If they
never return there is a bug somewhere. 

Cheers,

        Patrik


_______________________________________________
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman

Reply via email to