kernel-ark/drivers/net/wireless
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
..
ath5k mac80211: use hardware flags for signal/noise units 2008-05-14 16:29:49 -04:00
b43 mac80211: use hardware flags for signal/noise units 2008-05-14 16:29:49 -04:00
b43legacy mac80211: use hardware flags for signal/noise units 2008-05-14 16:29:49 -04:00
hostap [NET]: Undo code bloat in hot paths due to print_mac(). 2008-04-08 16:50:44 -07:00
iwlwifi mac80211: use hardware flags for signal/noise units 2008-05-14 16:29:49 -04:00
libertas libertas: allow removal of card at any time 2008-05-07 15:02:27 -04:00
p54 mac80211: use hardware flags for signal/noise units 2008-05-14 16:29:49 -04:00
prism54 prism54: prism54_get_encode() test below 0 on unsigned index 2008-04-23 21:25:36 -04:00
rt2x00 mac80211: use hardware flags for signal/noise units 2008-05-14 16:29:49 -04:00
zd1211rw mac80211: use hardware flags for signal/noise units 2008-05-14 16:29:49 -04:00
adm8211.c mac80211: use hardware flags for signal/noise units 2008-05-14 16:29:49 -04:00
adm8211.h
airo_cs.c
airo.c airo: use netstats in net_device structure 2008-05-14 16:29:47 -04:00
airo.h
airport.c
arlan-main.c arlan: use netstats in net_device structure 2008-05-14 16:29:48 -04:00
arlan-proc.c
arlan.h arlan: use netstats in net_device structure 2008-05-14 16:29:48 -04:00
atmel_cs.c
atmel_pci.c
atmel.c atmel: use netstats in net_device structure 2008-05-14 16:29:48 -04:00
atmel.h
hermes_rid.h
hermes.c
hermes.h
i82586.h
i82593.h
ipw2100.c
ipw2100.h
ipw2200.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2008-04-14 02:30:23 -07:00
ipw2200.h
Kconfig p54: move to separate directory 2008-04-08 16:44:45 -04:00
Makefile iwlwifi: Allow building iwl3945 without iwl4965. 2008-04-27 15:38:30 -07:00
netwave_cs.c
orinoco_cs.c
orinoco_nortel.c
orinoco_pci.c
orinoco_pci.h
orinoco_plx.c
orinoco_tmd.c
orinoco.c
orinoco.h
ray_cs.c proc: switch /proc/driver/ray_cs/ray_cs to seq_file interface 2008-04-16 15:59:56 -04:00
ray_cs.h
rayctl.h
rndis_wlan.c wireless: rndis_wlan: modparam_workaround_interval is never below 0. 2008-04-23 21:25:36 -04:00
rtl818x.h
rtl8180_dev.c mac80211: use hardware flags for signal/noise units 2008-05-14 16:29:49 -04:00
rtl8180_grf5101.c
rtl8180_grf5101.h
rtl8180_max2820.c
rtl8180_max2820.h
rtl8180_rtl8225.c
rtl8180_rtl8225.h
rtl8180_sa2400.c
rtl8180_sa2400.h
rtl8180.h
rtl8187_dev.c mac80211: use hardware flags for signal/noise units 2008-05-14 16:29:49 -04:00
rtl8187_rtl8225.c
rtl8187_rtl8225.h
rtl8187.h
spectrum_cs.c
strip.c strip: Fix up strip for the new order 2008-04-30 08:29:47 -07:00
wavelan_cs.c wavelan_cs: stop inlining largish static functions 2008-04-08 15:05:57 -04:00
wavelan_cs.h
wavelan_cs.p.h wavelan_cs: stop inlining largish static functions 2008-04-08 15:05:57 -04:00
wavelan.c
wavelan.h
wavelan.p.h
wl3501_cs.c
wl3501.h
zd1201.c
zd1201.h