Skip to content

Commit 553b7d9

Browse files
nxf58150fabiobaltieri
authored andcommitted
wifi: shell: Show WPA2 Enterprise in scan results
For WPA2 Enterprise AP, show security type as WPA2 Enterprise instead of EAP-TLS. Signed-off-by: Hui Bai <hui.bai@nxp.com>
1 parent c61afbf commit 553b7d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

subsys/net/l2/wifi/wifi_shell.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ static void handle_wifi_scan_result(struct net_mgmt_event_callback *cb)
208208
entry->rssi,
209209
((entry->wpa3_ent_type) ?
210210
wifi_wpa3_enterprise_txt(entry->wpa3_ent_type)
211-
: wifi_security_txt(entry->security)),
211+
: (entry->security == WIFI_SECURITY_TYPE_EAP ? "WPA2 Enterprise"
212+
: wifi_security_txt(entry->security))),
212213
((entry->mac_length) ?
213214
net_sprint_ll_addr_buf(entry->mac, WIFI_MAC_ADDR_LEN,
214215
mac_string_buf,

0 commit comments

Comments
 (0)