From fcdd76fa28305d916b383c7e7c2c1e658f84ecd5 Mon Sep 17 00:00:00 2001 From: Chaoli Zhou Date: Tue, 11 Oct 2022 18:57:44 +0800 Subject: [PATCH] Interworking: Print unsupported inner EAP-TTLS method in debug log This can be helpful in trying to figure out unexpected behavior even though we do not currently really do anything with the inner method type. Signed-off-by: Chaoli Zhou --- wpa_supplicant/interworking.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wpa_supplicant/interworking.c b/wpa_supplicant/interworking.c index bc81728ad..6ae21737d 100644 --- a/wpa_supplicant/interworking.c +++ b/wpa_supplicant/interworking.c @@ -421,6 +421,11 @@ static const u8 * nai_realm_parse_eap(struct nai_realm_eap *e, const u8 *pos, case NAI_REALM_INNER_NON_EAP_MSCHAPV2: wpa_printf(MSG_DEBUG, "EAP-TTLS/MSCHAPV2"); break; + default: + wpa_printf(MSG_DEBUG, + "Unsupported EAP-TTLS inner method %u", + *pos); + break; } break; case NAI_REALM_EAP_AUTH_INNER_AUTH_EAP_METHOD: