diff --git a/core/hdd/src/wlan_hdd_scan.c b/core/hdd/src/wlan_hdd_scan.c index 8b4a468c72df..2e2c37dfd70c 100644 --- a/core/hdd/src/wlan_hdd_scan.c +++ b/core/hdd/src/wlan_hdd_scan.c @@ -1443,7 +1443,7 @@ static int wlan_hdd_update_scan_ies(hdd_adapter_t *adapter, uint16_t elem_len; if (!scan_info->default_scan_ies_len || !scan_info->default_scan_ies) - return -EINVAL; + return 0; while (rem_len >= 2) { current_ie = temp_ie;