wifi ap might be connected automatically after finishing scan.
Change-Id: Ice6f040e3c0803afb9372079c0afaaee174d228a
return;
}
+ /**
+ * Auto-connection might occurs after scan.
+ * Check connection state before requesting connect to AP.
+ */
+ if (WiFiManager.ConnectionState == WiFiConnectionState.Connected)
+ {
+ Tizen.Log.Info(Globals.LogTag, "Already connected");
+ return;
+ }
+
// Connect to AP
Tizen.Log.Info(Globals.LogTag, "Set passphrase " + WiFiPass);
ap.SecurityInformation.SetPassphrase(WiFiPass);