Skip to content

Commit

Permalink
zephyr: hostap: fix eap secure mode print UNKNOWN
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
GaofengZhangNXP authored and fabiobaltieri committed Sep 27, 2024
1 parent 31d24eb commit 94386e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/hostap/src/supp_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 94386e1

Please sign in to comment.