if (WIFI_DIRECT_STATE_CONNECTED == ugd->wfd_status) {
ret = wfd_client_disconnect(NULL);
if (ret != WIFI_DIRECT_ERROR_NONE) {
if (WIFI_DIRECT_STATE_CONNECTED == ugd->wfd_status) {
ret = wfd_client_disconnect(NULL);
if (ret != WIFI_DIRECT_ERROR_NONE) {