GANESH-ICMC / esp32-deauther

170 stars 18 forks source link

Is it possible to make bypass channel hopping restriction? #20

Open Cancro29 opened 10 months ago

Cancro29 commented 10 months ago

I have managed to make it work in Arduino IDE. My method involves webserver to control deauthing process. But if the device is still connected to the SoftAP, deauth does not work. This behavior does not happen in ESP8266. Based on this documentation,

https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/network/esp_wifi.html#_CPPv420esp_wifi_set_channel7uint8_t18wifi_second_chan_t

ESP32 restrict esp_wifi_set_channel() so it returns "ESP_FAIL" if a device is connected to the SoftAP. If i try to look at libnet80211.a, there is a function called "ieee80211_update_channel", my guess this is the function where it checks whether there is a station or not. Is it possible to force channel hopping?.

It may be an intended feature by Espressif to prevent stations from disconnecting, but if I do channel hopping quick enough, it still works normally.