1. 22 5月, 2008 33 次提交
  2. 15 5月, 2008 7 次提交
    • H
      libertas: remove lbs_get_data_rate() · ef85ad54
      Holger Schurig 提交于
      lbs_get_data_rate() gets called, but no-one uses it's result.
      Signed-off-by: NHolger Schurig <hs4233@mail.mn-solutions.de>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      ef85ad54
    • H
      b43: use the bitrev helpers rather than rolling a private one · 6dcdc19e
      Harvey Harrison 提交于
      The 4-bit reversal flip_4bit is replaced with the bitrev helper
      bitrev8 and a 4-bit shift.  The B43_WARN is moved to the location
      where a register is read from for checking there.  The other caller
      explicitly passes an array index which is guaranteed to be within range
      and so a B43_WARN is not added there.
      Signed-off-by: NHarvey Harrison <harvey.harrison@gmail.com>
      Reviewed-by: NMichael Buesch <mb@bu3sch.de>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      6dcdc19e
    • B
      ath5k: Fix loop variable initializations · d6894b5b
      Bob Copeland 提交于
      In ath5k_tasklet_rx, both status structures 'rxs' and 'rs' are
      initialized at the top of the tasklet, but not within the loop.
      If the loop is executed multiple times in the tasklet then the
      variables may see changes from previous packets.
      
      For TKIP, this results in 'Invalid Michael MIC' errors if two packets
      are processed in the tasklet: rxs.flag gets set to RX_DECRYPTED by
      mac80211 when it decrypts the first encrypted packet.  The subsequent
      packet will have RX_DECRYPTED set upon entry to mac80211, so mac80211
      will not try to decrypt it.
      
      We currently initialize all but two fields in the structures, so fix
      the other two.
      Signed-off-by: NBob Copeland <me@bobcopeland.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      d6894b5b
    • H
      b43: nphy.c remove duplicated include · 7a1d6523
      Huang Weiyi 提交于
      Remove duplicated include <linux/delay.h> in
      drivers/net/wireless/b43/nphy.c
      Signed-off-by: NHuang Weiyi <weiyi.huang@gmail.com>
      Signed-off-by: NMichael Buesch <mb@bu3sch.de>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      7a1d6523
    • B
      mac80211: use hardware flags for signal/noise units · 566bfe5a
      Bruno Randolf 提交于
      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: NBruno Randolf <br1@einfach.org>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      566bfe5a
    • B
      zd1211rw: initial IBSS support · 84e6dc9a
      Bruno Randolf 提交于
      this adds initial IBSS support for the zydas zd1211rw:
      convince driver that it can do IBSS mode. add mac80211 beacon_update callback.
      
      IBSS merge and TSF updates don't work yet, but it makes the driver usable in
      ad-hoc networks.
      Signed-off-by: NBruno Randolf <br1@einfach.org>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      84e6dc9a
    • P
      atmel: use netstats in net_device structure · 736bc924
      Paulius Zaleckas 提交于
      Use net_device_stats from net_device structure instead of local.
      Kill atmel_get_stats function, because by default it is used
      identical internal_stats function from net/core/dev.c
      No need to memset stats to 0, because they are allocated by kzalloc.
      
      P.S. Someone should cleanup init_atmel_card function from unneeded
      initializations to 0/NULL. Out of scope for this patch.
      Signed-off-by: NPaulius Zaleckas <paulius.zaleckas@teltonika.lt>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      736bc924