espressif / esp-hosted

Hosted Solution (Linux/MCU) with ESP32 (Wi-Fi + BT + BLE)
Other
674 stars 158 forks source link

NG mode, disconnect event cannot report #474

Closed lwj850533527 closed 2 days ago

lwj850533527 commented 3 weeks ago

Hi @kapilkedawat.

I use the latest code for testing. But the disconnect event cannot report It can only report "WPA_EVENT_REGDOM_CHANGE" event. I deleted the change in this commit https://github.com/espressif/esp-hosted/commit/20c88e58ca59d1aaf0b807b77c907e2567b9fea6 It can report disconnect event normally

image

kapilkedawat commented 3 weeks ago

Hi @lwj850533527, could you please share supplicant logs? https://github.com/espressif/esp-hosted/commit/20c88e58ca59d1aaf0b807b77c907e2567b9fea6 makes sure that supplicant doesn't get dummy deauth frame when disconnect was issued from userspace(this messes up supplicant's state machine sometimes). Also how are you disconnecting the station from AP?

lwj850533527 commented 3 weeks ago

Also how are you disconnecting the station from AP?

I turned off the power of the router

kapilkedawat commented 3 weeks ago

Please share supplicant logs and dmesg.

lwj850533527 commented 3 weeks ago

I tried to reproduce it, but it doesn't seem to certainly happen

But in the use of older versions,there has been no such situation

kapilkedawat commented 3 weeks ago

Please do share the logs when you are able to reproduce it. As I mentioned above, the patch above fixes a specific issue and decrease our total connection time in that case.

kapilkedawat commented 3 days ago

@lwj850533527 can we close this if this issue no longer comes in your setup?

lwj850533527 commented 2 days ago

Hi @kapilkedawat. OK. We can reopen this issue if the next time same problem happen