qcacmn: Fix PMF check

Currently driver assigns WLAN_PMF_REQUIRED to AP pmf capability
even if rsn capability do not matches with RSN_CAP_MFP_REQUIRED.
Add check for rsn capability against RSN_CAP_MFP_REQUIRED to fix
this issue.

Change-Id: Iff51090c9a65fd7c0d45048b73c5383d56bb13a5
CRs-Fixed: 2146881
This commit is contained in:
Padma, Santhosh Kumar 2017-11-21 13:04:45 +05:30 • committed by snandini
commit bc6003b78f

View file

@ -471,7 +471,7 @@ scm_check_pmf_match(struct scan_filter *filter,
if (rsn->cap & RSN_CAP_MFP_CAPABLE)
ap_pmf_cap = WLAN_PMF_CAPABLE;
if (rsn->cap & RSN_CAP_MFP_CAPABLE)
if (rsn->cap & RSN_CAP_MFP_REQUIRED)
ap_pmf_cap = WLAN_PMF_REQUIRED;
if ((filter->pmf_cap == WLAN_PMF_REQUIRED) &&