You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you construct a configuration which is not world-safe (allowed in the default country code of O1) - for instance, an access point on Channel 13 with ESP_WIFI_COUNTRY_CODE = "DE" (or another country which allows the use of this channel):
Bug description
If you construct a configuration which is not world-safe (allowed in the default country code of
O1
) - for instance, an access point on Channel 13 withESP_WIFI_COUNTRY_CODE = "DE"
(or another country which allows the use of this channel):You can't pass this to
wifi::new_with_config()
, orWifiController::set_configuration()
without first callingWifiController::start()
, or you get a runtime error:This is because
esp_wifi_set_country()
is not called untilwifi::wifi_start()
, afterwifi::new_with_config()
orWifiController::set_configuration()
would callesp_wifi_set_config()
:esp-hal/esp-wifi/src/wifi/mod.rs
Lines 1630 to 1637 in b4379b8
To Reproduce
Expected behavior
I would expect my access point to run on channel 13, not panic.
Environment
The text was updated successfully, but these errors were encountered: