espressif / esp-hosted

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

wifi disconnect detect issue #286

Open IOTBaicheng opened 11 months ago

IOTBaicheng commented 11 months ago

Hello,

When we disable the wifi AP, it seems that WPA can't get the disconnect event, and can not reconnect after enable the AP again. We get the following log info:

Catch(11-22-15-51-09)

I found a similar issue in the github project:The wifi will not auto reconnect after event espsta0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD · Issue #237 · espressif/esp-hosted · GitHub Coud I fix my issue follow the patch in is link?

mantriyogesh commented 11 months ago

@kapilkedawat

kapilkedawat commented 11 months ago

Hi @IOTBaicheng, thanks for pointing out, we somehow missed to commit this patch, we will push it to repo.

Yes, this will fix your issue.

IOTBaicheng commented 11 months ago

捕获 An error reported after patched.

IOTBaicheng commented 11 months ago

捕获 An error reported after patched.

@kapilkedawat @mantriyogesh is any posible solution?

mantriyogesh commented 11 months ago

sure, will check on this.

mantriyogesh commented 11 months ago

can you please send uname -a output?

mantriyogesh commented 11 months ago

Kapil is not available today,

I suppose your linux kernel is < 5.9 ? https://elixir.bootlin.com/linux/v5.9/source/net/wireless/scan.c#L715

I tried to port it to older kernel, but facing some build issue for it. We will be able to get you this fine on Monday..

IOTBaicheng commented 11 months ago

Kapil is not available today,

I suppose your linux kernel is < 5.9 ? https://elixir.bootlin.com/linux/v5.9/source/net/wireless/scan.c#L715

I tried to port it to older kernel, but facing some build issue for it. We will be able to get you this fine on Monday..

uname -a : Linux (none) 4.9.84 #73 SMP PREEMPT Tue Nov 14 14:28:53 CST 2023 armv7l GNU/Linux

mantriyogesh commented 11 months ago

@kapilkedawat

IOTBaicheng commented 11 months ago

Kapil is not available today,

I suppose your linux kernel is < 5.9 ? https://elixir.bootlin.com/linux/v5.9/source/net/wireless/scan.c#L715

I tried to port it to older kernel, but facing some build issue for it. We will be able to get you this fine on Monday..

Are there any updates?

mantriyogesh commented 11 months ago

@Shreyas0-7 ?

mantriyogesh commented 11 months ago

Hello @IOTBaicheng ,

We are looking into this, but might take some time. Kapil is expected to return by 2nd Dec, in worst case.

shreyassheth1 commented 11 months ago

Hey @IOTBaicheng Can you please try with this patch? cfg80211_bss_flush_unavailable_3.zip

IOTBaicheng commented 11 months ago

Hey @IOTBaicheng Can you please try with this patch? cfg80211_bss_flush_unavailable_3.zip

Yes,It works OK. thanks

mantriyogesh commented 11 months ago

We noted this fix for master. If there is nothing else, can we close this issue @IOTBaicheng ?