Open HaydnLiao opened 1 year ago
git rev-parse --short HEAD
station example:
station
Stay connected after connecting to NEC Aterm WX3000HP router.
After obtaining the IP, bcn_timeout appears after 6s, and disconnects after 2.5s. ap_probe_send_over, rest wifi status to disassoc
bcn_timeout
ap_probe_send_over, rest wifi status to disassoc
Just use the station to connect to the router.
I troubleshoot:
esp_wifi_set_country()
policy
WIFI_COUNTRY_POLICY_MANUAL;
2bc42667d166da3676529bf5ca6b680c649f2ff8
WIFI_COUNTRY_POLICY_AUTO
89a3f254b63819035f65d9c5dcdae8864f1a6a8a
v3.4
v3.3
D:\esp\ESP8266_RTOS_SDK\examples\wifi\getting_started\station
How to solve it:
wifi_country_t tCountry; esp_wifi_get_country(&tCountry); ESP_LOGI(TAG, "################ country %s %d %d %d %d", tCountry.cc, tCountry.schan, tCountry.nchan, tCountry.max_tx_power, tCountry.policy); // tCountry.policy = WIFI_COUNTRY_POLICY_AUTO; tCountry.policy = WIFI_COUNTRY_POLICY_MANUAL; esp_wifi_set_country(&tCountry); ESP_LOGI(TAG, "################ country %s %d %d %d %d", tCountry.cc, tCountry.schan, tCountry.nchan, tCountry.max_tx_power, tCountry.policy);
Any update?
Environment
git rev-parse --short HEAD
to get the commit id.): e3348ac7eaf1d91d73a9de1eda2c430ef1afe4bcProblem Description
Expected Behavior
station
example:Stay connected after connecting to NEC Aterm WX3000HP router.
Actual Behavior
After obtaining the IP,
bcn_timeout
appears after 6s, and disconnects after 2.5s.ap_probe_send_over, rest wifi status to disassoc
Steps to repropduce
Just use the
station
to connect to the router.I troubleshoot:
esp_wifi_set_country()
changepolicy
toWIFI_COUNTRY_POLICY_MANUAL;
. It works.2bc42667d166da3676529bf5ca6b680c649f2ff8
, even if the policy isWIFI_COUNTRY_POLICY_AUTO
.89a3f254b63819035f65d9c5dcdae8864f1a6a8a
v3.4
v3.3
Code to reproduce this issue
D:\esp\ESP8266_RTOS_SDK\examples\wifi\getting_started\station
How to solve it: