drivers: wifi: nxp: support WPA3 enterprise in scan result

Support setting WPA3 enterprise security mode in scan result, i.e.,
Suite-B, Sute-B-192 and WPA3 enterprise only mode.

Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
This commit is contained in:
Maochen Wang 2024-12-27 16:29:52 +08:00 committed by David Leach
parent 97f4838953
commit 6c45bdcddb

View file

@ -708,6 +708,17 @@ static int nxp_wifi_process_results(unsigned int count)
res.security = WIFI_SECURITY_TYPE_SAE;
}
if (scan_result.wpa3_entp) {
res.wpa3_ent_type = WIFI_WPA3_ENTERPRISE_ONLY;
res.security = WIFI_SECURITY_TYPE_EAP_TLS;
} else if (scan_result.wpa3_1x_sha256) {
res.wpa3_ent_type = WIFI_WPA3_ENTERPRISE_SUITEB;
res.security = WIFI_SECURITY_TYPE_EAP_TLS;
} else if (scan_result.wpa3_1x_sha384) {
res.wpa3_ent_type = WIFI_WPA3_ENTERPRISE_SUITEB_192;
res.security = WIFI_SECURITY_TYPE_EAP_TLS;
}
if (scan_result.ap_mfpr) {
res.mfp = WIFI_MFP_REQUIRED;
} else if (scan_result.ap_mfpc) {