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:
parent
97f4838953
commit
6c45bdcddb
1 changed files with 11 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue