Skip to content

Commit

Permalink
drivers: wifi: nxp: support WPA3 enterprise in scan result
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
MaochenWang1 authored and dleach02 committed Jan 17, 2025
1 parent 97f4838 commit 6c45bdc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions drivers/wifi/nxp/nxp_wifi_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6c45bdc

Please sign in to comment.