1. 22 11月, 2008 1 次提交
  2. 11 11月, 2008 4 次提交
  3. 07 11月, 2008 2 次提交
    • B
      ath5k: correct handling of rx status fields · c7930339
      Bob Copeland 提交于
      ath5k_rx_status fields rs_antenna and rs_more are u8s, but we
      were setting them with bitwise ANDs of 32-bit values.
      
      As a consequence, jumbo frames would not be discarded as intended.
      Then, because the hw rate value of such frames is zero, and, since
      "ath5k: rates cleanup", we do not fall back to the basic rate, such
      packets would trigger the following WARN_ON:
      
      ------------[ cut here ]------------
      WARNING: at net/mac80211/rx.c:2192 __ieee80211_rx+0x4d/0x57e [mac80211]()
      Modules linked in: ath5k af_packet sha256_generic aes_i586 aes_generic cbc loop i915 drm binfmt_misc acpi_cpufreq fan container nls_utf8 hfsplus dm_crypt dm_mod kvm_intel kvm fuse sbp2 snd_hda_intel snd_pcm_oss snd_pcm snd_mixer_oss snd_seq_dummy snd_seq_oss arc4 joydev hid_apple ecb snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device usbhid appletouch mac80211 sky2 snd ehci_hcd ohci1394 bitrev crc32 sr_mod cdrom rtc sg uhci_hcd snd_page_alloc cfg80211 ieee1394 thermal ac battery processor button evdev unix [last unloaded: ath5k]
      Pid: 0, comm: swapper Tainted: G        W  2.6.28-rc2-wl #14
      Call Trace:
       [<c0123d1e>] warn_on_slowpath+0x41/0x5b
       [<c012005d>] ? sched_debug_show+0x31e/0x9c6
       [<c012489f>] ? vprintk+0x369/0x389
       [<c0309539>] ? _spin_unlock_irqrestore+0x54/0x58
       [<c011cd8f>] ? try_to_wake_up+0x14f/0x15a
       [<f81918cb>] __ieee80211_rx+0x4d/0x57e [mac80211]
       [<f828872a>] ath5k_tasklet_rx+0x5a1/0x5e4 [ath5k]
       [<c013b9cd>] ? clockevents_program_event+0xd4/0xe3
       [<c01283a9>] tasklet_action+0x94/0xfd
       [<c0127d19>] __do_softirq+0x8c/0x13e
       [<c0127e04>] do_softirq+0x39/0x55
       [<c0128082>] irq_exit+0x46/0x85
       [<c010576c>] do_IRQ+0x9a/0xb2
       [<c010461c>] common_interrupt+0x28/0x30
       [<f80e934a>] ? acpi_idle_enter_bm+0x2ad/0x31b [processor]
       [<c02976bf>] cpuidle_idle_call+0x65/0x9a
       [<c010262c>] cpu_idle+0x76/0xa6
       [<c02fb402>] rest_init+0x62/0x64
      Signed-off-by: NBob Copeland <me@bobcopeland.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      c7930339
    • J
      Revert "ath5k: honor FIF_BCN_PRBRESP_PROMISC in STA mode" · 934f6c3f
      John W. Linville 提交于
      Unfortunately, the result was that mac80211 didn't see all the beacons
      it actually wanted to see.  This caused lost associations.
      
      Hopefully we can revisit this when mac80211 is less greedy about seeing
      beacons directly...
      
      This reverts commit 06327906.
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      934f6c3f
  4. 01 11月, 2008 7 次提交
  5. 30 10月, 2008 3 次提交
  6. 28 10月, 2008 1 次提交
  7. 23 10月, 2008 1 次提交
  8. 07 10月, 2008 2 次提交
  9. 01 10月, 2008 6 次提交
  10. 25 9月, 2008 1 次提交
  11. 16 9月, 2008 1 次提交
  12. 06 9月, 2008 2 次提交
    • L
      cfg80211: keep track of supported interface modes · f59ac048
      Luis R. Rodriguez 提交于
      It is obviously good for userspace to know up front which
      interface modes a given piece of hardware might support (even
      if adding such an interface might fail later because of
      concurrency issues), so let's make cfg80211 aware of that.
      For good measure, disallow adding interfaces in all other
      modes so drivers don't forget to announce support for one mode
      when they add it.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NStephen Blackheath <tramp.enshrine.stephen@blacksapphire.com>
      Signed-off-by: NIvo van Doorn <IvDoorn@gmail.com>
      Signed-off-by: NLuis R. Rodriguez <lrodriguez@atheros.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      f59ac048
    • N
      ath5k: HW code cleanup · c6e387a2
      Nick Kossifidis 提交于
       * No code changes...
      
       * Split hw.c to multiple files for better maintenance and add some documentation on each file
         code is going to grow soon (eeprom.c for example is going to get much stuff currently developed
         on ath_info) so it's better this way.
      
       * Rename following functions to maintain naming scheme:
      
           ah_setup_xtx_desc -> ah_setup_mrr_tx_desc
           (Because xtx doesn't say much, it's actually
           a multi-rate-retry tx descriptor)
      
           ath5k_hw_put_tx/rx_buf - > ath5k_hw_set_tx/rxdp
           ath5k_hw_get_tx/rx_buf -> ath5k_hw_get_tx/rxdp
           (We don't put any "buf" we set descriptor pointers on hw)
      
           ath5k_hw_tx_start -> ath5k_hw_start_tx_dma
           ath5k_hw_start_rx -> ath5k_hw_start_rx_dma
           ath5k_hw_stop_pcu_recv -> ath5k_hw_stop_rx_pcu
           (It's easier this way to identify them, we also
           have ath5k_hw_start_rx_pcu which completes the
           set)
      
           ath5k_hw_set_intr -> ath5k_hw_set_imr
           (As in get_isr we set imr here, not "intr")
      
        * Move ath5k_hw_setup_rx_desc on ah->ah_setup_rx_desc so we can
          include support for different rx descriptors in the future
      
        * Further cleanups so that checkpatch doesn't complain
          (only some > 80 col warnings for eeprom.h and reg.h as usual
          due to comments)
      
        Tested on 5211 and 5213 cards and works ok.
      
      Changes-licensed-under: ISC
      Signed-off-by: NNick Kossifidis <mickflemm@gmail.com>
      Acked-by: NLuis R. Rodriguez <lrodriguez@atheros.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      c6e387a2
  13. 27 8月, 2008 2 次提交
  14. 23 8月, 2008 5 次提交
    • B
      ath5k: set short preamble flag for rx · 06303352
      Bruno Randolf 提交于
      set the short preamble flag in ieee80211_rx_status for frames received with a
      short preamble.
      
      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>
      06303352
    • H
      ath5k: explicitly check skb->len · 798ee985
      Harvey Harrison 提交于
      ieee80211_get_hdrlen_from_skb internally checks that the skb is long
      enough to hold the full header, or it returns 0 if not.  The check in
      ath5k does not check this case and assumes it always got the actual
      header length which it then checks against the skb->len plus some headroom.
      
      Change to ieee80211_hdrlen which always returns the hdrlen and keep the
      existing headroom check.
      Signed-off-by: NHarvey Harrison <harvey.harrison@gmail.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      798ee985
    • B
      ath5k: rates cleanup · 63266a65
      Bruno Randolf 提交于
      cleanup the rates structures used by ath5k. instead of separate driver and
      mac80211 rate structures we now setup a static ieee80211_rate array and use it
      directly. no conversion between two different rate structures has to be done
      any more. a lot of unused and confusing junk was deleted.
      
      renamed ath5k_getchannels into ath5k_setup_bands because this is what it does.
      rewrote it to copy the bitrates correctly for each band. this is necessary for
      running different hardware with the same driver (e.g. 5211 and 5212 based
      cards).
      
      add special handling of rates for AR5211 chipsets: it uses different rate codes
      for CCK rates (which are actually like the other chips but with a 0xF mask).
      
      setup a hardware code to rate index reverse mapping table for getting the rate
      index of received frames.
      
      the rates for control frames which have to be set in
      ath5k_hw_write_rate_duration are now in one single array.
      
      drivers/net/wireless/ath5k/ath5k.h:     Changes-licensed-under: ISC
      drivers/net/wireless/ath5k/base.c:      Changes-licensed-under: 3-Clause-BSD
      drivers/net/wireless/ath5k/base.h:      Changes-licensed-under: 3-Clause-BSD
      drivers/net/wireless/ath5k/hw.c:        Changes-licensed-under: ISC
      Signed-off-by: NBruno Randolf <br1@einfach.org>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      63266a65
    • J
      Ath5k: unify resets · d7dc1003
      Jiri Slaby 提交于
      There were 3 code copy and pastes of reset. Unify the resets and place
      in separate function.
      Signed-off-by: NJiri Slaby <jirislaby@gmail.com>
      Cc: Nick Kossifidis <mickflemm@gmail.com>
      Cc: Luis R. Rodriguez <mcgrof@gmail.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      d7dc1003
    • A
      ath5k: add Mesh Point support · 8e5f3d0a
      Andrey Yurovsky 提交于
      This enables draft-802.11s Mesh Point operation.  For that we need mesh
      beaconing.  Tested with AR5212/AR5213 PCI card against Zydas and b43 mesh
      nodes.
      Signed-off-by: NAndrey Yurovsky <andrey@cozybit.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      8e5f3d0a
  15. 18 8月, 2008 2 次提交