All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Smith <viscous.liquid@gmail.com>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] Unrealistic RSSI values being reported
Date: Wed, 23 Nov 2011 09:08:17 -0500	[thread overview]
Message-ID: <jaiuoi$tuq$1@dough.gmane.org> (raw)
In-Reply-To: <CAD2nsn2QpF96=6uXQcJdyAf_i0JKs7S3e-k9RiL-mKibcsd-1g@mail.gmail.com>

On 11/23/2011 1:06 AM, Mohammed Shafi wrote:
>
> Hi Daniel,
>
> sorry was busy with some other urgent work. a value upto 127 seems to
> be valid for Atheros chipsets, bad -128
> http://en.wikipedia.org/wiki/Received_signal_strength_indication  :)
> further the negative value should be caught by the check in
> ath9k_process_rssi unless my_beacon is 'false' hope i had not missed something.
>
>          if (rx_stats->rs_rssi<  0)
>                  rx_stats->rs_rssi = 0;
>
> i will test this behavior and do further investigation.
>
>

Hey Shafi,

No worries, I completely understand.

So while 127 is a valid value for the chip, the reality is that it would 
not be (legally) possible. if the noise floor is -90dBm and the RSSI was 
127 then the signal power at the antenna would have been 37dBm. Even if 
the TX antenna was right next to the RX antenna that would still be more 
powerful than what is legally allowed by the FCC. In this case the 
devices creating the offending traffic are Android smartphones (a HTC 
and a Motorola; based off of MAC), which typically have a max tx power 
around 15dBm, which again with a -90dBm noise floor would have a RSSI of 
105 in a zero-loss free space. All those numbers are theoretical so for 
a baseline I set a Nokia N900 right next to the antenna (antenna is ~5' 
away and has a 6' coax whip) the largest signal strength (rssi + noise) 
I saw was -29dBm.

For testing, take a look at the analysis that Adrian and I have been 
pursuing. It seems that the invalid RSSI occur for aggregate frames when 
there are still additional frames left in the aggregate, i.e. rs_isaggr 
and rs_moreaggr are both set.

Thanks for taking some time to help look at this!

Daniel

  reply	other threads:[~2011-11-23 14:08 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-03 19:28 [ath9k-devel] Unrealistic RSSI values being reported Daniel Smith
2011-11-03 23:10 ` Mohammed Shafi
2011-11-04 11:27   ` Daniel Smith
2011-11-04 12:44     ` Mohammed Shafi
2011-11-23  6:06     ` Mohammed Shafi
2011-11-23 14:08       ` Daniel Smith [this message]
2011-11-04 17:50   ` Daniel Smith
2011-11-08 15:04     ` Mohammed Shafi
2011-11-21 17:35       ` Daniel Smith
2011-11-21 20:09         ` Adrian Chadd
2011-11-22 17:42           ` Daniel Smith
2011-11-22 23:05             ` Adrian Chadd
2011-11-23 13:44               ` Daniel Smith
2011-11-23 14:14                 ` Adrian Chadd
2011-11-23 14:24                   ` Felix Fietkau
2011-11-23 15:18                     ` Daniel Smith

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='jaiuoi$tuq$1@dough.gmane.org' \
    --to=viscous.liquid@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.