All of lore.kernel.org
 help / color / mirror / Atom feed
From: Flavio Leonel <frleonel@gmail.com>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] Interpreting "link quality" of cards driven by ath9k to estimate usable bandwidth?
Date: Thu, 04 Apr 2013 08:37:49 -0300	[thread overview]
Message-ID: <515D660D.7060604@gmail.com> (raw)
In-Reply-To: <CAOpc7mGRhAZs9CRXDMHb7XPxXh7xntu4G+FGygS2yWm-Hf3GKA@mail.gmail.com>

good that we got to this point.

1 year've been looking for information on how to create a threshold 
signal or a range of signal threshold for ath9k but iwconfig does not 
really work anymore ..

I've been studying the iw command but found no way to disconnect the 
client when it has a signal of -82 eg reading more about the driver if 
he does not take into account the signal level but the data rate that is 
connected to the radio more than the RSSI properly.

if you have anything you can say about the quality of MCS so we can find 
a way please help ..


thanks ..


Em 04-04-2013 05:25, Holger Schurig escreveu:
> Hi, I wouldn't use "iwconfig" and link quality.
>
> "iwconfig" is outdated and virtually unmaintained since years. It uses 
> the deprecated WEXT kernel API, which is just emulation by 
> mac80211-based drivers like ath9k for such antique tools. Linux 
> distributions should really get rid of that stuff.
>
> The basic idea of link quality was nice: do not only account for 
> signal strength, but also for channel noise, packet retries and 
> probably transmission rates. Shape that into a value between 0 and 100 
> that you can present in a GUI to an end-user. Nice. Unfortunately, it 
> was never normed, and every driver (if they implemented it at all) did 
> it differently There's no way to compare that values.
>
> So this concept has been dropped, as far as I know.
>
>
>
> As for "wpa_cli signal_poll", it get output like this:
>
> Selected interface 'wlan0'
> RSSI=-37
> LINKSPEED=1
> NOISE=-93
> FREQUENCY=2462
>
> If you get a fail, then maybe your distribution-provided 
> wpa_supplicant is outdated and/or using the old WEXT interface as 
> well. Find a way to use wpa_supplicant with -Dnl80211, and retry.
>
> Something that should work, even if you can't get wpa_supplicant with 
> -dnl80211 to work, is to use "iw wlan0 link":
>
> SSID: CENSORED
> freq: 2462
> RX: 1353926 bytes (12159 packets)
> TX: 795 bytes (17 packets)
> signal: -36 dBm
> tx bitrate: 1.0 MBit/s
>
> bss flags:short-preamble short-slot-time
> dtim period:0
> beacon int:100
>
>
>
> 2013/4/3 Steffen Dettmer <steffen.dettmer@nomadrail.com 
> <mailto:steffen.dettmer@nomadrail.com>>
>
>     Hi,
>
>     man iwconfig tells, "Link quality... depends totally on the driver
>     and hardware". I would like to know how to interpret the value for
>     WPEA-127N driven by ath9k - ideally to have a base value for
>     estimation of "useable bandwidth" (i.e. how much data could be
>     sent and received per time).
>
>     Is this feasible?
>
>     Is parsing the output of "iwconfig" in intervals a good approach?
>     Which polling interval would be suited?
>     What would be a better way / correct way?
>
>     I tried "wpa_cli -p $path signal_poll", but it returns only "FAIL"
>     (however, commands work). Do I something wrong?
>
>     It would be good to estimate the order of magnitude (if there are
>     2 or 20 MBits) and having a value to compare several links. Surely
>     this is a very complex topic (Google found heaps of papers about),
>     but I'm looking for a starting point for a rough "guess", but
>     hopefully still a bit reasonable.
>
>     Any pointers appreciated!
>
>     Regards
>     Steffen
>
>     Example iwconfig:
>               Bit Rate=48 Mb/s   Tx-Power=17 dBm
>               Retry  long limit:7   RTS thr:off   Fragment thr:off
>               Encryption key:off
>               Power Management:on
>               Link Quality=40/70  Signal level=-70 dBm
>               Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>               Tx excessive retries:0  Invalid misc:17   Missed beacon:0
>
>     _______________________________________________
>     ath9k-devel mailing list
>     ath9k-devel at lists.ath9k.org <mailto:ath9k-devel@lists.ath9k.org>
>     https://lists.ath9k.org/mailman/listinfo/ath9k-devel
>
>
>
>
> _______________________________________________
> ath9k-devel mailing list
> ath9k-devel at lists.ath9k.org
> https://lists.ath9k.org/mailman/listinfo/ath9k-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20130404/aaab7cfe/attachment.htm 

  reply	other threads:[~2013-04-04 11:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-03 10:15 [ath9k-devel] Interpreting "link quality" of cards driven by ath9k to estimate usable bandwidth? Steffen Dettmer
2013-04-04  8:25 ` Holger Schurig
2013-04-04 11:37   ` Flavio Leonel [this message]
2013-04-05 13:29   ` Steffen Dettmer

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=515D660D.7060604@gmail.com \
    --to=frleonel@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.