Wrongly reacting to and sending 802.11 beacons with Channel Switch Announcement

st0ff3r
Posts: 21
Joined: Sun Sep 13, 2015 11:52 pm

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

Postby st0ff3r » Thu Mar 04, 2021 9:18 pm

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

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

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

Postby ESP_Faye » Fri Mar 12, 2021 3:44 pm

Could you test with this libnet80211.a?
libnet80211.a.zip
(112.81 KiB) Downloaded 119 times

And provide the entire logs for debugging?

st0ff3r
Posts: 21
Joined: Sun Sep 13, 2015 11:52 pm

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

Postby st0ff3r » Sat Mar 13, 2021 7:16 am

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?
Attachments
serial_log.txt.zip
(4.63 KiB) Downloaded 73 times

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

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

Postby ESP_Faye » Fri Mar 26, 2021 4:13 pm

Hi st0ff3r,

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


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

Thanks.

st0ff3r
Posts: 21
Joined: Sun Sep 13, 2015 11:52 pm

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

Postby st0ff3r » Fri Mar 26, 2021 9:59 pm

Sure, I'll do that :)

st0ff3r
Posts: 21
Joined: Sun Sep 13, 2015 11:52 pm

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

Postby st0ff3r » Mon Mar 29, 2021 11:55 pm

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 :)
Attachments
beacon_spammer_experiment.zip
(6.99 KiB) Downloaded 48 times

Her Mary
Posts: 495
Joined: Mon Oct 27, 2014 11:09 am

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

Postby Her Mary » Fri Apr 23, 2021 10:46 am

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?

st0ff3r
Posts: 21
Joined: Sun Sep 13, 2015 11:52 pm

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

Postby st0ff3r » Thu Apr 29, 2021 6:08 pm

its not the same ssid/bssi thats what is strange - totally unrelated ssid

Who is online

Users browsing this forum: No registered users and 3 guests