Note that with WiFi stack enabled, system_init will reset frequency to 240MHz. To make this setting useful, esp32-wifi-libs submodule needs to be updated.