esp32/modnetwork: Don't start AP automatically when init'ing wifi.
It's a security concern to have a password-less AP automatically starting
when the network module is imported.  Instead, all wifi network
configuration should be done by a Python script (eg boot.py).
@@ -198,6 +198,7 @@ STATIC mp_obj_t esp_initialize() {
ESP_EXCEPTIONS( esp_wifi_init(&cfg) );
ESP_EXCEPTIONS( esp_wifi_set_storage(WIFI_STORAGE_RAM) );
ESP_LOGI("modnetwork", "Initialized");
+ ESP_EXCEPTIONS( esp_wifi_set_mode(0) );
ESP_EXCEPTIONS( esp_wifi_start() );
ESP_LOGI("modnetwork", "Started");
initialized = 1;
