|
@@ -4803,7 +4803,7 @@ QDF_STATUS wma_get_buf_extscan_start_cmd(tp_wma_handle wma_handle,
|
|
|
QDF_STATUS wma_start_extscan(tp_wma_handle wma,
|
|
|
tSirWifiScanCmdReqParams *pstart)
|
|
|
{
|
|
|
- struct wifi_scan_cmd_req_params *params = {0};
|
|
|
+ struct wifi_scan_cmd_req_params *params;
|
|
|
int i, j;
|
|
|
QDF_STATUS status;
|
|
|
|
|
@@ -4871,6 +4871,7 @@ QDF_STATUS wma_start_extscan(tp_wma_handle wma,
|
|
|
|
|
|
status = wmi_unified_start_extscan_cmd(wma->wmi_handle,
|
|
|
params);
|
|
|
+ qdf_mem_free(params);
|
|
|
if (QDF_IS_STATUS_ERROR(status))
|
|
|
return status;
|
|
|
|