Change-Id: Iffc04453482fe401f39278e915e0b4c1f7cc7e17
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
#define WIFI_SECURITY_DPP "dpp"
//LCOV_EXCL_START
-static int __net_error_string_to_enum(const char *error_str)
+static int __net_error_string_to_enum(const char *error)
{
- gchar *error = NULL;
-
- WIFI_LOG(WIFI_INFO, "Passed error string [%s]", error_str);
-
- error = g_strrstr(error_str, ".");
- if (error == NULL)
- return NET_ERR_UNKNOWN;
-
- error++;
+ WIFI_LOG(WIFI_INFO, "Passed error string [%s]", error);
if (NULL != strstr(error, "NoReply"))
return NET_ERR_TIME_OUT;