> No, I don't think it's WAD, at least not at the Android framework
> layer. WIFI_MODE_SCAN_ONLY isn't described all that clearly in the
> docs so it's open to interpretation. Until I find the time to get into
> the code and see what it's really supposed to do, I'm hoping that it's
> a bug.
Tasker maybe enabling WiFi in scan mode, ie. Tasker does not initiate a connection to a specific WiFi AP, but is Andoird itself connecting as soon as WiFi is enabled, if you see what I mean ?
For example, you have 2 APs, HOME1 and HOME2. HOME1 is known to the Android OS, and remembered. HOME2 isn't.
When Tasker enables WiFi to look for HOME2, it finds it, but doesn't connect as it was opened in scan only mode. But when the WiFi stack is enabled by Tasker, the OS notices HOME1 so connects to it.
Equally if you just have one AP called HOME, Tasker scans for HOME with no intention of connecting, but in the meantime the OS has connected.
I guess the only way to test that is to make the OS forget about all APs and see if it still does it.
Just a thought anyway!
--
Best Regards,
Dave Fisher