Historical ath9k-devel archives
 help / color / mirror / Atom feed
From: Oleksij Rempel <linux@rempel-privat.de>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] [PATCH 0/3] Refactoring spectral scan code and adding spectral scan support for ath9k_htc
Date: Wed, 30 Apr 2014 13:15:09 +0200	[thread overview]
Message-ID: <5360DB3D.6080803@rempel-privat.de> (raw)
In-Reply-To: <CAFT2d74bv_Ccn2pYDX229QKg405kmCe2S=fsuH+=Z=gxC6Fi7Q@mail.gmail.com>

Am 29.04.2014 15:16, schrieb Ashish Patro:
> Hi Oleksij,
> 
> For the AR9721 chipset, the spectral count should be set to 0. Also, for
> the AR 9271 chipset, I get more stable results in monitor mode.
> 
> I've tested it in the following mode:-
> 
> 1. Create the monitor interface.
> 
> WLAN_INTF=wlan3 # Change accordingly to client interface.
> PHY_INTF=phy0 # For the ath9k_htc phy interface.
> MON_INTF=moni0
> 
> iw dev $WLAN_INTF del
> iw phy $PHY_INTF interface add $MON_INTF type monitor
> ifconfig moni0 up
> iwconfig
> 
> 2. Initiate the spectral scan.
> 
> echo background >
> /sys/kernel/debug/ieee80211/phy0/ath9k_htc/spectral_scan_ctl;
> echo trigger > /sys/kernel/debug/ieee80211/phy0/ath9k_htc/spectral_scan_ctl;
> 
> 3. Write output to file (Get endless samples).
> 
> while [ 1 ]; 
> do
>  echo "Writing"; 
>  sudo cat /sys/kernel/debug/ieee80211/phy0/ath9k_htc/spectral_scan0 >>
> /tmp/tmp_fft; 
>  wc -l /tmp/tmp_fft;  
>  sleep 1; 
> done
> 
> 4. Check the FFT output
> ./fft_eval /tmp/fft_results

Thank you, it works. Now you can send your patches to
linux-wireless at vger.kernel.org
and
linville at tuxdriver.com

if you have some time and can separate spectral scan to different
debugfs directory to make it universal for both drivers, you'll be my
hero :)
instead of phy0/ath9k/spectral... and phy0/ath9k_htc/spectral...  make
phy0/spectral_scan/scan_*

it will make live for user space programs easier and will make possible
to move debufs part of spectral code to common-sepctral.c

