All of lore.kernel.org
 help / color / mirror / Atom feed
* [ath9k-devel] [AR9280] unable to get noise level
@ 2010-10-13 13:45 mickael.masson at orange-ftgroup.com
       [not found] ` <AANLkTikoGr8+jvrVWucvDS+FxaxKRdKs2x0y7aQ7k9gL@mail.gmail.com>
  0 siblings, 1 reply; 6+ messages in thread
From: mickael.masson at orange-ftgroup.com @ 2010-10-13 13:45 UTC (permalink / raw)
  To: ath9k-devel

We are working on Ubiquity SR71-E mini-PCIe card (based on Atheros AR9280 chipset) and we are unable to get noise level.
We use ath9k driver from compat-wireless-2010-10-05 tarball.

As we can see, noise is always equal to -256:
$ watch -n 0 -d cat /proc/net/wireless
Inter-| sta-|   Quality        |   Discarded packets               | Missed | WE
 face | tus | link level noise |  nwid  crypt   frag  retry   misc | beacon | 22
 wlan1: 0000   47.  -63.  -256        0      0      0      0      0        0
 wlan2: 0000    0     0     0        0      0      0      0      0        0
mon.wlan2: 0000    0     0     0        0      0      0      0      0        0

So we would like to know if there is a way to get this value or if it is not implemented.
In the latter case, how can we estimate signal quality?

Thanks for your help,
Mickael
*********************************
This message and any attachments (the "message") are confidential and intended solely for the addressees. 
Any unauthorised use or dissemination is prohibited.
Messages are susceptible to alteration. 
France Telecom Group shall not be liable for the message if altered, changed or falsified.
If you are not the intended addressee of this message, please cancel it immediately and inform the sender.
********************************

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ath9k-devel] RE :  [AR9280] unable to get noise level
       [not found] ` <AANLkTikoGr8+jvrVWucvDS+FxaxKRdKs2x0y7aQ7k9gL@mail.gmail.com>
