Skip to content

Commit 48ad8c3

Browse files
committed
[nrf fromtree] net: wifi: Fix strings for missing enumerations
Enumerations were extended but respective strings were not added. Signed-off-by: Chaitanya Tata <[email protected]> (cherry picked from commit fd7fc17)
1 parent c077c75 commit 48ad8c3

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

subsys/net/l2/wifi/wifi_mgmt.c

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@ const char *wifi_security_txt(enum wifi_security_type security)
5353
switch (security) {
5454
case WIFI_SECURITY_TYPE_NONE:
5555
return "OPEN";
56-
case WIFI_SECURITY_TYPE_WEP:
57-
return "WEP";
58-
case WIFI_SECURITY_TYPE_WPA_PSK:
59-
return "WPA-PSK";
6056
case WIFI_SECURITY_TYPE_PSK:
6157
return "WPA2-PSK";
6258
case WIFI_SECURITY_TYPE_PSK_SHA256:
@@ -70,9 +66,25 @@ const char *wifi_security_txt(enum wifi_security_type security)
7066
case WIFI_SECURITY_TYPE_WAPI:
7167
return "WAPI";
7268
case WIFI_SECURITY_TYPE_EAP_TLS:
73-
return "EAP";
69+
return "EAP-TLS";
70+
case WIFI_SECURITY_TYPE_WEP:
71+
return "WEP";
72+
case WIFI_SECURITY_TYPE_WPA_PSK:
73+
return "WPA-PSK";
7474
case WIFI_SECURITY_TYPE_WPA_AUTO_PERSONAL:
7575
return "WPA/WPA2/WPA3 PSK";
76+
case WIFI_SECURITY_TYPE_DPP:
77+
return "DPP";
78+
case WIFI_SECURITY_TYPE_EAP_PEAP_MSCHAPV2:
79+
return "EAP-PEAP-MSCHAPV2";
80+
case WIFI_SECURITY_TYPE_EAP_PEAP_GTC:
81+
return "EAP-PEAP-GTC";
82+
case WIFI_SECURITY_TYPE_EAP_TTLS_MSCHAPV2:
83+
return "EAP-TTLS-MSCHAPV2";
84+
case WIFI_SECURITY_TYPE_EAP_PEAP_TLS:
85+
return "EAP-PEAP-TLS";
86+
case WIFI_SECURITY_TYPE_EAP_TLS_SHA256:
87+
return "EAP-TLS-SHA256";
7688
case WIFI_SECURITY_TYPE_FT_PSK:
7789
return "FT-PSK";
7890
case WIFI_SECURITY_TYPE_FT_SAE:

0 commit comments

Comments
 (0)