How to configure monitor devices for HT80?
I'm trying to sniff using a monitor interface on ath10k, on channel 36.
I'm seeing lots of packets, but not all that the AP claims to be sending (when sniffing vap0). I am not not certain the monitor interface is using HT80 or not.
Anyone have a working example of the proper iw commands to create a monitor interface on channel 36 for HT80?
Thanks,
Ben
Signature · 2 lines
Ben Greear <[email protected]> Candela Technologies Inc http://www.candelatech.com
Quoted 8 lines · Ben Greear
I'm trying to sniff using a monitor interface on ath10k, on channel 36.
I'm seeing lots of packets, but not all that the AP claims to be sending (when sniffing vap0). I am not not certain the monitor interface is using HT80 or not.
Anyone have a working example of the proper iw commands to create a monitor interface on channel 36 for HT80?
...
iw wlan0 set freq 5180 80 5210
johannes
Quoted 7 lines · Johannes Berg
Quoted 6 lines · Ben Greear
I'm trying to sniff using a monitor interface on ath10k, on channel 36.
I'm seeing lots of packets, but not all that the AP claims to be sending (when sniffing vap0). I am not not certain the monitor interface is using HT80 or not.
Quoted 5 lines
Quoted 2 lines
Anyone have a working example of the proper iw commands to create a monitor interface on channel 36 for HT80?
...
iw wlan0 set freq 5180 80 5210
Thanks, this works at least most of the time.
But, it seems if I have another vif up, it will fail, even if that vif is (should be?) using the exact same frequency.
./local/sbin/iw phy wiphy0 interface add moni0 type monitor ./local/sbin/ip link set dev moni0 up ./local/sbin/iw dev moni0 set freq 5180 80 5210
-> yields error:
command failed: Device or resource busy (-16)
I'm not absolutely certain the monitor device still works properly or not, but it at least mostly works.
Thanks,
Ben
Signature · 2 lines
Ben Greear <[email protected]> Candela Technologies Inc http://www.candelatech.com
Quoted 8 lines · Ben Greear
But, it seems if I have another vif up, it will fail, even if that vif is (should be?) using the exact same frequency.
./local/sbin/iw phy wiphy0 interface add moni0 type monitor ./local/sbin/ip link set dev moni0 up ./local/sbin/iw dev moni0 set freq 5180 80 5210
-> yields error:
command failed: Device or resource busy (-16)
You can't set the monitor frequency if you're using the hardware for something else already. We could potentially allow that if the chandefs are compatible, but that's getting into really messy territory so I'm not sure I want to go there - if for example the other interface switches bandwidth or even channel the monitor would usually simply follow around.
johannes
Quoted 11 lines · Johannes Berg
Quoted 8 lines · Ben Greear
But, it seems if I have another vif up, it will fail, even if that vif is (should be?) using the exact same frequency.
./local/sbin/iw phy wiphy0 interface add moni0 type monitor ./local/sbin/ip link set dev moni0 up ./local/sbin/iw dev moni0 set freq 5180 80 5210
-> yields error:
command failed: Device or resource busy (-16)
Quoted 6 lines
You can't set the monitor frequency if you're using the hardware for something else already. We could potentially allow that if the chandefs are compatible, but that's getting into really messy territory so I'm not sure I want to go there - if for example the other interface switches bandwidth or even channel the monitor would usually simply follow around.
Ok, as long as I know why then the failure is not so concerning.
Another question: if I create a monitor interface first, and successfully set it's frequency, what do I need to do to allow a station to move to a different frequency later?
Thanks,
Ben
Quoted 3 lines
johannes
Signature · 2 lines
Ben Greear <[email protected]> Candela Technologies Inc http://www.candelatech.com
Quoted 3 lines · Ben Greear
Another question: if I create a monitor interface first, and successfully set it's frequency, what do I need to do to allow a station to move to a different frequency later?
Nothing - the monitor frequency is always just a hint that you want, if you start doing other things it gets lost automatically.
johannes