qcacld-3.0: Optimize SBS prints part 2

Dump SBS range while checking for SBS mode in
policy_mgr_are_3_freq_on_same_mac and
policy_mgr_are_2_freq_on_same_mac

Change-Id: Ic8e6a49d60dcc82746a2b3e392576399dd1ad417
CRs-Fixed: 3092338
This commit is contained in:
Utkarsh Bhatnagar
2021-12-13 11:21:33 +05:30
committed by Madan Koyyalamudi
parent d80f95c274
commit 5becebe02d

View File

@@ -1342,6 +1342,7 @@ bool policy_mgr_are_2_freq_on_same_mac(struct wlan_objmgr_psoc *psoc,
* Current HW is SMM check, if they can lead to SBS or DBS without being
* in same mac, return true only if Both will lead to same mac
*/
policy_mgr_dump_sbs_freq_range(pm_ctx);
if (!policy_mgr_are_2_freq_in_sbs_freq_range(pm_ctx, freq_1, freq_2))
return false;
@@ -1383,7 +1384,6 @@ policy_mgr_are_3_freq_in_sbs_freq_range(struct policy_mgr_psoc_priv_obj *pm_ctx,
struct policy_mgr_freq_range *sbs_uppr_share;
struct policy_mgr_freq_range *sbs_range;
policy_mgr_dump_sbs_freq_range(pm_ctx);
if (pm_ctx->hw_mode.sbs_lower_band_end_freq) {
sbs_uppr_share =
pm_ctx->hw_mode.freq_range_caps[MODE_SBS_UPPER_SHARE];
@@ -1454,6 +1454,7 @@ policy_mgr_are_3_freq_on_same_mac(struct wlan_objmgr_psoc *psoc,
* Current HW is SMM check, if they can lead to SBS or DBS without being
* in same mac, return true only if both will lead to same mac
*/
policy_mgr_dump_sbs_freq_range(pm_ctx);
if (!policy_mgr_are_3_freq_in_sbs_freq_range(pm_ctx, freq_1, freq_2,
freq_3))
return false;