qcacld-3.0: Fix incorrect conditional statement in wma_start_extscan

In wma_start_extscan, it will always return error due to an
incorrect conditional statement.

Change-Id: Iddb81e34a59ff541d4a17e45b8eca13e704fb89d
CRs-Fixed: 2450704
This commit is contained in:
Min Liu 2019-05-10 18:36:19 +08:00 • committed by nshrivas
commit afd51828ff

View file

@ -4870,9 +4870,10 @@ QDF_STATUS wma_start_extscan(tp_wma_handle wma,
return QDF_STATUS_E_FAILURE;
}
if (!params)
if (!params) {
wma_err("NULL param");
return QDF_STATUS_E_NOMEM;
}
status = wmi_unified_start_extscan_cmd(wma->wmi_handle, params);
if (QDF_IS_STATUS_SUCCESS(status))