WPS vs. 4K RAM
Posted: Mon Apr 03, 2023 8:05 pm
As currently implemented in ESP8266WiFiSTA-WPS.cpp, a call to beginWPSConfig forces the pseudo-function disable_extra4k_at_link_time() to be linked in which eats up 4K of critical RAM that the maintainers worked so hard to make part of the standard core.
This is a big deal because most serious uses of the ESP8266 (e.g. using BearSSL), require significant free RAM and 4K is a big chunk of that.
Despite the security issues, WPS remains by far the easiest way for non-technical users to pair a device with their AP. Is there any hope of making the 4K needed for WPS a dynamic allocation prior to starting WPS or of reclaiming that 4K after WPS finishes?
This is a big deal because most serious uses of the ESP8266 (e.g. using BearSSL), require significant free RAM and 4K is a big chunk of that.
Despite the security issues, WPS remains by far the easiest way for non-technical users to pair a device with their AP. Is there any hope of making the 4K needed for WPS a dynamic allocation prior to starting WPS or of reclaiming that 4K after WPS finishes?