kernel-ark/drivers/net/wireless/rt2x00
Bruno Randolf 566bfe5a8b mac80211: use hardware flags for signal/noise units
trying to clean up the signal/noise code. the previous code in mac80211 had
confusing names for the related variables, did not have much definition of
what units of signal and noise were provided and used implicit mechanisms from
the wireless extensions.

this patch introduces hardware capability flags to let the hardware specify
clearly if it can provide signal and noise level values and which units it can
provide. this also anticipates possible new units like RCPI in the future.

for signal:

  IEEE80211_HW_SIGNAL_UNSPEC - unspecified, unknown, hw specific
  IEEE80211_HW_SIGNAL_DB     - dB difference to unspecified reference point
  IEEE80211_HW_SIGNAL_DBM    - dBm, difference to 1mW

for noise we currently only have dBm:

  IEEE80211_HW_NOISE_DBM     - dBm, difference to 1mW

if IEEE80211_HW_SIGNAL_UNSPEC or IEEE80211_HW_SIGNAL_DB is used the driver has
to provide the maximum value (max_signal) it reports in order for applications
to make sense of the signal values.

i tried my best to find out for each driver what it can provide and update it
but i'm not sure (?) for some of them and used the more conservative guess in
doubt. this can be fixed easily after this patch has been merged by changing
the hardware flags of the driver.

DRIVER          SIGNAL    MAX	NOISE   QUAL
-----------------------------------------------------------------
adm8211         unspec(?) 100   n/a     missing
at76_usb        unspec(?) (?)   unused  missing
ath5k           dBm             dBm     percent rssi
b43legacy       dBm             dBm     percent jssi(?)
b43             dBm             dBm     percent jssi(?)
iwl-3945        dBm             dBm     percent snr+more
iwl-4965        dBm             dBm     percent snr+more
p54             unspec    127   n/a     missing
rt2x00          dBm	        n/a     percent rssi+tx/rx frame success
  rt2400        dBm             n/a
  rt2500pci     dBm             n/a
  rt2500usb     dBm             n/a
  rt61pci       dBm             n/a
  rt73usb       dBm             n/a
rtl8180         unspec(?) 65    n/a     (?)
rtl8187         unspec(?) 65    (?)     noise(?)
zd1211          dB(?)     100   n/a     percent

drivers/net/wireless/ath5k/base.c:      Changes-licensed-under: 3-Clause-BSD

Signed-off-by: Bruno Randolf <br1@einfach.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2008-05-14 16:29:49 -04:00
..
Kconfig rt2x00: Clarify supported chipsets in Kconfig 2008-05-07 15:02:27 -04:00
Makefile rt2x00: Cleanup Makefile 2008-02-29 15:37:21 -05:00
rt2x00.h mac80211: QoS related cleanups 2008-05-07 15:02:26 -04:00
rt2x00config.c rt2x00: Fix in_atomic() usage 2008-03-25 16:42:00 -04:00
rt2x00debug.c rt2x00: Upgrade queue->lock to use irqsave 2008-03-13 16:02:35 -04:00
rt2x00debug.h rt2x00: Update copyright notice 2008-02-29 15:19:22 -05:00
rt2x00dev.c mac80211: use hardware flags for signal/noise units 2008-05-14 16:29:49 -04:00
rt2x00dump.h rt2x00: Queue handling overhaul 2008-02-29 15:19:27 -05:00
rt2x00firmware.c rt2x00: Move firmware checksumming to driver 2008-03-13 16:02:36 -04:00
rt2x00leds.c rt2x00: Fix quality/activity led handling 2008-05-01 17:38:39 -04:00
rt2x00leds.h rt2x00: Remove MAC80211_LEDS dependency 2008-04-01 17:14:09 -04:00
rt2x00lib.h rt2x00: Fix quality/activity led handling 2008-05-01 17:38:39 -04:00
rt2x00mac.c mac80211: QoS related cleanups 2008-05-07 15:02:26 -04:00
rt2x00pci.c rt2x00: Use rt2x00 queue numbering 2008-05-07 15:02:21 -04:00
rt2x00pci.h rt2x00: Fix kernel-doc 2008-05-07 15:02:21 -04:00
rt2x00queue.c rt2x00: Use rt2x00 queue numbering 2008-05-07 15:02:21 -04:00
rt2x00queue.h mac80211: QoS related cleanups 2008-05-07 15:02:26 -04:00
rt2x00reg.h rt2x00: Rate structure overhaul 2008-02-29 15:19:38 -05:00
rt2x00rfkill.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 2008-03-18 00:37:55 -07:00
rt2x00usb.c rt2x00: Add helper macros 2008-05-07 15:02:21 -04:00
rt2x00usb.h rt2x00: Fix kernel-doc 2008-05-07 15:02:21 -04:00
rt61pci.c mac80211: use hardware flags for signal/noise units 2008-05-14 16:29:49 -04:00
rt61pci.h rt2x00: Fix MAC address defines in rt61pci 2008-02-29 15:37:25 -05:00
rt73usb.c mac80211: use hardware flags for signal/noise units 2008-05-14 16:29:49 -04:00
rt73usb.h rt2x00: Rename dscape -> mac80211 2008-02-29 15:37:23 -05:00
rt2400pci.c mac80211: use hardware flags for signal/noise units 2008-05-14 16:29:49 -04:00
rt2400pci.h rt2x00: Fix rt2400pci signal 2008-03-13 19:32:31 -04:00
rt2500pci.c mac80211: use hardware flags for signal/noise units 2008-05-14 16:29:49 -04:00
rt2500pci.h rt2x00: Rename dscape -> mac80211 2008-02-29 15:37:23 -05:00
rt2500usb.c mac80211: use hardware flags for signal/noise units 2008-05-14 16:29:49 -04:00
rt2500usb.h rt2x00: Rename dscape -> mac80211 2008-02-29 15:37:23 -05:00