Hi,

While testing further the issue fixed by my previous patch:
[PATCH v2] gsupplicant: Adding a new state according to 'interface_disabled'

I figured out that, if the interface is not ready the order of callbacks 
interface_scan_result() and signal_scan_done() is reversed (probably an issue 
in wpa_s as well then, will investigate).

Therefore, interface_scan_result do not set interface->callback, leading to 
signal_scan_done() not
having any callback to call. Thus, in wifi plugin: scan_callback() is never 
called so it does not
unref the device.

So I propose these 2 patches as a fix.
This did not mess up the usual scanning functionnality that I tested so far.

First patch is the actual fix.
Second patch is avoiding starting autoscan fallback if the interface is not 
ready.

Please review,

Tomasz Bursztyka (2):
  gsupplicant: Interpret unreadiness as an error on scan result
  wifi: Do not start autoscan if interface is not ready on scan
    callback

 gsupplicant/supplicant.c | 4 ++--
 plugins/wifi.c           | 5 ++++-
 2 files changed, 6 insertions(+), 3 deletions(-)

-- 
1.7.12

_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to