> Thanks
> Ashish
> 
> On Tue, Apr 29, 2014 at 1:52 AM, Oleksij Rempel <linux@rempel-privat.de
> <mailto:linux@rempel-privat.de>> wrote:
> 
>     Hm... it compiles but i didn't go any results with my script:
> 
>     sudo bash -c "echo chanscan >
>     /sys/kernel/debug/ieee80211/phy1/ath9k_htc/spectral_scan_ctl"
>     sudo bash -c "echo 8 >
>     /sys/kernel/debug/ieee80211/phy1/ath9k_htc/spectral_count"
> 
>     for i in $(seq 1 44); do
>       sudo iw dev wlan-test scan
>       sleep 1
>     done
> 
>     sudo bash -c "cat
>     /sys/kernel/debug/ieee80211/phy1/ath9k_htc/spectral_scan0 >
>     /tmp/fft_results"
>     sudo bash -c "echo 8 >
>     /sys/kernel/debug/ieee80211/phy1/ath9k_htc/spectral_count"
> 
>     sudo bash -c "echo disable >
>     /sys/kernel/debug/ieee80211/phy1/ath9k_htc/spectral_scan_ctl"
> 
>     ./fft_eval /tmp/fft_results
> 
>     Am 25.04.2014 10:12, schrieb Ashish Patro:
>     >
>     > The patches move the common components of spectral scan
>     funcationality to common-spectral.c.
>     >
>     > Also added spectral scan support to ath9k_htc using the same
>     mechanism to collect spectral scan data as used by ath9k driver.
>     >
>     > This work was done at the Wisconsin Wireless and NetworkinG
>     Systems (WiNGS) Lab at the University of Wisconsin Madison.
>     >
>     > Ashish Patro (3):
>     >   Moving the ath9k specific spectral functions to ath9k.h from
>     >     spectral.h. Renamed spectral.h to common-spectral.h
>     >   Refactoring the ath9k driver to move common spectral functions to
>     >     common-spectral.c
>     >   Update spectral scan calls to support both ath9k and ath9k_htc.
>     >     Adding spectral scan functionality to ath9k_htc driver. Tested
>     >     using a AR9271 WiFi card.
>     >
>     >  drivers/net/wireless/ath/ath9k/Makefile           |    3 +-
>     >  drivers/net/wireless/ath/ath9k/ar9002_phy.c       |   11 +-
>     >  drivers/net/wireless/ath/ath9k/ath9k.h            |    9 +-
>     >  drivers/net/wireless/ath/ath9k/common-spectral.c  |  213
>     +++++++++++++
>     >  drivers/net/wireless/ath/ath9k/common-spectral.h  |  199 ++++++++++++
>     >  drivers/net/wireless/ath/ath9k/htc.h              |   13 +
>     >  drivers/net/wireless/ath/ath9k/htc_drv_debug.c    |    3 +
>     >  drivers/net/wireless/ath/ath9k/htc_drv_init.c     |    8 +
>     >  drivers/net/wireless/ath/ath9k/htc_drv_main.c     |   75 +++++
>     >  drivers/net/wireless/ath/ath9k/htc_drv_spectral.c |  353
>     +++++++++++++++++++++
>     >  drivers/net/wireless/ath/ath9k/htc_drv_txrx.c     |   17 +
>     >  drivers/net/wireless/ath/ath9k/recv.c             |    7 +-
>     >  drivers/net/wireless/ath/ath9k/spectral.c         |  187 -----------
>     >  drivers/net/wireless/ath/ath9k/spectral.h         |  212 ------------
>     >  14 files changed, 905 insertions(+), 405 deletions(-)
>     >  create mode 100644 drivers/net/wireless/ath/ath9k/common-spectral.c
>     >  create mode 100644 drivers/net/wireless/ath/ath9k/common-spectral.h
>     >  create mode 100644 drivers/net/wireless/ath/ath9k/htc_drv_spectral.c
>     >  delete mode 100644 drivers/net/wireless/ath/ath9k/spectral.h
>     >
> 
> 
>     --
>     Regards,
>     Oleksij
> 
> 
>     _______________________________________________
>     ath9k-devel mailing list
>     ath9k-devel at lists.ath9k.org <mailto:ath9k-devel@lists.ath9k.org>
>     https://lists.ath9k.org/mailman/listinfo/ath9k-devel
> 
> 


-- 
Regards,
Oleksij

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 278 bytes
Desc: OpenPGP digital signature
Url : http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20140430/aab25551/attachment.pgp 

  reply	other threads:[~2014-04-30 11:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-25  8:12 [ath9k-devel] [PATCH 0/3] Refactoring spectral scan code and adding spectral scan support for ath9k_htc Ashish Patro
2014-04-25  8:12 ` [ath9k-devel] [PATCH 1/3] Moving the ath9k specific spectral functions to ath9k.h from spectral.h. Renamed spectral.h to common-spectral.h Ashish Patro
2014-04-25  8:12 ` [ath9k-devel] [PATCH 2/3] Refactoring the ath9k driver to move common spectral functions to common-spectral.c Ashish Patro
2014-04-25  8:12 ` [ath9k-devel] [PATCH 3/3] Update spectral scan calls to support both ath9k and ath9k_htc. Adding spectral scan functionality to ath9k_htc driver. Tested using a AR9271 WiFi card Ashish Patro
2014-04-29  6:52 ` [ath9k-devel] [PATCH 0/3] Refactoring spectral scan code and adding spectral scan support for ath9k_htc Oleksij Rempel
2014-04-29 13:16   ` Ashish Patro
2014-04-30 11:15     ` Oleksij Rempel [this message]
2014-04-30 15:04       ` Ashish Patro
  -- strict thread matches above, loose matches on Subject: below --
2014-04-21  1:08 Ashish Patro
2014-04-21  6:57 ` Oleksij Rempel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5360DB3D.6080803@rempel-privat.de \
    --to=linux@rempel-privat.de \
    --cc=ath9k-devel@lists.ath9k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox