-
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
Soft AP does not reset AID of clients on power cuts (IDFGH-12159) #13215
Comments
Hi @SmartAppsML By the way, if it's convenient, please provide the log you reproduced. |
Thanks for the fast reply! Yes, I am using the same device to reconnect.
The device automatically connects to the access point once started. So when
I press RESET, let it connect and repeat the process, after 10 times all
the slots are full and I can't connect any device to the network.
mhdong ***@***.***> schrieb am Di., 20. Feb. 2024, 08:27:
… Hi @SmartAppsML <https://github.com/SmartAppsML>
3. Reset the client, let it connect.
Are you trying to reconnect after reset using *the same* device?
If using the same device, multiple connections will obtain the same AID.
If different devices are used, due to a sudden power off, the connection
is still considered to exist for SoftAP until the active timeout. At this
point, a new device is attempting to connect and cannot use the already
occupied AID.
By the way, if it's convenient, please provide the log you reproduced.
—
Reply to this email directly, view it on GitHub
<#13215 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB6FE5ZDSP4GGIQUIBK4Y53YURF7FAVCNFSM6AAAAABDPT2Y32VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJTGYZDEMJYG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi @SmartAppsML |
Thank you for the fast reply! I have tested the issue with the latest release/v5.1 but it is still a problem.
And so on. Thank you for looking into it! |
Hi @SmartAppsML We tried to reproduce it locally using the demos of esp-idf/examples/wifi/getting_started/softAP and esp-idf/examples/wifi/getting_started/station by two ESP32S3 boards. And the idf commit was d922d41. It is indeed impossible to reproduce it, and the log is shown in the above file. Please provide more logs for us to analyze. |
Hey @mhdong indeed I checked the version again and was on an older version of 5.1. It is actually fixed using the latest commit! Thank you! |
@mhdong |
Answers checklist.
IDF version.
release/v5.1
Espressif SoC revision.
ESP32-S3
Operating System used.
Linux
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
Development Kit.
esp-idf
Power Supply used.
USB
What is the expected behavior?
When disconnecting a client (ESP32) from the WiFi Soft AP (also ESP32), it triggers a STADISCONNECTED event, which is fine. However if the client connects again, this will lead to a new AID being assigned to the client without removing the old one. Repeating this 10 times leads to all the wifi slots being filled up, allowing no more connections to WiFi.
Also, it is not possible to use the deauth_sta function and remove the "faulty" AID.
What is the actual behavior?
The internal AID entry should be removed to free up the slot.
Steps to reproduce.
Debug Logs.
No response
More Information.
No response
The text was updated successfully, but these errors were encountered: