qcacld-3.0: Add logic to ignore PMF check for STA test mode
In testbed STA mode the RSNE may not match with APUT and thus driver fails to filter AP from scan cache as PMF capability mismatch. With this change driver will ignore PMF capability check and proceed with connection to send auth and assoc to APUT. Change-Id: I1bf5947fb08574941eaf1845ec1e36ee9b030dd0 CRs-Fixed: 2195354
此提交包含在:
@@ -5223,6 +5223,18 @@ int hdd_set_genie_to_csr(struct hdd_adapter *adapter,
|
|||||||
pWextState->roamProfile.nRSNReqIELength);
|
pWextState->roamProfile.nRSNReqIELength);
|
||||||
|
|
||||||
pWextState->roamProfile.force_rsne_override = true;
|
pWextState->roamProfile.force_rsne_override = true;
|
||||||
|
|
||||||
|
hdd_debug("MFPEnabled %d", pWextState->roamProfile.MFPEnabled);
|
||||||
|
/*
|
||||||
|
* Reset MFPEnabled if testmode RSNE passed doesnt have MFPR
|
||||||
|
* or MFPC bit set
|
||||||
|
*/
|
||||||
|
if (pWextState->roamProfile.MFPEnabled &&
|
||||||
|
!(pWextState->roamProfile.MFPRequired ||
|
||||||
|
pWextState->roamProfile.MFPCapable)) {
|
||||||
|
hdd_debug("Reset MFPEnabled");
|
||||||
|
pWextState->roamProfile.MFPEnabled = 0;
|
||||||
|
}
|
||||||
/* If parsing failed set the def value for the roam profile */
|
/* If parsing failed set the def value for the roam profile */
|
||||||
if (status)
|
if (status)
|
||||||
hdd_set_def_rsne_override(&pWextState->roamProfile,
|
hdd_set_def_rsne_override(&pWextState->roamProfile,
|
||||||
|
@@ -3500,6 +3500,7 @@ static QDF_STATUS csr_prepare_scan_filter(tpAniSirGlobal mac_ctx,
|
|||||||
}
|
}
|
||||||
filter->num_of_enc_type = idx;
|
filter->num_of_enc_type = idx;
|
||||||
filter->num_of_mc_enc_type = idx;
|
filter->num_of_mc_enc_type = idx;
|
||||||
|
filter->ignore_pmf_cap = true;
|
||||||
} else {
|
} else {
|
||||||
filter->num_of_auth =
|
filter->num_of_auth =
|
||||||
pFilter->authType.numEntries;
|
pFilter->authType.numEntries;
|
||||||
|
新增問題並參考
封鎖使用者