wifi: Fixed issue with device reference count 95/151795/1 accepted/tizen/unified/20170927.063111 submit/tizen/20170922.065607 submit/tizen/20170926.020531
authorSaurav Babu <saurav.babu@samsung.com>
Fri, 22 Sep 2017 04:28:46 +0000 (09:58 +0530)
committerSaurav Babu <saurav.babu@samsung.com>
Fri, 22 Sep 2017 04:34:41 +0000 (10:04 +0530)
commit1141e83b5a00d11bada4e07e8203770b3d36939b
treeac6098d43967d36d4cc37b85f27a9cb8c0605ced
parent59eb8331decf9e096c9e94d61a99152d462413a6
wifi: Fixed issue with device reference count

Device reference count is referenced when scanning is set to true, so it
should be dereferenced only when scanning is set to false, In one
particular case scanning was not being set to false while device was
unreferenced when wifi->allow_full_scan is true.

Change-Id: Ib8fc675d224eddc8e1dfa4a4a271f7c5b64209fe
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
plugins/wifi.c