qcacmn: Set dfs_set_cfreq2 with correct DFS flag
In MCL code, QCA_DFS_NOL_OFFLOAD is no defined, which causes the utils_is_dfs_cfreq2_ch always return "false". In function vdev_mgr_start_param_update the "dfs_set_cfreq2" needs to be set correct dfs flag from utils_is_dfs_cfreq2_ch so that vdev start wmi command will include correct DFS flag - WMI_CHAN_FLAG_DFS_CFREQ2 for AP home channel. Move utils_is_dfs_cfreq2_ch function out of WLAN_DFS_FULL_OFFLOAD and QCA_DFS_NOL_OFFLOAD build flag. Change-Id: I341db02c4db3ad3b21d8b2c115b2baffc3df3164 CRs-Fixed: 2619273
This commit is contained in:

gecommit door
nshrivas

bovenliggende
ec5e46507e
commit
bb0b78c688
@@ -653,15 +653,7 @@ static inline bool utils_is_dfs_chan_for_freq(struct wlan_objmgr_pdev *pdev,
|
||||
*
|
||||
* Return: True if channel dfs cfreq2, else false.
|
||||
*/
|
||||
#if defined(WLAN_DFS_FULL_OFFLOAD) && defined(QCA_DFS_NOL_OFFLOAD)
|
||||
bool utils_is_dfs_cfreq2_ch(struct wlan_objmgr_pdev *pdev);
|
||||
#else
|
||||
static inline
|
||||
bool utils_is_dfs_cfreq2_ch(struct wlan_objmgr_pdev *pdev)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* utils_dfs_reg_update_nol_ch() - set nol channel
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016-2019 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2016-2020 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
@@ -1586,6 +1586,7 @@ QDF_STATUS utils_dfs_get_disable_radar_marking(struct wlan_objmgr_pdev *pdev,
|
||||
}
|
||||
|
||||
qdf_export_symbol(utils_dfs_get_disable_radar_marking);
|
||||
#endif
|
||||
|
||||
bool utils_is_dfs_cfreq2_ch(struct wlan_objmgr_pdev *pdev)
|
||||
{
|
||||
@@ -1599,7 +1600,6 @@ bool utils_is_dfs_cfreq2_ch(struct wlan_objmgr_pdev *pdev)
|
||||
}
|
||||
|
||||
qdf_export_symbol(utils_is_dfs_cfreq2_ch);
|
||||
#endif
|
||||
|
||||
void utils_dfs_deliver_event(struct wlan_objmgr_pdev *pdev, uint16_t freq,
|
||||
enum WLAN_DFS_EVENTS event)
|
||||
|
Verwijs in nieuw issue
Block a user