Change-Id: I98008f6654ce9eb2d54d7e96f4fdbe41a1a954e4
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
" from %s", VCONFKEY_WIFI_BSSID_ADDRESS);
return WIFI_MANAGER_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
+
+ if (strlen(*mac_address) == 0) {
+ WIFI_LOG(WIFI_ERROR, "Mac address is invalid" //LCOV_EXCL_LINE
+ " from %s", VCONFKEY_WIFI_BSSID_ADDRESS);
+ g_free(*mac_address);
+ *mac_address = NULL;
+ return WIFI_MANAGER_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
+ }
}
return WIFI_MANAGER_ERROR_NONE;