qcacmn: Do not modify radar found params while processing it

The radar found parameters processing API dfs_process_radar_ind() is
supposed to read-only the radar_found_info parameters and not modify
them. A block of code for PO platforms modify the radar_found_info
parameters.

The function dfs_process_radar_ind() should not modify the radar found
input parameters.

Since in this case the parameter modifications are specific to partial
offload, move the code that modifies the parameters out of the function
into a partial offload specific code.

NOTE:- The previous change I2c717219d0b0f9263734767bee6070f335032b04 also
does the same that is mentioned here but for modification of
full-offload parameters.

Change-Id: Ic438d70eaadb9ef91d28f6a0c22caf4926ed1df1
CRs-Fixed: 2737060
Цей коміт міститься в:
Vignesh U
2020-06-14 20:45:53 +05:30
зафіксовано snandini
джерело ca60e2f141
коміт adae9cdb21
4 змінених файлів з 20 додано та 16 видалено

Переглянути файл

@@ -654,10 +654,8 @@ QDF_STATUS tgt_dfs_process_radar_ind(struct wlan_objmgr_pdev *pdev,
return status;
}
dfs->dfs_radar_found_for_fo = 1;
dfs_translate_radar_params(dfs, radar_found);
status = dfs_process_radar_ind(dfs, radar_found);
dfs->dfs_radar_found_for_fo = 0;
return status;
}