mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
qcacld-3.0: Restore WMI_DFS_RADAR_EVENTID for Rome FW
Currently WMI handler for WMI_PHYERR_EVENTID is used to handle DFS and spectral scan phy errors; but Rome FW still uses WMI_PHYERR_EVENTID and WMI_DFS_RADAR_EVENTID and does not have spectral scan phy errors. Restore WMI_PHYERR_EVENTID and WMI_DFS_RADAR_EVENTID as Rome FW requirement. CRs-Fixed: 2149939 Change-Id: I7a5c4f723bedfdeb477ac36ac1290809ca06fb13
This commit is contained in:
parent
0258e08b4b
commit
81fe50a9c4
1 changed files with 28 additions and 0 deletions
|
|
@ -123,6 +123,7 @@
|
|||
#include "os_if_nan.h"
|
||||
#include "nan_public_structs.h"
|
||||
#include "wlan_reg_ucfg_api.h"
|
||||
#include "wlan_dfs_ucfg_api.h"
|
||||
#include "wlan_hdd_rx_monitor.h"
|
||||
#include "sme_power_save_api.h"
|
||||
#include "enet.h"
|
||||
|
|
@ -12785,6 +12786,29 @@ static void hdd_update_score_config(
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
* hdd_update_dfs_config() - API to update dfs configuration parameters.
|
||||
* @hdd_ctx: HDD context
|
||||
*
|
||||
* Return: 0 if success else err
|
||||
*/
|
||||
static int hdd_update_dfs_config(struct hdd_context *hdd_ctx)
|
||||
{
|
||||
struct wlan_objmgr_psoc *psoc = hdd_ctx->hdd_psoc;
|
||||
struct hdd_config *cfg = hdd_ctx->config;
|
||||
struct dfs_user_config dfs_cfg;
|
||||
QDF_STATUS status;
|
||||
|
||||
dfs_cfg.dfs_is_phyerr_filter_offload = !!cfg->fDfsPhyerrFilterOffload;
|
||||
status = ucfg_dfs_update_config(psoc, &dfs_cfg);
|
||||
if (QDF_IS_STATUS_ERROR(status)) {
|
||||
hdd_err("failed dfs psoc configuration");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* hdd_update_scan_config - API to update scan configuration parameters
|
||||
* @hdd_ctx: HDD context
|
||||
|
|
@ -12849,6 +12873,10 @@ int hdd_update_components_config(struct hdd_context *hdd_ctx)
|
|||
return ret;
|
||||
|
||||
ret = hdd_update_dp_config(hdd_ctx);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = hdd_update_dfs_config(hdd_ctx);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue