Skip to content

Commit c61afbf

Browse files
nxf58150fabiobaltieri
authored andcommitted
driver: wifi: Update security type to EAP for enterprise AP in scan results
Updated security type to WIFI_SECURITY_TYPE_EAP for enterprise AP when handling scan results. Signed-off-by: Hui Bai <hui.bai@nxp.com>
1 parent 84163d3 commit c61afbf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/wifi/nxp/nxp_wifi_drv.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ static int nxp_wifi_process_results(unsigned int count)
716716
res.security = WIFI_SECURITY_TYPE_NONE;
717717

718718
if (scan_result.wpa2_entp) {
719-
res.security = WIFI_SECURITY_TYPE_EAP_TLS;
719+
res.security = WIFI_SECURITY_TYPE_EAP;
720720
}
721721
if (scan_result.wpa2) {
722722
res.security = WIFI_SECURITY_TYPE_PSK;
@@ -730,13 +730,13 @@ static int nxp_wifi_process_results(unsigned int count)
730730

731731
if (scan_result.wpa3_entp) {
732732
res.wpa3_ent_type = WIFI_WPA3_ENTERPRISE_ONLY;
733-
res.security = WIFI_SECURITY_TYPE_EAP_TLS;
733+
res.security = WIFI_SECURITY_TYPE_EAP;
734734
} else if (scan_result.wpa3_1x_sha256) {
735735
res.wpa3_ent_type = WIFI_WPA3_ENTERPRISE_SUITEB;
736-
res.security = WIFI_SECURITY_TYPE_EAP_TLS;
736+
res.security = WIFI_SECURITY_TYPE_EAP;
737737
} else if (scan_result.wpa3_1x_sha384) {
738738
res.wpa3_ent_type = WIFI_WPA3_ENTERPRISE_SUITEB_192;
739-
res.security = WIFI_SECURITY_TYPE_EAP_TLS;
739+
res.security = WIFI_SECURITY_TYPE_EAP;
740740
}
741741

742742
if (scan_result.ap_mfpr) {

0 commit comments

Comments
 (0)