@ 2010-10-15 12:35   ` mickael.masson at orange-ftgroup.com
  2010-10-15 14:34     ` Mohammed Shafi
  2010-10-15 16:26     ` Ben Greear
  0 siblings, 2 replies; 6+ messages in thread
From: mickael.masson at orange-ftgroup.com @ 2010-10-15 12:35 UTC (permalink / raw)
  To: ath9k-devel

Hi Mohammed, Hi all,

We tried with the latest compat-wireless tree (as explained in http://wireless.kernel.org/en/users/Download/hacking#Git_trees_you_will_need) and we got same results with the command:
$ cat /proc/net/wireless 
Inter-| sta-|   Quality        |   Discarded packets               | Missed | WE
 face | tus | link level noise |  nwid  crypt   frag  retry   misc | beacon | 22
 wlan1: 0000   30.  -80.  -256        0      0      0     14     18        0
 wlan2: 0000    0     0     0        0      0      0      0      0        0
mon.wlan2: 0000    0     0     0        0      0      0      0      0        0

Noise is always equal to -256.
We knew that API changed when <iw> tool was released (and consequently <wireless-tool> was deprecated) but we thougth that read /proc/net/wireless would still provide reliable information. It seems that we were wrong!

*) with "old" iwconfig tool, we can notice that <Noise level> is also missing:
# iwconfig wlan1
wlan1     IEEE 802.11abgn  ESSID:"..."  
          Mode:Managed  Frequency:2.422 GHz  Access Point: XX:XX:XX:XX:XX:XX
          Bit Rate=39 Mb/s   Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:on
          Link Quality=32/70  Signal level=-78 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:15  Invalid misc:18   Missed beacon:0

*) but with <iw> tool, we get noise information:
# iw dev wlan1 survey dump | grep -A 1 '2422 MHz'
	frequency:	2422 MHz
	noise:		-109 dBm

Regards,
Mickael
________________________________________
De : Mohammed Shafi [shafi.ath9k at gmail.com]
Date d'envoi : jeudi 14 octobre 2010 09:28
? : MASSON Micka?l NRS
Cc : ath9k-devel-request at lists.ath9k.org
Objet : Re: [ath9k-devel] [AR9280] unable to get noise level

Hi Mickael ,

       You can try with the latest wireless-testing tree or compat wireless ...
recently the following commit by Felix seems to update the noise parameter.

regards,
shafi


commit 3430098ae463e31ab16926ac3eb295368a3ca5d9
Author: Felix Fietkau <nbd at openwrt.org<mailto:nbd@openwrt.org>>
Date:   Sun Oct 10 18:21:52 2010 +0200

    ath9k: implement channel utilization stats for survey

static void ath_update_survey_nf(struct ath_softc *sc, int channel)
+{
+       struct ath_hw *ah = sc->sc_ah;
+       struct ath9k_channel *chan = &ah->channels[channel];
+       struct survey_info *survey = &sc->survey[channel];
+
+       if (chan->noisefloor) {
+               survey->filled |= SURVEY_INFO_NOISE_DBM;
+               survey->noise = chan->noisefloor;
+       }
+}




On Wed, Oct 13, 2010 at 7:15 PM, <mickael.masson at orange-ftgroup.com<mailto:mickael.masson@orange-ftgroup.com>> wrote:
We are working on Ubiquity SR71-E mini-PCIe card (based on Atheros AR9280 chipset) and we are unable to get noise level.
We use ath9k driver from compat-wireless-2010-10-05 tarball.

As we can see, noise is always equal to -256:
$ watch -n 0 -d cat /proc/net/wireless
Inter-| sta-|   Quality        |   Discarded packets               | Missed | WE
 face | tus | link level noise |  nwid  crypt   frag  retry   misc | beacon | 22
 wlan1: 0000   47.  -63.  -256        0      0      0      0      0        0
 wlan2: 0000    0     0     0        0      0      0      0      0        0
mon.wlan2: 0000    0     0     0        0      0      0      0      0        0

So we would like to know if there is a way to get this value or if it is not implemented.
In the latter case, how can we estimate signal quality?

Thanks for your help,
Mickael
*********************************
This message and any attachments (the "message") are confidential and intended solely for the addressees.
Any unauthorised use or dissemination is prohibited.
Messages are susceptible to alteration.
France Telecom Group shall not be liable for the message if altered, changed or falsified.
If you are not the intended addressee of this message, please cancel it immediately and inform the sender.
********************************

_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org<mailto:ath9k-devel@lists.ath9k.org>
https://lists.ath9k.org/mailman/listinfo/ath9k-devel


*********************************
This message and any attachments (the "message") are confidential and intended solely for the addressees. 
Any unauthorised use or dissemination is prohibited.
Messages are susceptible to alteration. 
France Telecom Group shall not be liable for the message if altered, changed or falsified.
If you are not the intended addressee of this message, please cancel it immediately and inform the sender.
********************************

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ath9k-devel] RE :  [AR9280] unable to get noise level
  2010-10-15 12:35   ` [ath9k-devel] RE : " mickael.masson at orange-ftgroup.com
@ 2010-10-15 14:34     ` Mohammed Shafi
  2010-10-15 16:26     ` Ben Greear
  1 sibling, 0 replies; 6+ messages in thread
From: Mohammed Shafi @ 2010-10-15 14:34 UTC (permalink / raw)
  To: ath9k-devel

Hi Mickael ,
               Yes thanks , it was already there in the old compat wireless
itself, I never saw it.
regards,
shafi


On Fri, Oct 15, 2010 at 6:05 PM, <mickael.masson@orange-ftgroup.com> wrote:

