ath10k - spectral scan - and - channel change

Will Kerr willjkerr at yahoo.co.uk
Tue Mar 14 03:03:27 PDT 2017



p.s. I am looking to do both commands whilst in a single mode (AP, monitor, I dont really mind). 


Thanks



________________________________
From: Will Kerr <willjkerr at yahoo.co.uk>
To: "ath10k at lists.infradead.org" <ath10k at lists.infradead.org> 
Sent: Tuesday, 7 March 2017, 10:37
Subject: Fw: ath10k - spectral scan - and - channel change


Thank you for looking into this.. I'm really sorry for the confusion, my second email reversed what the problem really is. Now clarified **below**:

Is it possible to control spectral_scan_ctl whilst in **Monitor mode**?
my result:

root at OpenWrt:~# echo disable > /sys/kernel/debug/ieee80211/phy0/ath10k/spectral_scan_ctl
ash: write error: No such device

or 

change channel whilst in **AP mode**?
my result:

root at OpenWrt:~# iw dev wlan0 set channel 112
command failed: Device or resource busy (-16)



and to your questions:
(1)
following  https://wireless.wiki.kernel.org/en/users/drivers/ath10k/spectral - yes, I am able to obtain the spectral_scan0 data OK whilst in AP mode (although I was not able to do root at OpenWrt:~# iw dev wlan0 scan .. command failed: Device or resource busy (-16), I dont know why, I was still able to get scan data OK)

(2)
I get the same result for the below 3 commands if its set to AP mode, Monitor mode, or off (according to the setup in openWRT). I'm sorry, I dont know if there are more commands I should try to confirm things..

root at OpenWrt:~# iw phy0 info
Wiphy phy0
max # scan SSIDs: 16
max scan IEs length: 199 bytes
Retry short limit: 7
Retry long limit: 4
Coverage class: 0 (up to 0m)
Device supports AP-side u-APSD.
Available Antennas: TX 0x7 RX 0x7
Configured Antennas: TX 0x7 RX 0x7
Supported interface modes:
* managed
* AP
* AP/VLAN
* monitor
...
...
...
(plus more, that I removed )

root at OpenWrt:~# dmesg | grep phy0
root at OpenWrt:~#

root at OpenWrt:~# ls /sys/kernel/debug/ieee80211/phy0/ath10k/spectral*
/sys/kernel/debug/ieee80211/phy0/ath10k/spectral_bins
/sys/kernel/debug/ieee80211/phy0/ath10k/spectral_count
/sys/kernel/debug/ieee80211/phy0/ath10k/spectral_scan0
/sys/kernel/debug/ieee80211/phy0/ath10k/spectral_scan_ctl


Thank you, Will






----- Forwarded Message -----
From: "Shajakhan, Mohammed Shafi (Mohammed Shafi)" <mohammed at qti.qualcomm.com>
To: "ath10k at lists.infradead.org" <ath10k at lists.infradead.org>; Will Kerr <willjkerr at yahoo.co.uk>
Sent: Monday, 6 March 2017, 18:15
Subject: Re: ath10k - spectral scan - and - channel change

please follow
https://wireless.wiki.kernel.org/en/users/drivers/ath10k/spectral

please check if phy0 does exists ?
________________________________________
From: ath10k <ath10k-bounces at lists.infradead.org> on behalf of Will Kerr <willjkerr at yahoo.co.uk>
Sent: 06 March 2017 22:27
To: ath10k at lists.infradead.org
Subject: Re: ath10k - spectral scan - and - channel change

pinging and compacting the Q just in case the experts have an idea on this..


Is it possible to control spectral_scan_ctl whilst in AP mode?
my result:

root at OpenWrt:~# echo disable > /sys/kernel/debug/ieee80211/phy0/ath10k/spectral_scan_ctl
ash: write error: No such device

or


change channel whilst in Monitor mode?
my result:

root at OpenWrt:~# iw dev wlan0 set channel 112
command failed: Device or resource busy (-16)

Thanks Will.





________________________________
From: Will Kerr <willjkerr at yahoo.co.uk>
To: "ath10k at lists.infradead.org" <ath10k at lists.infradead.org>
Sent: Friday, 24 February 2017, 6:49
Subject: ath10k - spectral scan - and - channel change


Hello, I searched the mail archives but couldn't find a clue to my question so here it is:

Im interested in performing a spectral scan of as much of the spectrum as possible, and quickly. this means scanning a channel for some time, changing channels, and repeating.


Background: when configuring an ath9k radio to Monitor mode, it is possible to do 2 things:

1) change wifi channel via command line, e.g. iw dev wlan1 set channel 3. This does it seemingly quickly, without taking down the interface (good)

2) control the debugfs files like  /sys/kernel/debug/ieee80211/phy1/ath9k/spectral_scan_ctl (good)


The problem is:

ath10k, in Monitor mode, I am only able to change channels - 1) iw dev wlan0 set channel 104, but not access the debugfs files  2) (which is essential to control and obtain the spectral scan result)
the error I get is:

root at OpenWrt:~# echo disable > /sys/kernel/debug/ieee80211/phy0/ath10k/spectral_scan_ctl
ash: write error: No such device



ath10k, in AP mode, The opposite occurs - I am only able to access debugfs files  2) , but not change channel 1), which is annoying because I cant then scan the entire possible range.


the error I get is one of:

root at OpenWrt:~# iw dev wlan0 set channel 112

command failed: Device or resource busy (-16)
or
root at OpenWrt:~# iw dev wlan0 set channel 104
command failed: Invalid argument (-22)



Is there anything I can do to get both working?

Thanks. Will

_______________________________________________
ath10k mailing list

ath10k at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k



More information about the ath10k mailing list