* [PATCH 0/4] mac80211 and drivers: Improve wireless statistics
@ 2007-04-14 18:11 Larry Finger
2007-04-14 20:00 ` Tomas Winkler
2007-04-19 14:34 ` Jiri Benc
0 siblings, 2 replies; 7+ messages in thread
From: Larry Finger @ 2007-04-14 18:11 UTC (permalink / raw)
To: John Linville; +Cc: Michael Wu, Michael Buesch, bcm43xx-dev, wireless
In wireless statistics reporting, three quantities related to the signal are reported: "qual"
(linear with the signal), "level" (logarithmic), and "noise". In mac80211 and the drivers that use
it, the first two have a mixture of internal names for those quantities. To reduce confusion, this
series of patches make the internal names match the entity that is being kept.
So that any bisection of the source will always result in code that will compile, the patches are
divided as follows:
1/4: The new names are added to the appropriate struct definitions in mac80211.
2/4: The mac80211 routines are modified to use the new names.
3/4: The drivers that use mac80211 are modified.
4/4: The old names are removed from the struct definitions.
These changes assume the prior application of patches "[PATCH] mac80211: remove redundant rssi
information in scan results" by Michael Wu and "[PATCH] mac80211: Report correct wireless
statistics" by Larry Finger.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
---
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/4] mac80211 and drivers: Improve wireless statistics
2007-04-14 18:11 [PATCH 0/4] mac80211 and drivers: Improve wireless statistics Larry Finger
@ 2007-04-14 20:00 ` Tomas Winkler
2007-04-14 21:02 ` Larry Finger
2007-04-19 14:34 ` Jiri Benc
1 sibling, 1 reply; 7+ messages in thread
From: Tomas Winkler @ 2007-04-14 20:00 UTC (permalink / raw)
To: Larry Finger
Cc: John Linville, Michael Wu, Michael Buesch, bcm43xx-dev, wireless
Those are really bad names.
__signal__ is not meaning a value __signal level__ or __signal
strength__ means value
__level__ is too general to describes anything
RSSI on other hand is well defined. Maybe it's too hw/vendor dependent
to use in stack
but at least its names says what it is.
Quality should be a relative number depends on maxim
I don't think this renaming make things clearer
Tomas
On 4/14/07, Larry Finger <Larry.Finger@lwfinger.net> wrote:
> In wireless statistics reporting, three quantities related to the signal are reported: "qual"
> (linear with the signal), "level" (logarithmic), and "noise". In mac80211 and the drivers that use
> it, the first two have a mixture of internal names for those quantities. To reduce confusion, this
> series of patches make the internal names match the entity that is being kept.
>
> So that any bisection of the source will always result in code that will compile, the patches are
> divided as follows:
>
> 1/4: The new names are added to the appropriate struct definitions in mac80211.
> 2/4: The mac80211 routines are modified to use the new names.
> 3/4: The drivers that use mac80211 are modified.
> 4/4: The old names are removed from the struct definitions.
>
> These changes assume the prior application of patches "[PATCH] mac80211: remove redundant rssi
> information in scan results" by Michael Wu and "[PATCH] mac80211: Report correct wireless
> statistics" by Larry Finger.
>
> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
> ---
> -
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/4] mac80211 and drivers: Improve wireless statistics
2007-04-14 20:00 ` Tomas Winkler
@ 2007-04-14 21:02 ` Larry Finger
2007-04-14 21:42 ` Michael Wu
2007-04-14 23:11 ` Tomas Winkler
0 siblings, 2 replies; 7+ messages in thread
From: Larry Finger @ 2007-04-14 21:02 UTC (permalink / raw)
To: Tomas Winkler
Cc: John Linville, Michael Wu, Michael Buesch, bcm43xx-dev, wireless
Tomas Winkler wrote:
> Those are really bad names.
> __signal__ is not meaning a value __signal level__ or __signal
> strength__ means value
> __level__ is too general to describes anything
> RSSI on other hand is well defined. Maybe it's too hw/vendor dependent
> to use in stack
> but at least its names says what it is.
> Quality should be a relative number depends on maxim
> I don't think this renaming make things clearer
> Tomas
Perhaps my names are bad; however, the existing system is broken. With it, passing the rssi value
and the signal strength from bcm43xx-mac80211 results the following output from iwconfig: "Link
Quality=216/146 Signal level=-197 dBm Noise level=-63 dBm". In bcm43xx-softmac, the code in the
driver is identical and results in "Link Quality=90/100 Signal level=-36 dBm Noise level=-69 dBm".
When I proposed a patch to fix mac80211, Michael Wu NACKed it and requested the name changes I
propose here. I don't care what names things get, but it needs to be fixed!
Larry
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/4] mac80211 and drivers: Improve wireless statistics
2007-04-14 21:02 ` Larry Finger
@ 2007-04-14 21:42 ` Michael Wu
2007-04-14 23:11 ` Tomas Winkler
1 sibling, 0 replies; 7+ messages in thread
From: Michael Wu @ 2007-04-14 21:42 UTC (permalink / raw)
To: Larry Finger
Cc: Tomas Winkler, John Linville, Michael Buesch, bcm43xx-dev,
wireless
[-- Attachment #1: Type: text/plain, Size: 695 bytes --]
On Saturday 14 April 2007 17:02, Larry Finger wrote:
> When I proposed a patch to fix mac80211, Michael Wu NACKed it and requested
> the name changes I propose here. I don't care what names things get, but it
> needs to be fixed!
>
If you don't care what names things get, then my patch which swaps signal and
rssi assignment in bcm43xx-mac80211 is fine. If you don't like that, then you
do care.
I think "level" isn't very intuitive for a number that's either RSSI or dBm,
however. I recommended "signal" instead which seems to better suggest a
measure of signal strength/level, at least until we come up with a better
statistics reporting system in cfg80211.
-Michael Wu
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/4] mac80211 and drivers: Improve wireless statistics
2007-04-14 21:02 ` Larry Finger
2007-04-14 21:42 ` Michael Wu
@ 2007-04-14 23:11 ` Tomas Winkler
1 sibling, 0 replies; 7+ messages in thread
From: Tomas Winkler @ 2007-04-14 23:11 UTC (permalink / raw)
To: Larry Finger
Cc: John Linville, Michael Wu, Michael Buesch, bcm43xx-dev, wireless
On 4/15/07, Larry Finger <larry.finger@lwfinger.net> wrote:
> Tomas Winkler wrote:
> > Those are really bad names.
> > __signal__ is not meaning a value __signal level__ or __signal
> > strength__ means value
> > __level__ is too general to describes anything
> > RSSI on other hand is well defined. Maybe it's too hw/vendor dependent
> > to use in stack
> > but at least its names says what it is.
> > Quality should be a relative number depends on maxim
> > I don't think this renaming make things clearer
> > Tomas
>
> Perhaps my names are bad; however, the existing system is broken. With it, passing the rssi value
> and the signal strength from bcm43xx-mac80211 results the following output from iwconfig: "Link
> Quality=216/146 Signal level=-197 dBm Noise level=-63 dBm". In bcm43xx-softmac, the code in the
> driver is identical and results in "Link Quality=90/100 Signal level=-36 dBm Noise level=-69 dBm".
>
> When I proposed a patch to fix mac80211, Michael Wu NACKed it and requested the name changes I
> propose here. I don't care what names things get, but it needs to be fixed!
>
> Larry
>
Yeah, I wasn't much constructive in my critique
So here is my humble suggestion. I suggesting not to kill rssi.
u8 rssi (signal is already in rSsi)
s8 signal_level (always in dBm)
s8 signal_noise
u8 link_qual
rssi should stay rssi and its range is from 0 to 255 i.e. one byte. 0
means no signal
and maximal value should be set by underlying driver.
signal_level is in dBm.
There should not be mixing between signal_level and rssi as it is now in wext.
'man iwconfig'
rssi - Received signal strength (RSSI - how strong the received
signal is). May be arbitrary units or dBm,
The confusion comes from fact that
signal_level (dBm) is usually computed by some magic equation from
RSSI but they are not the same.
In general wext should be interested only in dBm values for 'Signal Level'
Link quality computation should be left to underlying driver as it is
totally hw dependent and may includes different parameters that are
hard to generalize in subsystem level.
It should be equal neither to rssi nor to signal level.
The only reason to keep also rssi is that it's necessary for the
underlying driver and it's easier and to compute with.
As you can see the in the code it self the intention of wext was just that.
/*
* Quality of the link
*/
struct iw_quality
{
__u8 qual; /* link quality (%retries, SNR,
%missed beacons or better...) */
__u8 level; /* signal level (dBm) */
__u8 noise; /* noise level (dBm) */
__u8 updated; /* Flags to know if updated */
};
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/4] mac80211 and drivers: Improve wireless statistics
2007-04-14 18:11 [PATCH 0/4] mac80211 and drivers: Improve wireless statistics Larry Finger
2007-04-14 20:00 ` Tomas Winkler
@ 2007-04-19 14:34 ` Jiri Benc
2007-04-19 15:05 ` Larry Finger
1 sibling, 1 reply; 7+ messages in thread
From: Jiri Benc @ 2007-04-19 14:34 UTC (permalink / raw)
To: Larry Finger
Cc: John Linville, Michael Wu, Michael Buesch, bcm43xx-dev, wireless
On Sat, 14 Apr 2007 13:11:33 -0500, Larry Finger wrote:
> In wireless statistics reporting, three quantities related to the
> signal are reported: "qual" (linear with the signal),
> "level" (logarithmic), and "noise". In mac80211 and the drivers that
> use it, the first two have a mixture of internal names for those
> quantities.
The whole signal reporting in WE looks like a mess to me. It seems that
no renaming could help here, I'm afraid - the names you consider better
others consider worse.
Let's leave it as is, and return to it when converting mac80211 to use
cfg80211. With a bit of luck it would be no issue then :-)
Thanks,
Jiri
--
Jiri Benc
SUSE Labs
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/4] mac80211 and drivers: Improve wireless statistics
2007-04-19 14:34 ` Jiri Benc
@ 2007-04-19 15:05 ` Larry Finger
0 siblings, 0 replies; 7+ messages in thread
From: Larry Finger @ 2007-04-19 15:05 UTC (permalink / raw)
To: Jiri Benc; +Cc: wireless, Michael Wu, bcm43xx-dev, Michael Buesch
Jiri Benc wrote:
>
> The whole signal reporting in WE looks like a mess to me. It seems that
> no renaming could help here, I'm afraid - the names you consider better
> others consider worse.
>
> Let's leave it as is, and return to it when converting mac80211 to use
> cfg80211. With a bit of luck it would be no issue then :-)
I have already decided to leave the whole mess alone. I will patch bcm43xx-mac80211 to conform to
what is currently in mac80211 so that reasonable values are seen by the users.
Larry
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-04-19 15:03 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-14 18:11 [PATCH 0/4] mac80211 and drivers: Improve wireless statistics Larry Finger
2007-04-14 20:00 ` Tomas Winkler
2007-04-14 21:02 ` Larry Finger
2007-04-14 21:42 ` Michael Wu
2007-04-14 23:11 ` Tomas Winkler
2007-04-19 14:34 ` Jiri Benc
2007-04-19 15:05 ` Larry Finger
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).