summaryrefslogtreecommitdiff
path: root/gsupplicant
diff options
context:
space:
mode:
authorNiraj Kumar Goit <niraj.g@samsung.com>2016-06-09 15:16:58 (GMT)
committerNiraj Kumar Goit <niraj.g@samsung.com>2016-06-09 15:16:58 (GMT)
commit8c45a1607688b5af1f0f12711f76dc2e8a3cfd59 (patch)
treef21b4783fcec466fb75c0d05fb8e2cbe03f3ed5c /gsupplicant
parent0ea98e0cff37f5a63783a65c84cc5945466b9024 (diff)
downloadconnman-8c45a1607688b5af1f0f12711f76dc2e8a3cfd59.zip
connman-8c45a1607688b5af1f0f12711f76dc2e8a3cfd59.tar.gz
connman-8c45a1607688b5af1f0f12711f76dc2e8a3cfd59.tar.bz2
[SPIN]Set interface callback during scan requestrefs/changes/43/73743/1
[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 <niraj.g@samsung.com>
Diffstat (limited to 'gsupplicant')
-rwxr-xr-xgsupplicant/supplicant.c5
1 files changed, 5 insertions, 0 deletions
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;