wifi: Fixing autoscan device unref issues
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Tue, 24 Apr 2012 15:10:00 +0000 (18:10 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 24 Apr 2012 15:09:50 +0000 (17:09 +0200)
commit604a5272c1be29048377856e4f655af354942c55
tree12acdd10dba6f089e5a68620e9def6bcfa2862bc
parent1c249af7946667f24cd2b995cc13149b77dd62df
wifi: Fixing autoscan device unref issues

- stop_autoscan() should unref the device only when relevant, i.e. when
interval and/or timeout have been set.
- autoscan_scan_callback() should unref the device since it has been
referenced in throw_wifi_scan()
plugins/wifi.c