qcacld-3.0: Reset BTM abridge flag for Cert cases

For BTM certification cases, FW is unable to roam to
testbed AP BSS due to scoring logic. Reset the BTM
abridge flag that is used to enable FW to select
candidates based on score.

Change-Id: I29b6e1b5dea969263eb263103c6d2c10d5047f20
CRs-Fixed: 3591574
This commit is contained in:
Gururaj Pandurangi
2023-08-10 23:00:26 -07:00
committed by Rahul Choudhary
parent aac4254e32
commit faeed38706
6 changed files with 64 additions and 0 deletions

View File

@@ -2913,6 +2913,7 @@ cm_update_btm_offload_config(struct wlan_objmgr_psoc *psoc,
bool is_hs_20_ap, is_pmf_enabled, is_open_connection = false;
uint8_t vdev_id;
uint32_t mbo_oce_enabled_ap;
bool abridge_flag;
mlme_obj = mlme_get_psoc_ext_obj(psoc);
if (!mlme_obj)
@@ -2967,6 +2968,14 @@ cm_update_btm_offload_config(struct wlan_objmgr_psoc *psoc,
wlan_cm_roam_cfg_get_value(psoc, vdev_id, MBO_OCE_ENABLED_AP, &temp);
mbo_oce_enabled_ap = temp.uint_value;
abridge_flag = wlan_mlme_get_btm_abridge_flag(psoc);
if (!abridge_flag)
MLME_CLEAR_BIT(*btm_offload_config,
BTM_OFFLOAD_CONFIG_BIT_7);
mlme_debug("Abridge flag: %d, btm offload: %u", abridge_flag,
*btm_offload_config);
/*
* If peer does not support PMF in case of OCE/MBO
* Connection, Disable BTM offload to firmware.