unable to apply WPE patch

Author: blshkvCreated Apr 29, 2025Updated Sep 5, 2026
--2025-04-29 10:34:15--  https://raw.githubusercontent.com/aircrack-ng/aircrack-ng/master/patches/wpe/hostapd-wpe/hostapd-2.11-wpe.patch
--2025-04-29 10:34:17--  https://w1.fi/releases/hostapd-2.11.tar.gz

patch -p1 < ../hostapd-2.11-wpe.patch

patching file hostapd/.config
patching file hostapd/Makefile
patching file hostapd/certs/Makefile
patching file hostapd/certs/README
patching file hostapd/certs/README.wpe
patching file hostapd/certs/bootstrap
patching file hostapd/certs/ca.cnf
patching file hostapd/certs/client.cnf
patching file hostapd/certs/demoCA/cacert.pem
patching file hostapd/certs/server.cnf
patching file hostapd/certs/xpextensions
patching file hostapd/config_file.c
patching file hostapd/hostapd-wpe.conf
patching file hostapd/hostapd-wpe.eap_user
patching file hostapd/main.c
Hunk #2 FAILED at 552.
1 out of 6 hunks FAILED -- saving rejects to file hostapd/main.c.rej
patching file src/Makefile
patching file src/ap/beacon.c
patching file src/ap/ieee802_11.c
patching file src/ap/ieee802_1x.c
patching file src/crypto/ms_funcs.h
patching file src/crypto/tls_openssl.c
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
9 out of 9 hunks ignored -- saving rejects to file src/crypto/tls_openssl.c.rej
patching file src/eap_server/eap_server.c
patching file src/eap_server/eap_server_mschapv2.c
patching file src/eap_server/eap_server_peap.c
patching file src/eap_server/eap_server_ttls.c
patching file src/utils/wpa_debug.c
patching file src/wpe/Makefile
patching file src/wpe/wpe.c
patching file src/wpe/wpe.h