Setting up ESP32 S3 N16R8 struggles connecting to wifi

Simply use Espressif Arduino’s WiFi.setTxPower() with one of the values from the wifi_power_t enum

He’s using esp_wifi.h from the underlying ESP-IDF which is more like a direct way. The Arduino library is just a wrapper in “Arduino style” but will end up in the exact same call to esp_wifi_set_max_tx_power() from the ESP-IDF.