From 8c45a1607688b5af1f0f12711f76dc2e8a3cfd59 Mon Sep 17 00:00:00 2001 From: Niraj Kumar Goit Date: Thu, 9 Jun 2016 20:46:58 +0530 Subject: [PATCH] [SPIN]Set interface callback during scan request [Cause] Inteface callback was not being called in error case when 'scan done' signal was received from wpasupplicant and hence the 'scanning' state was not being set properly [Solution] Set the interface callback during scan request which gets called back and sets the 'scanning' state properly during error cases Change-Id: I1ac96a7657bee12ee642f8b680a5b7ef51118048 Signed-off-by: Niraj Kumar Goit --- gsupplicant/supplicant.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c index 834be59..329bf6b 100755 --- a/gsupplicant/supplicant.c +++ b/gsupplicant/supplicant.c @@ -4216,8 +4216,13 @@ int g_supplicant_interface_scan(GSupplicantInterface *interface, data->interface = interface; data->path = g_strdup(interface->path); +#if defined TIZEN_EXT + data->interface->scan_callback = data->callback = callback; + data->interface->scan_data = data->user_data = user_data; +#else data->callback = callback; data->user_data = user_data; +#endif data->scan_params = scan_data; interface->scan_callback = callback; -- 2.7.4