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] Spectral Scan in ath9k
Date: Wed, 08 May 2013 19:50:19 +0200	[thread overview]
Message-ID: <518A905B.1050309@rempel-privat.de> (raw)
In-Reply-To: <loom.20130508T180809-509@post.gmane.org>

Am 08.05.2013 18:15, schrieb Claudio:
>
> Alex Hacker <hacker <at> epn.ru> writes:
>
>>
>> On Thu, May 31, 2012 at 12:19:08PM -0700, Adrian Chadd wrote:
>>> Argh, there's more to it..
>>>
>>> For AR9160 and later, you can enable the FFT bit in one of the radar
>>> registers and you'll get some FFT reports for longer radar pulses.
>>> It's enabled by default in the code that we've committed to ath9k and
>>> FreeBSD HAL.
>>>
>>> Spectral scan mode is related but different (and not in AR9160.)
>>>
>>> So for longer pulses, you'll get RADAR payload (phyerr code = 5) which
>>> may just have the pri/ext pulse duration and some config info, or it
>>> may have a series of FFT reports first. That's just for radar stuff
>>> though, it's not spectral scan.
>>>
>>> That's why he mentioned code = 5 or code = 38.
>>>
>>>
>>> Adrian
>>
>> Hi Adrian.
>> Yes, I'm thinking same way. You right, some additional information
> required.
>> But for guys who have an interest and time to do some reverse engineering
> we
>> give a starting point. :) Just another more clear hint for them. Look into
>> published DFS code (it's low level part) and HW radar filter parameters in
>> AR_PHY_RADAR_* registers.
>>
>> Best regards to you,
>> Alex.
>>
>
> Hi all,
>   first of all thank you for the code you have developed.
> I have tried to use it but at each time outputs a different number of FFT
> samples.
>
> I am using FFT_eval (https://github.com/simonwunderlich/FFT_eval) and the
> following commands:
>
>
> echo chanscan > /sys/kernel/debug/ieee80211/phy0/ath9k/spectral_scan_ctl
> iw dev wlan0 scan
> cat /sys/kernel/debug/ieee80211/phy0/ath9k/spectral_scan0 > /tmp/fft_resusts
> ./fft_eval /tmp/fft_results
>
> On average I get 200-400 samples but sometimes I got even 7k samples, which
> is very good.
>
> I was wondering what causes such variability on how (if possible) perform
> the spectral scan obtaining a high and constant sample set.
>
> I am not touching the other parameters and I am using compat-drivers-3.9-
> rc4-2-s

each time driver do scheduled or unscheduled channel scan, it collect 
samples for spectral scan.
make a lopp with "iw dev wlan0 scan" and you will got mach more samples :)



-- 
Regards,
Oleksij

  reply	other threads:[~2013-05-08 17:50 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-24 15:50 [ath9k-devel] Spectral Scan in ath9k Saulo Queiroz
2012-03-24 22:53 ` Adrian Chadd
2012-05-30 10:25   ` Alex Hacker
2012-05-31 10:58     ` Saulo Queiroz
2012-05-31 13:27       ` Alex Hacker
2012-05-31 14:48     ` abhinav narain
2012-05-31 19:19       ` Adrian Chadd
2012-06-01  3:01         ` Peizhao Hu
2012-06-01 14:10           ` Adrian Chadd
2012-06-01  8:57         ` Alex Hacker
2013-05-08 16:15           ` Claudio
2013-05-08 17:50             ` Oleksij Rempel [this message]
2013-06-10 15:15               ` Gui Iribarren
2013-07-25 13:43                 ` [ath9k-devel] Realtime plot of " Gui Iribarren
2013-07-25 19:54                   ` Adrian Chadd
2013-07-26 16:18                     ` Gui Iribarren
2013-07-26 18:26                       ` Gui Iribarren
2013-07-26 21:18                         ` Adrian Chadd
2013-07-28  7:29                           ` Gui Iribarren
2013-07-28 17:52                             ` Adrian Chadd
2013-07-30 12:12                   ` Michal Kazior
2013-07-25 20:24                 ` [ath9k-devel] Measurements with " Gabriel Tolón

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=518A905B.1050309@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