zephyr: hostap: fix eap secure mode print UNKNOWN

wpas_key_mgmt_to_zephyr doesn't support eap secure mode, add code to
support eap secure mode.

Signed-off-by: Gaofeng Zhang <gaofeng.zhang@nxp.com>
This commit is contained in:
Gaofeng Zhang 2024-09-23 11:35:11 +08:00 committed by Fabio Baltieri
parent 31d24eb186
commit 94386e103e

View file

@ -348,6 +348,10 @@ static inline int chan_to_freq(int chan)
static inline enum wifi_frequency_bands wpas_band_to_zephyr(enum wpa_radio_work_band band)
{
switch (band) {
case WPA_KEY_MGMT_IEEE8021X:
case WPA_KEY_MGMT_IEEE8021X_SUITE_B:
case WPA_KEY_MGMT_IEEE8021X_SUITE_B_192:
return WIFI_SECURITY_TYPE_EAP_TLS;
case BAND_2_4_GHZ:
return WIFI_FREQ_BAND_2_4_GHZ;
case BAND_5_GHZ: