[SPIN] fix the invalid state from supplicant. 75/74675/3
authorNiraj Kumar Goit <niraj.g@samsung.com>
Wed, 15 Jun 2016 12:33:55 +0000 (18:03 +0530)
committerNiraj Kumar Goit <niraj.g@samsung.com>
Fri, 17 Jun 2016 10:33:13 +0000 (03:33 -0700)
Change-Id: I68de9746804f5a9045dca026dc1230cd40cf1a37
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
gsupplicant/supplicant.c

index d6fbf3a..6fb9c7b 100755 (executable)
@@ -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: