1. 11 4月, 2013 1 次提交
  2. 07 3月, 2013 1 次提交
    • B
      ath9k: simplify ATH_EP_RND · 4ba910db
      Bob Copeland 提交于
      Remove the embedded branch to make the ATH_EP_RND macro a little
      clearer.  The new version also generates better code, saving 24
      bytes of text:
      
         text	   data	    bss	    dec	    hex	filename
        87858	   1641	     24	  89523	  15db3	ath9k_orig.ko
        87834	   1641	     24	  89499	  15d9b	ath9k_new.ko
      
      Although neither version handles negative values particularly well,
      the lone caller clamps all negative values to zero anyway.  I have
      verified that the results are the same for the range of possible
      positive rssi values.
      Signed-off-by: NBob Copeland <me@bobcopeland.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      4ba910db
  3. 28 2月, 2013 1 次提交
  4. 01 12月, 2012 1 次提交
  5. 22 11月, 2012 1 次提交
  6. 25 8月, 2011 1 次提交
  7. 20 5月, 2011 1 次提交
  8. 29 4月, 2011 1 次提交
  9. 04 2月, 2011 1 次提交
  10. 29 1月, 2011 1 次提交
  11. 08 12月, 2010 1 次提交
  12. 16 11月, 2010 2 次提交
    • F
      ath9k: rework tx queue selection and fix queue stopping/waking · 066dae93
      Felix Fietkau 提交于
      The current ath9k tx queue handling code showed a few issues that could
      lead to locking issues, tx stalls due to stopped queues, and maybe even
      DMA issues.
      
      The main source of these issues is that in some places the queue is
      selected via skb queue mapping in places where this mapping may no
      longer be valid. One such place is when data frames are transmitted via
      the CAB queue (for powersave buffered frames). This is made even worse
      by a lookup WMM AC values from the assigned tx queue (which is
      undefined for the CAB queue).
      
      This messed up the pending frame counting, which in turn caused issues
      with queues getting stopped, but not woken again.
      
      To fix these issues, this patch removes an unnecessary abstraction
      separating a driver internal queue number from the skb queue number
      (not to be confused with the hardware queue number).
      
      It seems that this abstraction may have been necessary because of tx
      queue preinitialization from the initvals. This patch avoids breakage
      here by pushing the software <-> hardware queue mapping to the function
      that assigns the tx queues and redefining the WMM AC definitions to
      match the numbers used by mac80211 (also affects ath9k_htc).
      
      To ensure consistency wrt. pending frame count tracking, these counters
      are moved to the ath_txq struct, updated with the txq lock held, but
      only where the tx queue selected by the skb queue map actually matches
      the tx queue used by the driver for the frame.
      Signed-off-by: NFelix Fietkau <nbd@openwrt.org>
      Reported-by: NBjörn Smedman <bjorn.smedman@venatech.se>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      066dae93
    • F
  13. 17 9月, 2010 1 次提交
  14. 25 8月, 2010 1 次提交
  15. 05 6月, 2010 1 次提交
  16. 03 6月, 2010 2 次提交
  17. 17 4月, 2010 3 次提交
  18. 01 4月, 2010 1 次提交
  19. 24 3月, 2010 1 次提交
  20. 29 11月, 2009 2 次提交
  21. 19 11月, 2009 1 次提交
  22. 12 11月, 2009 1 次提交
    • L
      ath9k_common: add new module to share 802.11n driver helpers · db86f07e
      Luis R. Rodriguez 提交于
      ath9k and ath9k_htc share a lot of common hardware characteristics.
      They only differ in that ath9k_htc works with a target CPU and ath9k
      works directly with the hardware. ath9k_htc will do *some* things in
      the firmware, but a lot of others on the host.
      
      The common 802.11n hardware code is already shared through the ath9k_hw
      module. Common helpers amongst all Atheros drivers can use the ath module,
      this includes ath5k and ar9170 as users. But there is some common driver
      specific helpers which are not exactly hardware code which ath9k and
      ath9k_htc can share. We'll be using ath9k_common for this to avoid
      bloating the ath module and the common 802.11n hardware module ath9k_hw.
      
      We start by sharing skb pre and post processing in preparation for a hand
      off to mac80211.
      Signed-off-by: NLuis R. Rodriguez <lrodriguez@atheros.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      db86f07e