qcacld-3.0: Consider both peer and Self Capabilities for PMF

Set PMF enabled bit for Association Frame only when both peer
and self supports it.

Change-Id: I11994da4db87e6a83b7ebe308720c45a9e2f0173
CRs-Fixed: 2686114
This commit is contained in:
Utkarsh Bhatnagar 2020-05-17 18:29:20 +05:30 • committed by nshrivas
commit 26b28f5e20

View file

@ -852,8 +852,11 @@ enum mac_status_code lim_check_rsn_ie(struct pe_session *session,
pe_err("vdev is NULL");
return eSIR_MAC_UNSPEC_FAILURE_STATUS;
}
if ((peer_crypto_params.rsn_caps &
WLAN_CRYPTO_RSN_CAP_MFP_ENABLED) &&
wlan_crypto_vdev_is_pmf_enabled(vdev))
*pmf_connection = true;
*pmf_connection = wlan_crypto_vdev_is_pmf_enabled(vdev);
wlan_objmgr_vdev_release_ref(vdev, WLAN_LEGACY_MAC_ID);
return lim_check_crypto_param(assoc_req, &peer_crypto_params);