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

@@ -2895,6 +2895,31 @@ wlan_mlme_get_mlo_prefer_percentage(
{}
#endif
/**
* wlan_mlme_set_btm_abridge_flag() - Set BTM abridge flag
* @psoc: psoc context
* @value: abridge flag
*
* Return: qdf status
*
* BTM abridge flag indicates whether to select candidates
* for BTM roam based on score.
*/
QDF_STATUS
wlan_mlme_set_btm_abridge_flag(struct wlan_objmgr_psoc *psoc, bool value);
/**
* wlan_mlme_get_btm_abridge_flag() - Get BTM abridge flag
* @psoc: psoc context
*
* Return: abridge flag
*
* BTM abridge flag indicates whether to select candidates
* for BTM roam based on score.
*/
bool
wlan_mlme_get_btm_abridge_flag(struct wlan_objmgr_psoc *psoc);
/**
* wlan_mlme_get_sta_miracast_mcc_rest_time() - Get STA/MIRACAST MCC rest time
* @psoc: pointer to psoc object

View File

@@ -2568,6 +2568,7 @@ struct wlan_mlme_wifi_pos_cfg {
};
#define MLME_SET_BIT(value, bit_offset) ((value) |= (1 << (bit_offset)))
#define MLME_CLEAR_BIT(value, bit_offset) ((value) &= ~(1 << (bit_offset)))
/* Mask to check if BTM offload is enabled/disabled*/
#define BTM_OFFLOAD_ENABLED_MASK 0x01

View File

@@ -3907,6 +3907,33 @@ wlan_mlme_set_t2lm_negotiation_supported(struct wlan_objmgr_psoc *psoc,
}
#endif
QDF_STATUS
wlan_mlme_set_btm_abridge_flag(struct wlan_objmgr_psoc *psoc,
bool value)
{
struct wlan_mlme_psoc_ext_obj *mlme_obj;
mlme_obj = mlme_get_psoc_ext_obj(psoc);
if (!mlme_obj)
return QDF_STATUS_E_FAILURE;
mlme_obj->cfg.btm.abridge_flag = value;
return QDF_STATUS_SUCCESS;
}
bool
wlan_mlme_get_btm_abridge_flag(struct wlan_objmgr_psoc *psoc)
{
struct wlan_mlme_psoc_ext_obj *mlme_obj;
mlme_obj = mlme_get_psoc_ext_obj(psoc);
if (!mlme_obj)
return false;
return mlme_obj->cfg.btm.abridge_flag;
}
QDF_STATUS
wlan_mlme_cfg_set_vht_chan_width(struct wlan_objmgr_psoc *psoc, uint8_t value)
{