Page 2 of 2

Re: Wrongly reacting to and sending 802.11 beacons with Channel Switch Announcement

Posted: Thu Mar 04, 2021 9:18 pm
by st0ff3r
Still the same with wifi_station_set_reconnect_policy(0):

-> wifi_start_scan(WIFI_SCAN_INTERVAL)
@@ set csa state to CSA done
-> wifi_scan_timer_func()
RSSI: -65
@@ set csa state to CSA start 2
@@ add csa 1
@@ add csa 1
@@ add csa 3
@@ add csa 1
@@ add csa 1
@@ add csa 3
@@ add csa 1
@@ add csa 1
@@ add csa 3
@@ add csa 1
@@ add csa 1
@@ add csa 3
@@ add csa 1
@@ add csa 1
switch to channel 2
scandone
-> wifi_scan_done_cb(3fff37b8, 1)
-> wifi_start_scan(WIFI_SCAN_INTERVAL)
@@ set csa state to CSA done

Re: Wrongly reacting to and sending 802.11 beacons with Channel Switch Announcement

Posted: Fri Mar 12, 2021 3:44 pm
by ESP_Faye
Could you test with this libnet80211.a?
libnet80211.a.zip
(112.81 KiB) Downloaded 107 times

And provide the entire logs for debugging?

Re: Wrongly reacting to and sending 802.11 beacons with Channel Switch Announcement

Posted: Sat Mar 13, 2021 7:16 am
by st0ff3r
Same result, but no debugging message besides "switch to channel 2" after calling wifi_station_scan(). Should I try to change wifi_station_set_reconnect_policy(1) to wifi_station_set_reconnect_policy(0) as well?

Re: Wrongly reacting to and sending 802.11 beacons with Channel Switch Announcement

Posted: Fri Mar 26, 2021 4:13 pm
by ESP_Faye
Hi st0ff3r,

Could you have a try with the new test lib?
libnet80211-test2.a.zip
(113.11 KiB) Downloaded 56 times


If possible, could you provide captured Wi-Fi packets for analyzing?

Thanks.

Re: Wrongly reacting to and sending 802.11 beacons with Channel Switch Announcement

Posted: Fri Mar 26, 2021 9:59 pm
by st0ff3r
Sure, I'll do that :)

Re: Wrongly reacting to and sending 802.11 beacons with Channel Switch Announcement

Posted: Mon Mar 29, 2021 11:55 pm
by st0ff3r
Hereby attached tcpdump wifi capture file and serial debugging output of the following scenario:
1. esp 8266 connected to ssid "Loppen Public" on channel 1
2. "beacon_spammer" sending out CSA's on channel 2
3. tcpdump running on same host as "beacon_spammer" on channel 2

Thanx a lot for your help to debug :)

Re: Wrongly reacting to and sending 802.11 beacons with Channel Switch Announcement

Posted: Fri Apr 23, 2021 10:46 am
by Her Mary
May I ask if the SSID & BSSID of beacon sent from beacon_spammer be the same as the SSID & BSSID of the router which ESP8266 connected to?

Re: Wrongly reacting to and sending 802.11 beacons with Channel Switch Announcement

Posted: Thu Apr 29, 2021 6:08 pm
by st0ff3r
its not the same ssid/bssi thats what is strange - totally unrelated ssid