> Hi Mohammed, Hi all,
>
> We tried with the latest compat-wireless tree (as explained in
> http://wireless.kernel.org/en/users/Download/hacking#Git_trees_you_will_need)
> and we got same results with the command:
> $ cat /proc/net/wireless
> Inter-| sta-|   Quality        |   Discarded packets               | Missed
> | WE
>  face | tus | link level noise |  nwid  crypt   frag  retry   misc | beacon
> | 22
>  wlan1: 0000   30.  -80.  -256        0      0      0     14     18
>  0
>  wlan2: 0000    0     0     0        0      0      0      0      0        0
> mon.wlan2: 0000    0     0     0        0      0      0      0      0
>  0
>
> Noise is always equal to -256.
> We knew that API changed when <iw> tool was released (and consequently
> <wireless-tool> was deprecated) but we thougth that read /proc/net/wireless
> would still provide reliable information. It seems that we were wrong!
>
> *) with "old" iwconfig tool, we can notice that <Noise level> is also
> missing:
> # iwconfig wlan1
> wlan1     IEEE 802.11abgn  ESSID:"..."
>          Mode:Managed  Frequency:2.422 GHz  Access Point: XX:XX:XX:XX:XX:XX
>          Bit Rate=39 Mb/s   Tx-Power=20 dBm
>          Retry  long limit:7   RTS thr:off   Fragment thr:off
>          Encryption key:off
>          Power Management:on
>          Link Quality=32/70  Signal level=-78 dBm
>          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>          Tx excessive retries:15  Invalid misc:18   Missed beacon:0
>
> *) but with <iw> tool, we get noise information:
> # iw dev wlan1 survey dump | grep -A 1 '2422 MHz'
>        frequency:      2422 MHz
>        noise:          -109 dBm
>
> Regards,
> Mickael
> ________________________________________
> De : Mohammed Shafi [shafi.ath9k at gmail.com]
> Date d'envoi : jeudi 14 octobre 2010 09:28
> ? : MASSON Micka?l NRS
> Cc : ath9k-devel-request at lists.ath9k.org
> Objet : Re: [ath9k-devel] [AR9280] unable to get noise level
>
> Hi Mickael ,
>
>       You can try with the latest wireless-testing tree or compat wireless
> ...
> recently the following commit by Felix seems to update the noise parameter.
>
> regards,
> shafi
>
>
> commit 3430098ae463e31ab16926ac3eb295368a3ca5d9
> Author: Felix Fietkau <nbd at openwrt.org<mailto:nbd@openwrt.org>>
> Date:   Sun Oct 10 18:21:52 2010 +0200
>
>    ath9k: implement channel utilization stats for survey
>
> static void ath_update_survey_nf(struct ath_softc *sc, int channel)
> +{
> +       struct ath_hw *ah = sc->sc_ah;
> +       struct ath9k_channel *chan = &ah->channels[channel];
> +       struct survey_info *survey = &sc->survey[channel];
> +
> +       if (chan->noisefloor) {
> +               survey->filled |= SURVEY_INFO_NOISE_DBM;
> +               survey->noise = chan->noisefloor;
> +       }
> +}
>
>
>
>
> On Wed, Oct 13, 2010 at 7:15 PM, <mickael.masson@orange-ftgroup.com
> <mailto:mickael.masson@orange-ftgroup.com>> wrote:
> We are working on Ubiquity SR71-E mini-PCIe card (based on Atheros AR9280
> chipset) and we are unable to get noise level.
> We use ath9k driver from compat-wireless-2010-10-05 tarball.
>
> As we can see, noise is always equal to -256:
> $ watch -n 0 -d cat /proc/net/wireless
> Inter-| sta-|   Quality        |   Discarded packets               | Missed
> | WE
>  face | tus | link level noise |  nwid  crypt   frag  retry   misc | beacon
> | 22
>  wlan1: 0000   47.  -63.  -256        0      0      0      0      0
>  0
>  wlan2: 0000    0     0     0        0      0      0      0      0        0
> mon.wlan2: 0000    0     0     0        0      0      0      0      0
>  0
>
> So we would like to know if there is a way to get this value or if it is
> not implemented.
> In the latter case, how can we estimate signal quality?
>
> Thanks for your help,
> Mickael
> *********************************
> This message and any attachments (the "message") are confidential and
> intended solely for the addressees.
> Any unauthorised use or dissemination is prohibited.
> Messages are susceptible to alteration.
> France Telecom Group shall not be liable for the message if altered,
> changed or falsified.
> If you are not the intended addressee of this message, please cancel it
> immediately and inform the sender.
> ********************************
>
> _______________________________________________
> ath9k-devel mailing list
> ath9k-devel at lists.ath9k.org<mailto:ath9k-devel@lists.ath9k.org>
> https://lists.ath9k.org/mailman/listinfo/ath9k-devel
>
>
> *********************************
> This message and any attachments (the "message") are confidential and
> intended solely for the addressees.
> Any unauthorised use or dissemination is prohibited.
> Messages are susceptible to alteration.
> France Telecom Group shall not be liable for the message if altered,
> changed or falsified.
> If you are not the intended addressee of this message, please cancel it
> immediately and inform the sender.
> ********************************
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20101015/fcabc58b/attachment.htm 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ath9k-devel] RE :  [AR9280] unable to get noise level
  2010-10-15 12:35   ` [ath9k-devel] RE : " mickael.masson at orange-ftgroup.com
  2010-10-15 14:34     ` Mohammed Shafi
