Hello,
I would like to get reason of disconnection for wifi_event_ap_stadisconnected_t, similar as we have for wifi_event_sta_disconnected_t.
I need to detect attempting to connect to the access point with an incorrect password. There was some topic here and was pointed there is missing expose of SYSTEM_EVENT_AP_STADISCONNECTED.
Is any other valid way of detecting incorrect password entry for AP?
Get reason of disconnection for WiFi AP mode
-
- Posts: 2
- Joined: Mon Jun 12, 2023 9:31 am
Re: Get reason of disconnection for WiFi AP mode
Hello @dgroch,
We can not use WIFI_EVENT_AP_STADISCONNECTED to detect failed connection attempts because WIFI_EVENT_AP_STADISCONNECTED is only posted when a successfully connected device disconnects from softAP.
May I know how you are planning to use this event about wrong-password attempts.
Thanks
Adding reason for disconnection in wifi_event_ap_stadisconnected_t is indeed an useful feature to have. We are working on this.I would like to get reason of disconnection for wifi_event_ap_stadisconnected_t, similar as we have for wifi_event_sta_disconnected_t.
Regarding detection of failed connection attempts with wrong password,I need to detect attempting to connect to the access point with an incorrect password.
We can not use WIFI_EVENT_AP_STADISCONNECTED to detect failed connection attempts because WIFI_EVENT_AP_STADISCONNECTED is only posted when a successfully connected device disconnects from softAP.
Yes, It is possible. We can add different event to detect attempts with wrong password.Is any other valid way of detecting incorrect password entry for AP?
May I know how you are planning to use this event about wrong-password attempts.
Thanks
Re: Get reason of disconnection for WiFi AP mode
I hope you don't mind me bringing this post from the dead.
The OP for this topic is a colleague of mine and the client is again requesting the ability to detect when a user/station enters an incorrect password for the AP.
They want to be able to take the matter into their own hands (e.g. disable the WIFI etc). This is to allow them to satisfy a stringent cyber security related requirement for their future product.
Is there currently a way to do this? I can see a deauth/disassoc being sent... But is there a way to reliably detect that an incorrect password attempt has been made?
The OP for this topic is a colleague of mine and the client is again requesting the ability to detect when a user/station enters an incorrect password for the AP.
They want to be able to take the matter into their own hands (e.g. disable the WIFI etc). This is to allow them to satisfy a stringent cyber security related requirement for their future product.
Is there currently a way to do this? I can see a deauth/disassoc being sent... But is there a way to reliably detect that an incorrect password attempt has been made?
Last edited by kenone on Thu Aug 01, 2024 7:54 am, edited 1 time in total.
-
- Posts: 17
- Joined: Mon Feb 27, 2023 6:47 pm
Re: Get reason of disconnection for WiFi AP mode
Hi,
if you look at wifi_prov_mgr example project, you have,
case WIFI_PROV_CRED_FAIL: {
wifi_prov_sta_fail_reason_t *reason = (wifi_prov_sta_fail_reason_t *)event_data;
ESP_LOGE(TAG, "Provisioning failed!\n\tReason : %s"
"\n\tPlease reset to factory and retry provisioning",
Looking into that might give you ideas.
Regards
if you look at wifi_prov_mgr example project, you have,
case WIFI_PROV_CRED_FAIL: {
wifi_prov_sta_fail_reason_t *reason = (wifi_prov_sta_fail_reason_t *)event_data;
ESP_LOGE(TAG, "Provisioning failed!\n\tReason : %s"
"\n\tPlease reset to factory and retry provisioning",
Looking into that might give you ideas.
Regards
Re: Get reason of disconnection for WiFi AP mode
Thank you, but the device is already provisioned and advertising at this stage. We need to capture when a device is continually trying to connect using an incorrect password.esp32person wrote: ↑Wed Jul 31, 2024 2:53 pmHi,
if you look at wifi_prov_mgr example project, you have,
case WIFI_PROV_CRED_FAIL: {
wifi_prov_sta_fail_reason_t *reason = (wifi_prov_sta_fail_reason_t *)event_data;
ESP_LOGE(TAG, "Provisioning failed!\n\tReason : %s"
"\n\tPlease reset to factory and retry provisioning",
Looking into that might give you ideas.
Regards
-
- Posts: 2
- Joined: Mon Jun 12, 2023 9:31 am
Re: Get reason of disconnection for WiFi AP mode
Hi @kenone,
Indeed an interesting approach.
We had created changes as per the requirements of OP. Was waiting for the update.
Can you please create a github request so that the exchange of logs and build can be easier. Also please mention the target branch and any additional requirements you have.
They want to be able to take the matter into their own hands (e.g. disable the WIFI etc). This is too allow them to satisfy a stringent cyber security related requirement for their future product.
Indeed an interesting approach.
We had created changes as per the requirements of OP. Was waiting for the update.
Can you please create a github request so that the exchange of logs and build can be easier. Also please mention the target branch and any additional requirements you have.
Who is online
Users browsing this forum: No registered users and 67 guests