qcacld-3.0: Add support for WPA3 LFR2 roaming

On some projects, LFR3 roaming is not supported due to
limitation of FW memory, thus, add support for WPA3 LFR2
roaming.

Change-Id: I80888049a243c0d37e08377d89a6aa44e75a8850
CRs-Fixed: 2973554
This commit is contained in:
Bing Sun
2022-08-03 16:02:46 +08:00
committed by Madan Koyyalamudi
parent c9887c1976
commit 082f9da230
9 changed files with 166 additions and 32 deletions

View File

@@ -1212,4 +1212,14 @@ wlan_mlme_is_pmk_set_deferred(struct wlan_objmgr_psoc *psoc,
return false;
}
#endif
#ifdef WLAN_FEATURE_SAE
/**
* wlan_vdev_is_sae_auth_type() - is vdev SAE auth type
* @vdev: pointer to vdev
*
* Return: true if vdev is SAE auth type
*/
bool wlan_vdev_is_sae_auth_type(struct wlan_objmgr_vdev *vdev);
#endif /* WLAN_FEATURE_SAE */
#endif

View File

@@ -1447,6 +1447,21 @@ static bool is_sae_sap_enabled(struct wlan_objmgr_psoc *psoc)
{
return cfg_get(psoc, CFG_IS_SAP_SAE_ENABLED);
}
bool wlan_vdev_is_sae_auth_type(struct wlan_objmgr_vdev *vdev)
{
int32_t auth_mode;
auth_mode = wlan_crypto_get_param(vdev, WLAN_CRYPTO_PARAM_AUTH_MODE);
if (auth_mode == -1)
return false;
if (QDF_HAS_PARAM(auth_mode, WLAN_CRYPTO_AUTH_SAE))
return true;
return false;
}
#else
static bool is_sae_sap_enabled(struct wlan_objmgr_psoc *psoc)
{

View File

@@ -575,6 +575,24 @@ static inline bool cm_is_open_mode(struct wlan_objmgr_vdev *vdev)
return wlan_vdev_is_open_mode(vdev);
}
#ifdef WLAN_FEATURE_SAE
/**
* cm_is_auth_type_sae() - is vdev SAE auth type
* @vdev: pointer to vdev
*
* Return: true if vdev is SAE auth type
*/
static inline bool cm_is_auth_type_sae(struct wlan_objmgr_vdev *vdev)
{
return wlan_vdev_is_sae_auth_type(vdev);
}
#else
static inline bool cm_is_auth_type_sae(struct wlan_objmgr_vdev *vdev)
{
return false;
}
#endif
#ifdef FEATURE_WLAN_ESE
bool
cm_ese_open_present(struct wlan_objmgr_vdev *vdev,