diff --git a/components/wpa_supplicant/src/wpa2/eap_peer/eap.c b/components/wpa_supplicant/src/wpa2/eap_peer/eap.c index d492831fd..865da6547 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) {