@ 2010-10-15 16:26     ` Ben Greear
  2010-10-15 17:58       ` Luis R. Rodriguez
  2010-10-19  8:35       ` [ath9k-devel] RE : " mickael.masson at orange-ftgroup.com
  1 sibling, 2 replies; 6+ messages in thread
From: Ben Greear @ 2010-10-15 16:26 UTC (permalink / raw)
  To: ath9k-devel

On 10/15/2010 05:35 AM, mickael.masson at orange-ftgroup.com wrote:
> Hi Mohammed, Hi all,
>
> We tried with the latest compat-wireless tree (as explained in http://wireless.kernel.org/en/users/Download/hacking#Git_trees_you_will_need) and we got same results with the command:
> $ cat /proc/net/wireless
> Inter-| sta-|   Quality        |   Discarded packets               | Missed | WE
>   face | tus | link level noise |  nwid  crypt   frag  retry   misc | beacon | 22
>   wlan1: 0000   30.  -80.  -256        0      0      0     14     18        0
>   wlan2: 0000    0     0     0        0      0      0      0      0        0
> mon.wlan2: 0000    0     0     0        0      0      0      0      0        0
>
> Noise is always equal to -256.
> We knew that API changed when<iw>  tool was released (and consequently<wireless-tool>  was deprecated) but we thougth that read /proc/net/wireless would still provide reliable information. It seems that we were wrong!

I'm attaching patches to make this work, but the maintainers are not interested in these
patches upstream last I checked, so you'll have to apply them yourself.

The status/flags part of the patch is a real hack (exposes internal flags field with
no translation), but it can show you if the interfaces are scanning or not, etc.

This patch also shows current rate as a new field in /proc/net/wireless.

Please let me know if you have any questions.

Thanks,
Ben


-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-wext-Add-noise-flags-and-rate-to-proc-net-wireless.patch
Url: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20101015/cb330057/attachment-0001.txt 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ath9k-devel] RE :  [AR9280] unable to get noise level
  2010-10-15 16:26     ` Ben Greear
@ 2010-10-15 17:58       ` Luis R. Rodriguez
  2010-10-19  8:35       ` [ath9k-devel] RE : " mickael.masson at orange-ftgroup.com
  1 sibling, 0 replies; 6+ messages in thread
From: Luis R. Rodriguez @ 2010-10-15 17:58 UTC (permalink / raw)
  To: ath9k-devel

