From: Bob Copeland <me@bobcopeland.com>
To: Georgiewskiy Yuriy <bottleman@icf.org.ru>
Cc: devel@lists.open80211s.org, Sujith Manoharan <sujith@msujith.org>,
ath9k-devel@lists.ath9k.org, linux-wireless@vger.kernel.org
Subject: Re: [ath9k-devel] improve operational ANI in Mesh mode
Date: Wed, 20 Feb 2013 15:25:24 -0500 [thread overview]
Message-ID: <20130220202524.GC21725@localhost> (raw)
In-Reply-To: <alpine.DEB.2.02.1302202351280.2057@icf.org.ru>
On Wed, Feb 20, 2013 at 11:55:14PM +0400, Georgiewskiy Yuriy wrote:
> i think yes, but i dont understand what exactly do this signal processing and why it needed,
> i find the source of this changes - http://www.spinics.net/lists/linux-wireless/msg35905.html,
> but there is no explain too.
Yeah, me neither, but just going on the macros:
> +#define ATH_RSSI_IN(x) (ATH_EP_MUL((x),
> ATH_RSSI_EP_MULTIPLIER))
That takes the value read from the card, and multiplies it by
ATH_RSSI_EP_MULTIPLIER, which is 1<<7. So now it's in fixed-point
with a 6-bit fractional part.
> +#define ATH_LPF_RSSI(x, y, len) \
> + ((x != ATH_RSSI_DUMMY_MARKER) ? (((x) * ((len) - 1) + (y)) / (len))
> : (y))
Low pass filter, aka moving average. So rssi values are first moved into
fixed point range, some averaging is done on the samples, presumably to
reduce the variance, then the result is rounded back into non-fractional
units.
((x + m/2)/m is the fixed point version of int(x + 0.5) if 'm' is the
representation of 1.0 in fixed point.
--
Bob Copeland %% www.bobcopeland.com
next prev parent reply other threads:[~2013-02-20 20:25 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-16 2:43 improve operational ANI in Mesh mode Georgiewskiy Yuriy
2013-02-16 4:08 ` Adrian Chadd
2013-02-16 4:18 ` Georgiewskiy Yuriy
2013-02-19 13:40 ` Simon Wunderlich
2013-02-19 14:04 ` Georgiewskiy Yuriy
2013-02-19 16:31 ` [ath9k-devel] " Adrian Chadd
2013-02-19 16:49 ` Georgiewskiy Yuriy
2013-02-19 17:20 ` Adrian Chadd
2013-02-19 18:29 ` Sujith Manoharan
2013-02-19 18:33 ` Adrian Chadd
2013-02-19 18:38 ` Georgiewskiy Yuriy
2013-02-19 18:44 ` Sujith Manoharan
2013-02-19 19:11 ` Georgiewskiy Yuriy
2013-02-19 19:37 ` Adrian Chadd
2013-02-19 20:31 ` Georgiewskiy Yuriy
2013-02-20 3:30 ` Yeoh Chun-Yeow
2013-02-20 19:31 ` Georgiewskiy Yuriy
2013-02-21 0:37 ` Georgiewskiy Yuriy
2013-02-21 1:08 ` Yeoh Chun-Yeow
2013-02-21 1:23 ` Georgiewskiy Yuriy
2013-02-20 14:24 ` Bob Copeland
2013-02-20 19:55 ` Georgiewskiy Yuriy
2013-02-20 20:25 ` Bob Copeland [this message]
2013-02-20 20:27 ` Bob Copeland
2013-02-20 3:12 ` Sujith Manoharan
2013-02-20 10:31 ` Simon Wunderlich
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=20130220202524.GC21725@localhost \
--to=me@bobcopeland.com \
--cc=ath9k-devel@lists.ath9k.org \
--cc=bottleman@icf.org.ru \
--cc=devel@lists.open80211s.org \
--cc=linux-wireless@vger.kernel.org \
--cc=sujith@msujith.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;
as well as URLs for NNTP newsgroup(s).