qcacmn: Fix SAE pmkid update issue

For SAE SAP, after full SAE authentication, only pmkid
will be sent down to driver, PMK len is zero.
Driver should accept the set pmksa without PMK.
Add check pmk length checking and if pmk len is zero,
driver allow the set pmksa.

Change-Id: Ic05dee4cce31233dbe6dfced05df54fe8972dd1f
CRs-Fixed: 3042899
Esse commit está contido em:
Liangwei Dong
2021-09-28 14:56:27 +08:00
commit de Madan Koyyalamudi
commit dffbb1b320

Ver arquivo

@@ -496,7 +496,8 @@ QDF_STATUS wlan_crypto_set_del_pmksa(struct wlan_objmgr_vdev *vdev,
crypto_params = &crypto_priv->crypto_params;
if (set) {
pmkid_cache = wlan_crypto_get_pmksa(vdev, &pmksa->bssid);
if (pmkid_cache && ((pmksa->pmk_len == pmkid_cache->pmk_len) &&
if (pmkid_cache && (pmksa->pmk_len &&
pmksa->pmk_len == pmkid_cache->pmk_len &&
!qdf_mem_cmp(pmkid_cache->pmk, pmksa->pmk,
pmksa->pmk_len))) {
crypto_debug("PMKSA entry found with same PMK");