device: Do not mark connecting networks unavailable
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Mon, 22 Oct 2012 07:07:49 +0000 (10:07 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Mon, 22 Oct 2012 12:55:32 +0000 (15:55 +0300)
commit082a40ecad183cb25aefa25fa2e5aa709531b482
treec3257baa0160dac768db2f1c5b3800371d11b197
parent876529569af8e5cfb7edb4face7b78e55de4ae03
device: Do not mark connecting networks unavailable

When autoscan fallback code is started, it sets scanning to true which
in turn marks all networks unavailable except for the ones that are
already connected. When connecting during an ongoing autoscan, the
connection attempt stops autoscan and all unavailable networks are
removed, also the one to be connected.

The fix is to ignore both connected and connecting networks when
marking networks unavailable.
src/device.c