Skip to content

Commit

Permalink
net: wifi: Fix strings for missing enumerations
Browse files Browse the repository at this point in the history
Enumerations were extended but respective strings were not added.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
  • Loading branch information
krish2718 authored and dkalowsk committed Nov 8, 2024
1 parent 862af5e commit fd7fc17
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions subsys/net/l2/wifi/wifi_mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ const char *wifi_security_txt(enum wifi_security_type security)
switch (security) {
case WIFI_SECURITY_TYPE_NONE:
return "OPEN";
case WIFI_SECURITY_TYPE_WEP:
return "WEP";
case WIFI_SECURITY_TYPE_WPA_PSK:
return "WPA-PSK";
case WIFI_SECURITY_TYPE_PSK:
return "WPA2-PSK";
case WIFI_SECURITY_TYPE_PSK_SHA256:
Expand All @@ -70,9 +66,25 @@ const char *wifi_security_txt(enum wifi_security_type security)
case WIFI_SECURITY_TYPE_WAPI:
return "WAPI";
case WIFI_SECURITY_TYPE_EAP_TLS:
return "EAP";
return "EAP-TLS";
case WIFI_SECURITY_TYPE_WEP:
return "WEP";
case WIFI_SECURITY_TYPE_WPA_PSK:
return "WPA-PSK";
case WIFI_SECURITY_TYPE_WPA_AUTO_PERSONAL:
return "WPA/WPA2/WPA3 PSK";
case WIFI_SECURITY_TYPE_DPP:
return "DPP";
case WIFI_SECURITY_TYPE_EAP_PEAP_MSCHAPV2:
return "EAP-PEAP-MSCHAPV2";
case WIFI_SECURITY_TYPE_EAP_PEAP_GTC:
return "EAP-PEAP-GTC";
case WIFI_SECURITY_TYPE_EAP_TTLS_MSCHAPV2:
return "EAP-TTLS-MSCHAPV2";
case WIFI_SECURITY_TYPE_EAP_PEAP_TLS:
return "EAP-PEAP-TLS";
case WIFI_SECURITY_TYPE_EAP_TLS_SHA256:
return "EAP-TLS-SHA256";
case WIFI_SECURITY_TYPE_FT_PSK:
return "FT-PSK";
case WIFI_SECURITY_TYPE_FT_SAE:
Expand Down

0 comments on commit fd7fc17

Please sign in to comment.