While working on my Master’s thesis benchmarking WPA3-SAE timing side-channels, I ran into a limitation on the ESP32 esp\_wifi\_80211\_tx() allows raw frame injection, but Espressif’s closed-source wifi blob "libnet80211.a" artificially blocks Auth, Assoc, Deauth, and Disassoc subtypes.
Inside libnet80211.a, ieee80211\_raw\_frame\_sanity\_check drops these frames with wifi:unsupport frame type. Here is how to bypass it on recent ESP-IDF versions (IDF v6.x).
Why standard tricks fail on modern ESP-IDF
Same name function override. On older IDF versions, ieee80211\_raw\_frame\_sanity\_check was a weak symbol (W). On modern IDF versions, it’s a strong symbol (T), causing ld: multiple definition errors.
\--wrap linker flag: Fails silently. The call from esp\_wifi\_80211\_tx to ieee80211\_raw\_frame\_sanity\_check is an intra-object branch inside ieee80211\_output.o.…