On Fri, Oct 15, 2010 at 09:26:00AM -0700, Ben Greear wrote:
> On 10/15/2010 05:35 AM, mickael.masson at orange-ftgroup.com wrote:
> > Hi Mohammed, Hi all,
> >
> > We tried with the latest compat-wireless tree (as explained in http://wireless.kernel.org/en/users/Download/hacking#Git_trees_you_will_need) and we got same results with the command:
> > $ cat /proc/net/wireless
> > Inter-| sta-|   Quality        |   Discarded packets               | Missed | WE
> >   face | tus | link level noise |  nwid  crypt   frag  retry   misc | beacon | 22
> >   wlan1: 0000   30.  -80.  -256        0      0      0     14     18        0
> >   wlan2: 0000    0     0     0        0      0      0      0      0        0
> > mon.wlan2: 0000    0     0     0        0      0      0      0      0        0
> >
> > Noise is always equal to -256.
> > We knew that API changed when<iw>  tool was released (and consequently<wireless-tool>  was deprecated) but we thougth that read /proc/net/wireless would still provide reliable information. It seems that we were wrong!
> 
> I'm attaching patches to make this work, but the maintainers are not interested in these
> patches upstream last I checked, so you'll have to apply them yourself.
> 
> The status/flags part of the patch is a real hack (exposes internal flags field with
> no translation), but it can show you if the interfaces are scanning or not, etc.
> 
> This patch also shows current rate as a new field in /proc/net/wireless.
> 
> Please let me know if you have any questions.

there is no interest in furthering wireless extensions,
the focus should developing new stuff only for nl80211,
users and distributions should be using nl80211 now that
wext is completely replacable.

  Luis

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ath9k-devel] RE :  RE :  [AR9280] unable to get noise level
  2010-10-15 16:26     ` Ben Greear
  2010-10-15 17:58       ` Luis R. Rodriguez
@ 2010-10-19  8:35       ` mickael.masson at orange-ftgroup.com
  1 sibling, 0 replies; 6+ messages in thread
From: mickael.masson at orange-ftgroup.com @ 2010-10-19  8:35 UTC (permalink / raw)
  To: ath9k-devel

Thanks for your patch,

Regards,
Mickael
________________________________________
De : Ben Greear [greearb at candelatech.com]
Date d'envoi : vendredi 15 octobre 2010 18:26
? : MASSON Micka?l NRS
Cc : Mohammed Shafi; ath9k-devel at lists.ath9k.org; ath9k-devel-request at lists.ath9k.org
Objet : Re: [ath9k-devel] RE :  [AR9280] unable to get noise level

On 10/15/2010 05:35 AM, mickael.masson at orange-ftgroup.com wrote:
> Hi Mohammed, Hi all,
>
> We tried with the latest compat-wireless tree (as explained in http://wireless.kernel.org/en/users/Download/hacking#Git_trees_you_will_need) and we got same results with the command:
> $ cat /proc/net/wireless
> Inter-| sta-|   Quality        |   Discarded packets               | Missed | WE
>   face | tus | link level noise |  nwid  crypt   frag  retry   misc | beacon | 22
>   wlan1: 0000   30.  -80.  -256        0      0      0     14     18        0
>   wlan2: 0000    0     0     0        0      0      0      0      0        0
> mon.wlan2: 0000    0     0     0        0      0      0      0      0        0
>
> Noise is always equal to -256.
> We knew that API changed when<iw>  tool was released (and consequently<wireless-tool>  was deprecated) but we thougth that read /proc/net/wireless would still provide reliable information. It seems that we were wrong!

I'm attaching patches to make this work, but the maintainers are not interested in these
patches upstream last I checked, so you'll have to apply them yourself.

The status/flags part of the patch is a real hack (exposes internal flags field with
no translation), but it can show you if the interfaces are scanning or not, etc.

This patch also shows current rate as a new field in /proc/net/wireless.

Please let me know if you have any questions.

Thanks,
Ben


--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


*********************************
This message and any attachments (the "message") are confidential and intended solely for the addressees. 
Any unauthorised use or dissemination is prohibited.
Messages are susceptible to alteration. 
France Telecom Group shall not be liable for the message if altered, changed or falsified.
If you are not the intended addressee of this message, please cancel it immediately and inform the sender.
********************************

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-10-19  8:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-13 13:45 [ath9k-devel] [AR9280] unable to get noise level mickael.masson at orange-ftgroup.com
     [not found] ` <AANLkTikoGr8+jvrVWucvDS+FxaxKRdKs2x0y7aQ7k9gL@mail.gmail.com>
2010-10-15 12:35   ` [ath9k-devel] RE : " mickael.masson at orange-ftgroup.com
2010-10-15 14:34     ` Mohammed Shafi
2010-10-15 16:26     ` Ben Greear
2010-10-15 17:58       ` Luis R. Rodriguez
2010-10-19  8:35       ` [ath9k-devel] RE : " mickael.masson at orange-ftgroup.com

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.