There can be a case when Interface already exists. So Supplication will
retun InterfaceExists with error. So Error case handling for such case
is added
Change-Id: I3cdd9dfcb661d70bb95f6a42ee006e46e15f4634
Signed-off-by: Sumit Aggarwal <aggarwal.s@samsung.com>
__netconfig_wifi_wps_request_scan(path);
g_free(path);
}
+ }
+ else if (NULL != strstr(error->message, ".InterfaceExists")) {
+ INFO("Error Message %s %s", error->message, path);
+ g_variant_get(message, "(o)", &path);
+ if (path) {
+ __netconfig_wifi_wps_request_scan(path);
+ g_free(path);
+ }
+ else
+ __netconfig_wifi_wps_request_scan(NULL);
} else {
ERR("Failed to create interface, Error: %d[%s]", error->code, error->message);
__netconfig_wps_set_mode(FALSE);