1. 21 6月, 2012 3 次提交
  2. 24 4月, 2012 2 次提交
    • F
      ath9k_hw: fix and clean up PHY activation delay · 7c5adc8d
      Felix Fietkau 提交于
      The delay calculation is the same for all chips, however some parts of the
      code missed the extra delay factor for half/quarter.
      Clean up the code and move the delay calculation to a common place.
      Signed-off-by: NFelix Fietkau <nbd@openwrt.org>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      7c5adc8d
    • G
      ath9k: add an extra boolean parameter to ath9k_hw_apply_txpower · 64ea57d0
      Gabor Juhos 提交于
      In order to unifying regulatory limit handling
      commit ca2c68cc
      (ath9k_hw: clean up tx power handling) introduced
      a new helper function 'ath9k_hw_apply_txpower',
      and the direct calls of 'ah->eep_ops->set_txpower'
      has been replaced by a call of the helper function.
      
      This caused a change in the behaviour of the
      'ath9k_hw_set_txpowerlimit' function. The purpose
      of that function is to calculate and store the
      rate txpower table and the regulatory limit without
      touching the hardware registers. Before the commit,
      the 'test' parameter of the function was passed to
      the 'ah->eep_ops->set_txpower'. Now the calling of
      the 'set_txpower' function happens indirectly through
      'ath9k_hw_apply_txpower', so the 'test' argument of
      the 'set_txpower' is always 'false'.
      
      This patch restores the original behaviour of
      'ath9k_hw_set_txpowerlimit' by adding a new
      argument to 'ath9k_hw_apply_txpower.'
      Signed-off-by: NGabor Juhos <juhosg@openwrt.org>
      Acked-by: NFelix Fietkau <nbd@openwrt.org>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      64ea57d0
  3. 13 4月, 2012 1 次提交
  4. 10 4月, 2012 1 次提交
    • R
      ath9k_hw: improve ANI processing and rx desensitizing parameters · 54da20d8
      Rajkumar Manoharan 提交于
      This patch improves ANI operations by switching among the immunity
      levels based on PHY errors and beacon rssi which will adjust receiver
      desensitizing parameters. The changes are
      
      * Configure the Weak Signal Detection based on current immunity value.
      * At highest OFDM immunity level poor performance was observed with
        strong interference. By tuning the FIR step and spur immunity levels
        and not changing any weak signal detection thresholds at any level
        helped to improve the performance.
      * ANI took long time to recover back to lower immunity levels on heavy
        data load. As the listen time got reset to zero before reaching to
        the 5x of aniperiod, the immunity level is not lowering back even
        without any interference. This patch fix that.
      
      Cc: Paul Stewart <pstew@google.com>
      Cc: Susinder Gulasekaran <susinder@qca.qualcomm.com>
      Signed-off-by: NSuresh Chandrasekaran <csuresh@qca.qualcomm.com>
      Signed-off-by: NRajkumar Manoharan <rmanohar@qca.qualcomm.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      54da20d8
  5. 16 3月, 2012 3 次提交
  6. 22 2月, 2012 1 次提交
  7. 20 12月, 2011 1 次提交
  8. 12 10月, 2011 1 次提交
    • F
      ath9k_hw: clean up tx power handling · ca2c68cc
      Felix Fietkau 提交于
      The code for handling various restrictions concerning regulatory limits,
      antenna gain, etc. is very convoluted and duplicated across various
      EEPROM parsing implementations, making it hard to review.
      
      This patch partially cleans up the mess by unifying regulatory limit
      handling in one function and simplifying handling of antenna gain.
      It also removes unused transmit power scaling arrays from the EEPROM code,
      which belonged to an unimplemented API that isn't supposed to be in
      the driver anyway.
      Signed-off-by: NFelix Fietkau <nbd@openwrt.org>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      ca2c68cc
  9. 20 9月, 2011 4 次提交
  10. 12 7月, 2011 1 次提交
  11. 20 5月, 2011 1 次提交
  12. 31 3月, 2011 3 次提交
  13. 21 12月, 2010 1 次提交
  14. 08 12月, 2010 2 次提交
  15. 23 11月, 2010 1 次提交
    • J
      ath9k: Use static const · 07b2fa5a
      Joe Perches 提交于
      Using static const generally increases object text and decreases data size.
      It also generally decreases overall object size.
      
         text	   data	    bss	    dec	    hex	filename
        11161	     56	   2136	  13353	   3429	drivers/net/wireless/ath/ath9k/ar9003_paprd.o.new
        11167	     56	   2136	  13359	   342f	drivers/net/wireless/ath/ath9k/ar9003_paprd.o.old
        15428	     56	   3056	  18540	   486c	drivers/net/wireless/ath/ath9k/eeprom_4k.o.old
        15451	     56	   3056	  18563	   4883	drivers/net/wireless/ath/ath9k/eeprom_4k.o.new
        14087	     56	   2560	  16703	   413f	drivers/net/wireless/ath/ath9k/eeprom_9287.o.old
        14036	     56	   2560	  16652	   410c	drivers/net/wireless/ath/ath9k/eeprom_9287.o.new
        10041	     56	   2384	  12481	   30c1	drivers/net/wireless/ath/ath9k/ani.o.new
        10088	     56	   2384	  12528	   30f0	drivers/net/wireless/ath/ath9k/ani.o.old
         9316	   1580	   2304	  13200	   3390	drivers/net/wireless/ath/ath9k/htc_drv_init.o.new
         9316	   1580	   2304	  13200	   3390	drivers/net/wireless/ath/ath9k/htc_drv_init.o.old
        16483	     56	   3432	  19971	   4e03	drivers/net/wireless/ath/ath9k/ar9003_phy.o.new
        16517	     56	   3432	  20005	   4e25	drivers/net/wireless/ath/ath9k/ar9003_phy.o.old
        18221	    104	   2960	  21285	   5325	drivers/net/wireless/ath/ath9k/rc.o.old
        18203	    104	   2960	  21267	   5313	drivers/net/wireless/ath/ath9k/rc.o.new
        19985	     56	   4288	  24329	   5f09	drivers/net/wireless/ath/ath9k/eeprom_def.o.new
        20040	     56	   4288	  24384	   5f40	drivers/net/wireless/ath/ath9k/eeprom_def.o.old
        23997	     56	   4984	  29037	   716d	drivers/net/wireless/ath/ath9k/ar5008_phy.o.old
        23846	     56	   4984	  28886	   70d6	drivers/net/wireless/ath/ath9k/ar5008_phy.o.new
        24285	     56	   3184	  27525	   6b85	drivers/net/wireless/ath/ath9k/ar9003_eeprom.o.old
        24101	     56	   3184	  27341	   6acd	drivers/net/wireless/ath/ath9k/ar9003_eeprom.o.new
         6834	     56	   1032	   7922	   1ef2	drivers/net/wireless/ath/ath9k/ar9002_phy.o.old
         6780	     56	   1032	   7868	   1ebc	drivers/net/wireless/ath/ath9k/ar9002_phy.o.new
        36211	     64	   8624	  44899	   af63	drivers/net/wireless/ath/ath9k/hw.o.new
        36401	     64	   8624	  45089	   b021	drivers/net/wireless/ath/ath9k/hw.o.old
         9281	     56	   1496	  10833	   2a51	drivers/net/wireless/ath/ath9k/ar9003_calib.o.old
         9150	     56	   1496	  10702	   29ce	drivers/net/wireless/ath/ath9k/ar9003_calib.o.new
      
      Use ARRAY_SIZE instead of a magic number.
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      07b2fa5a
  16. 18 11月, 2010 1 次提交
  17. 17 11月, 2010 1 次提交
  18. 16 11月, 2010 2 次提交
  19. 07 10月, 2010 3 次提交
  20. 28 9月, 2010 3 次提交
  21. 27 7月, 2010 1 次提交
  22. 13 7月, 2010 1 次提交
    • F
      ath9k: merge noisefloor load implementations · bbacee13
      Felix Fietkau 提交于
      AR5008+ and AR9003 currently use two separate implementations of the
      ath9k_hw_loadnf function. There are three main differences:
      
       - PHY registers for AR9003 are different
       - AR9003 always uses 3 chains, earlier versions are more selective
       - The AR9003 variant contains a fix for NF load timeouts
      
      This patch merges the two implementations into one, storing the
      register array in the ath_hw struct. The fix for NF load timeouts is
      not just relevant for AR9003, but also important for earlier hardware,
      so it's better to just keep one common implementation.
      Signed-off-by: NFelix Fietkau <nbd@openwrt.org>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      bbacee13
  23. 03 7月, 2010 2 次提交