From: Niraj Kumar Goit Date: Mon, 11 Oct 2021 07:28:21 +0000 (+0530) Subject: Try to connect the AP using static IP if it's sec_mode is SAE X-Git-Tag: submit/tizen/20211029.104555^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F16%2F265116%2F1;p=platform%2Fcore%2Fapi%2Fwifi-manager.git Try to connect the AP using static IP if it's sec_mode is SAE Change-Id: I950cec931127a8e52f4f517ce6242ef0a197b810 Signed-off-by: Niraj Kumar Goit --- diff --git a/src/network_interface.c b/src/network_interface.c index 02452b9..0edf192 100644 --- a/src/network_interface.c +++ b/src/network_interface.c @@ -656,6 +656,22 @@ static int __net_wifi_modify_profile(network_info_s *network_info, 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");