qcacld-3.0: Add ini to enable sae auth/assoc retry

Introduce new INI sae_connect_retries to decide auth (initial connect
and roam auth) and connect retry for sae. MAX reties is capped to 2
and max for roam auth is 1.
Default is 0x49 i.e. 1 retry each.

Bits       Retry Type
BIT[0:2]   AUTH retries
BIT[3:5]   Connection reties
BIT[6:8]   ROAM AUTH retries

Change-Id: Idae86a7bdb32244c7f3a140b8591418b8238758a
CRs-Fixed: 2728458
This commit is contained in:
Abhishek Ambure
2020-07-09 19:42:13 +05:30
committed by nshrivas
parent 0c45a04554
commit fbdde4785a
7 changed files with 214 additions and 14 deletions

View File

@@ -2539,6 +2539,65 @@ QDF_STATUS
wlan_mlme_get_dfs_chan_ageout_time(struct wlan_objmgr_psoc *psoc,
uint8_t *dfs_chan_ageout_time);
#ifdef WLAN_FEATURE_SAE
/**
* wlan_mlme_get_sae_assoc_retry_count() - Get the sae assoc retry count
* @psoc: pointer to psoc object
* @retry_count: assoc retry count
*
* Return: QDF Status
*/
QDF_STATUS
wlan_mlme_get_sae_assoc_retry_count(struct wlan_objmgr_psoc *psoc,
uint8_t *retry_count);
/**
* wlan_mlme_get_sae_assoc_retry_count() - Get the sae auth retry count
* @psoc: pointer to psoc object
* @retry_count: auth retry count
*
* Return: QDF Status
*/
QDF_STATUS
wlan_mlme_get_sae_auth_retry_count(struct wlan_objmgr_psoc *psoc,
uint8_t *retry_count);
/**
* wlan_mlme_get_sae_roam_auth_retry_count() - Get the sae roam auth retry count
* @psoc: pointer to psoc object
* @retry_count: auth retry count
*
* Return: QDF Status
*/
QDF_STATUS
wlan_mlme_get_sae_roam_auth_retry_count(struct wlan_objmgr_psoc *psoc,
uint8_t *retry_count);
#else
static inline QDF_STATUS
wlan_mlme_get_sae_assoc_retry_count(struct wlan_objmgr_psoc *psoc,
uint8_t *retry_count)
{
*retry_count = 0;
return QDF_STATUS_SUCCESS;
}
static inline QDF_STATUS
wlan_mlme_get_sae_auth_retry_count(struct wlan_objmgr_psoc *psoc,
uint8_t *retry_count)
{
*retry_count = 0;
return QDF_STATUS_SUCCESS;
}
static inline QDF_STATUS
wlan_mlme_get_sae_roam_auth_retry_count(struct wlan_objmgr_psoc *psoc,
uint8_t *retry_count)
{
*retry_count = 0;
return QDF_STATUS_SUCCESS;
}
#endif
#ifdef WLAN_FEATURE_ROAM_OFFLOAD
/**
* wlan_mlme_get_dual_sta_roaming_enabled - API to get if the dual sta