Error = _net_dbus_set_agent_passphrase_and_connect(network_info,
security_info->authentication.psk.pskKey, ProfileName);
+ if (NET_ERR_NONE != Error) {
+ WIFI_LOG(WIFI_ERROR, "Failed to set agent field");
+
+ __NETWORK_FUNC_EXIT__;
+ return Error;
+ }
+ }
+ /*
+ * Try to connect the AP using static IP if it's sec_mode is SAE
+ */
+ } else if (ex_security_info->sec_mode == WLAN_SEC_MODE_SAE) {
+ if (g_strcmp0(security_info->authentication.sae.saeKey,
+ ex_security_info->authentication.sae.saeKey) != 0) {
+ Error = _net_dbus_set_agent_passphrase_and_connect(network_info,
+ security_info->authentication.sae.saeKey, ProfileName);
+
if (NET_ERR_NONE != Error) {
WIFI_LOG(WIFI_ERROR, "Failed to set agent field");