> My 2ยข: If "Active" scanning will indeed only return results for the SSIDs mentioned in the scan parameters, then I think ConnMan should *always* schedule a passive scan afterwards, perhaps by just calling wifi_scan_simple() in the scan_callback() of an active scan.
>
> Thoughts?
That sounds reasonable. You should just take into account the timing, you cannot immediately ask wpa_supplicant for another scan because it could just be discarded due to there is another ongoing. That second passive scan needs to be done once you are sure the active scan has finished. You could try to implement this, I will think if this is the best we can do. Then we can test and discuss the options.