-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
E (123456) wifi_init_default: netstack cb reg failed with 12308 (IDFGH-14107) #14916
Comments
I do a
just before changing the mode. This seems to be the cause of the error. How can I avoid this problem? |
@kriegste |
ESP_ERR_WIFI_STOP_STATE: /* 12308 0x3014 Returned when WiFi is stopping */ |
Try these two lines:
You might ask why I do this. esp_wifi_set_protocol() always enables/disables the LR protocol for both the STA and AP interface. This is a general problem in ESP-IDF. |
Of course, it would be best to finally solve the underlying root issue, which is this: |
@kriegste |
You mean esp_wifi_stop()? There is not a single call to this API in my whole app. |
@kriegste |
I am working on a minimum code example. It is a bit harder than I thought. |
@kriegste could you offer your code which can reproduce the issue , or we can not find the root cause |
I could narrow the problem down to the use of esp_wifi_internal_set_retry_counter() (I have very poor WiFi in one spot of the building and was experimenting with this function). |
Answers checklist.
General issue report
In ESP-IDF 5.3.1 with ESP32.
After using
esp_wifi_set_mode(WIFI_MODE_STA);
to disable the AP, this error appears:
What does this error mean? And how do I fix it?
The text was updated successfully, but these errors were encountered: