WLAN-Pi / wlanpi-profiler

Wi-Fi client capabilities analyzer tool built for the WLAN Pi
BSD 3-Clause "New" or "Revised" License
25 stars 9 forks source link

Test listen only mode with Wi-Fi 6E #83

Closed joshschmelzle closed 2 years ago

joshschmelzle commented 2 years ago

I believe we should be able to profile passively in 6 GHz with listen only mode, but we need to verify this works with all the changes to profiler in v1.0.8 to support interface staging with iwlwifi cards.

joshschmelzle commented 2 years ago

Confirmed that we can passively listen in 6 GHz with the correct configuration. We are unable to stage the interface with the current version of profiler, so we must do that before launching profiler, and also instruct profiler to not stage the interface.

Testbed:

In my scenario, phy0 maps to wlan1, which is the AX210.

Interface staging commands:

sudo wpa_cli -i wlan1 terminate
sudo ip link set wlan1 down
sudo iw dev wlan1 set type managed
sudo ip link set wlan1 up
sudo iw wlan1 scan > /dev/null
sudo iw phy0 interface add mon0 type monitor flags none
sudo ip link set mon0 up
sudo ip link set wlan1 down
sudo iw mon0 set freq 5975 HT20
iwconfig  && sudo iw phy phy0 channels | grep -A 3 5975

Ok, we get No IR in the response, this is OK, we can't do injection, but we can listen on 5975 as long as it is not disabled:

    * 5975 MHz [5]
      Maximum TX power: 22.0 dBm
      No IR
      Channel widths: 20MHz

Profiler options:

sudo venv/bin/python3 -m profiler --logging debug -i mon0 --noprep --noap

Validation:

Greenshot 2021-11-06 18 12 22