From 6c89ab9839e29193adcb199f85ebf51bfe27d8c2 Mon Sep 17 00:00:00 2001 From: Liu Zhi Fu Date: Wed, 30 May 2018 13:48:29 +0800 Subject: [PATCH] wpa_supplicant: fix wpa2 enterprise PEAP connection issue Closes https://github.com/espressif/esp-idf/issues/1887 --- components/wpa_supplicant/src/wpa2/eap_peer/eap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/wpa_supplicant/src/wpa2/eap_peer/eap.c b/components/wpa_supplicant/src/wpa2/eap_peer/eap.c index d492831fd6..865da65470 100644 --- a/components/wpa_supplicant/src/wpa2/eap_peer/eap.c +++ b/components/wpa_supplicant/src/wpa2/eap_peer/eap.c @@ -305,7 +305,7 @@ struct wpabuf * eap_sm_build_nak(struct eap_sm *sm, EapType type, u8 id) wpabuf_put_be24(resp, m->vendor); wpabuf_put_be32(resp, m->method); } else - wpabuf_put_u8(resp, EAP_TYPE_NONE); + wpabuf_put_u8(resp, m->method); found++; } if (!found) { -- 2.40.0