[wifi-manager] Issue scan request based on last scan type. 90/147490/6
authorNiraj Kumar Goit <niraj.g@samsung.com>
Mon, 4 Sep 2017 12:30:31 +0000 (18:00 +0530)
committertaesub kim <taesub.kim@samsung.com>
Tue, 12 Sep 2017 23:05:12 +0000 (08:05 +0900)
commit2f2361da9b4563e0f5cf31c4b9696d0a049db132
tree26c1a3c8fd8d9124c61f2a3adbe8e1458ef9f1ff
parentdd53220755f0d2a292448673e4b6526747e01f7b
[wifi-manager] Issue scan request based on last scan type.

When scan is requested by application but previous scan is already
in progress at connman then hold new scan request till scan-done
signal of previous scan is received.
On receiving scan-done signal, wifi-manager extract last scan type.
- If last scan type is same as new scan type and scan is done for full
channel then do not start fresh scan and send scan results of last
scan to applications.
- In all other scenarios start fresh scan for new scan type.

Change-Id: I2d171611707c5508c1aa60bcf150579cf192fbf8
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
include/network_interface.h
include/network_internal.h
include/wifi_internal.h
src/network_dbus.c
src/network_interface.c
src/network_signal.c
src/wifi_internal.c