1. 20 8月, 2009 1 次提交
  2. 14 8月, 2009 2 次提交
    • N
      ath5k: Use SWI to trigger calibration · 6e220662
      Nick Kossifidis 提交于
      * Get rid of calibration timer, instead use a software interrupt
        to schedule the calibration tasklet.
      
       a) We don't need a timer for this, there is no need for accuracy
         even with round_jiffies i think this is a waste of resources.
         Also we don't need to run calibration if we are idle (no
         interrupts).
      
       b) When we add ANI support we 'll just extend the poll function
         and calibration tasklet and handle all periodic phy calibration
         on one place (much cleaner).
      
       c) Having calibration on a tasklet is better since during calibration
         we can't transmit or receive (antennas are detached to measure
         noise floor), previously calibration could run in parallel with
         tx/rx and interfere (packet loss).
      
       v2: kill tasklet on stop_hw, stop/wake queues
       v3: use time_is_before_eq_jiffies to compare timestamp with current
           time
      Signed-off-by: NNick Kossifidis <mickflemm@gmail.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      6e220662
    • N
      ath5k: Linear PCDAC code fixes · d1cb0bda
      Nick Kossifidis 提交于
      * Set correct xpd curve indices for high/low gain curves during
         rfbuffer setup on RF5112B with both calibration curves available.
      
       * Don't return zero min power when we have the same pcdac value
         twice because it breaks interpolation. Instead return the right
         x barrier as we do when we have equal power levels for 2 different
         pcdac values.
      Signed-off-by: NNick Kossifidis <mickflemm@gmail.com>
      Acked-by: NBob Copeland <me@bobcopeland.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      d1cb0bda
  3. 11 7月, 2009 1 次提交
  4. 21 5月, 2009 1 次提交
  5. 07 5月, 2009 4 次提交
  6. 23 4月, 2009 2 次提交
  7. 28 3月, 2009 1 次提交
  8. 14 2月, 2009 3 次提交
    • N
      ath5k: Update RF Buffer handling · 8892e4ec
      Nick Kossifidis 提交于
       * Use the new way to modify rf buffer and put some rf buffer
         documentation on rfbufer.h
      
       * Merge all rf regs functions to one
      
       * Sync with legacy HAL and Sam's HAL
      
       * Set gain_F settings so that gain_F optimization engine works
         on RF5111/RF5112 (note that both HALs only use step 0 for RF5111
         and they don't use gain_F optimization for this chip, code is
         there but is never used)
      Signed-off-by: NNick Kossifidis <mickflemm@gmail.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      8892e4ec
    • N
      ath5k: Update gain_F calibration code and add documentation · 6f3b414a
      Nick Kossifidis 提交于
       * Update and cleanup rf gain optimization code
      
       * Add comments and refferences to docs and use sane function names
      
       * Use only step index on ath5k_gain, no need to have a pointer to
         the current step since we can determine te step from it's index,
         this also allows us to put all other structs on rfgain.h and cleanup
         ath5k.h a little
      
       * No need for ah_rfgain variable, we use ah_gain.g_state for everything
      
       * Tested on RF2112B chip but gain_F calibration is not yet done
         (we will finish this on the next patch where we'll rewrite rf-buffer
         handling)
      
       * Use initial rf gain settings for 2316 and 2317 SoCs introduced on a previous patch
      
       It seems big but it's mostly cleanup, very few functional changes have been made on phy.c
      Signed-off-by: NNick Kossifidis <mickflemm@gmail.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      6f3b414a
    • N
      ath5k: PHY code cleanup · 33a31826
      Nick Kossifidis 提交于
       * Clean up initial rf buffer settings (new file rfbufer.h) and introduce a
         new way to access specific rf registers (will use it later)
      
       * Clean up initial rf gain settings by moving them on a new file (rfgain.h)
         so we can later work on gain optimization functions
      
       * Update initial rf buffer settings and initial rf gain settings from HALs.
         This breaks things for now because our current dumps come from pre-configured
         rf buffer (regdumps already had the needed values set from binary HAL).
      Signed-off-by: NNick Kossifidis <mickflemm@gmail.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      33a31826
  9. 22 11月, 2008 1 次提交
  10. 01 11月, 2008 1 次提交
  11. 25 9月, 2008 1 次提交
  12. 06 9月, 2008 1 次提交
    • 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. 02 8月, 2008 3 次提交
  14. 17 4月, 2008 1 次提交
  15. 14 3月, 2008 1 次提交
  16. 08 3月, 2008 3 次提交
  17. 01 3月, 2008 3 次提交
  18. 29 1月, 2008 1 次提交