Commit 94386e10 authored by Gaofeng Zhang's avatar Gaofeng Zhang Committed by Fabio Baltieri
Browse files

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: default avatarGaofeng Zhang <gaofeng.zhang@nxp.com>
parent 31d24eb1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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: