From: Simon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>
To: Adrian Chadd <adrian@freebsd.org>
Cc: Zefir Kurtisi <zefir.kurtisi@neratec.com>,
Simon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>,
linux-wireless <linux-wireless@vger.kernel.org>,
ath9k-devel@lists.ath9k.org, rodrigue@qca.qualcomm.com,
nbd@openwrt.org, jonbither@gmail.com, kgiori@qca.qualcomm.com,
mathias.kretschmer@fokus.fraunhofer.de,
Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Subject: Re: [RFCv2] Add spectral scan support for Atheros AR92xx/AR93xx
Date: Mon, 31 Dec 2012 09:40:27 +0100 [thread overview]
Message-ID: <20121231084027.GA23038@pandem0nium> (raw)
In-Reply-To: <CAJ-Vmom8FRrHB0ts1infzgWuXFJjkpvqkB2LyxdZFsP_Vq=4WA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1653 bytes --]
Hello Adrian,
On Sun, Dec 30, 2012 at 11:48:36PM -0800, Adrian Chadd wrote:
> Hi all,
>
> Simon - I've reviewed your code a bit.
Cool, thanks a lot! Since you are replying to v2, I hope you are
aware that I posted a v3 version[1] already?
[1] http://thread.gmane.org/gmane.linux.kernel.wireless.general/101735
>
> You're not (yet) shifting the magnitude values over as needed before
> trying to extract the channel power out of it all.
>
> Specifically:
>
> * each bin has a 7 bit value;
> * the bin value is scaled by max_exp;
> * there's a max magnitude value which I don't think you need for
> spectral FFT reports; only radar FFT reports (since in radar FFT
> reports, the reported FFT bins are between 0..7/8ths of the maximum
> magnitude value)
>
> You're not scaling the data by max_exp in your FFT dump program, so
> the values aren't entirely correct.
> Are you doing it in the kernel code?
In the latest patchset I'm doing scaling already in the kernel driver.
I haven't done this in the v2 patchset yet, something for scaling
was included in the then-corresponding FFT dump program. As I'm using
the new format now with the pre-processed and scaled dumps from the
kernel, this code has been removed in my FFT dump program. :)
>
> I've just finished my first pass at this and plotting whatever values
> I get from the spectral data frames. I'll post more updates as I
> find/fix more bugs.
Cool! What kind of tool do you use for plotting? Maybe we can use
something (my simple program, yours, whatever) for both Linux and
FreeBSD?
Thanks as always for the feedback!
Cheers,
Simon
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
prev parent reply other threads:[~2012-12-31 8:40 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-06 16:36 [RFCv2] Add spectral scan support for Atheros AR92xx/AR93xx Simon Wunderlich
2012-12-06 16:36 ` [RFCv2] ath9k: add spectral scan feature Simon Wunderlich
2012-12-13 14:07 ` [RFCv2] Add spectral scan support for Atheros AR92xx/AR93xx Simon Wunderlich
2012-12-13 17:25 ` Felix Fietkau
2012-12-13 22:06 ` Simon Wunderlich
2012-12-13 23:04 ` Felix Fietkau
2012-12-14 0:24 ` Tobias Steinicke
2012-12-14 0:30 ` Adrian Chadd
2012-12-16 3:48 ` Adrian Chadd
2012-12-16 4:06 ` Adrian Chadd
2012-12-17 13:22 ` Simon Wunderlich
2012-12-17 18:48 ` Adrian Chadd
2012-12-18 11:08 ` Zefir Kurtisi
2012-12-18 13:46 ` Simon Wunderlich
2012-12-18 16:02 ` Zefir Kurtisi
2012-12-28 3:11 ` Adrian Chadd
2012-12-31 5:33 ` Adrian Chadd
2012-12-31 8:46 ` Simon Wunderlich
2012-12-31 14:38 ` Adrian Chadd
2012-12-31 7:48 ` Adrian Chadd
2012-12-31 8:40 ` Simon Wunderlich [this message]
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=20121231084027.GA23038@pandem0nium \
--to=simon.wunderlich@s2003.tu-chemnitz.de \
--cc=adrian@freebsd.org \
--cc=ath9k-devel@lists.ath9k.org \
--cc=jonbither@gmail.com \
--cc=kgiori@qca.qualcomm.com \
--cc=linux-wireless@vger.kernel.org \
--cc=mathias.kretschmer@fokus.fraunhofer.de \
--cc=nbd@openwrt.org \
--cc=rodrigue@qca.qualcomm.com \
--cc=siwu@hrz.tu-chemnitz.de \
--cc=zefir.kurtisi@neratec.com \
/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;
as well as URLs for NNTP newsgroup(s).