summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiraj Kumar Goit <niraj.g@samsung.com>2016-06-15 12:33:55 (GMT)
committerNiraj Kumar Goit <niraj.g@samsung.com>2016-06-17 10:33:13 (GMT)
commit5858fc542fa6bd5766e6caee92e1a437656ce8de (patch)
tree41cbd11758c94a364df79c26651fa1f3d18781ba
parent24242e33ccec65383dbcf4f7de91af41e484ac73 (diff)
downloadconnman-5858fc542fa6bd5766e6caee92e1a437656ce8de.zip
connman-5858fc542fa6bd5766e6caee92e1a437656ce8de.tar.gz
connman-5858fc542fa6bd5766e6caee92e1a437656ce8de.tar.bz2
[SPIN] fix the invalid state from supplicant.refs/changes/75/74675/3
Change-Id: I68de9746804f5a9045dca026dc1230cd40cf1a37 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
-rwxr-xr-xgsupplicant/supplicant.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c
index d6fbf3a..6fb9c7b 100755
--- a/gsupplicant/supplicant.c
+++ b/gsupplicant/supplicant.c
@@ -4269,8 +4269,14 @@ static int interface_ready_to_scan(GSupplicantInterface *interface)
case G_SUPPLICANT_STATE_4WAY_HANDSHAKE:
case G_SUPPLICANT_STATE_GROUP_HANDSHAKE:
return -EBUSY;
+#if defined TIZEN_EXT
+ case G_SUPPLICANT_STATE_DISABLED:
+ return -ENOLINK;
+ case G_SUPPLICANT_STATE_UNKNOWN:
+#else
case G_SUPPLICANT_STATE_UNKNOWN:
case G_SUPPLICANT_STATE_DISABLED:
+#endif
case G_SUPPLICANT_STATE_DISCONNECTED:
case G_SUPPLICANT_STATE_INACTIVE:
case G_SUPPLICANT_STATE_SCANNING: