Change-Id: I165545377844140c644e2112a34d64032844e008
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
if (_wifi_check_ap_validity(ap) == false ||
(address_family != WIFI_MANAGER_ADDRESS_FAMILY_IPV4 &&
- address_family != WIFI_MANAGER_ADDRESS_FAMILY_IPV6)) {
+ address_family != WIFI_MANAGER_ADDRESS_FAMILY_IPV6) ||
+ dhcp_server == NULL) {
WIFI_LOG(WIFI_ERROR, "Invalid parameter"); //LCOV_EXCL_LINE
__NETWORK_CAPI_FUNC_EXIT__; //LCOV_EXCL_LINE
return WIFI_MANAGER_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE