1. 11 11月, 2008 1 次提交
    • N
      ath5k: Update PCU code · f07a6c49
      Nick Kossifidis 提交于
      * In set_opmode don't handle antenna settings and preserve other STA_ID1 settings
      (shouldn't matter because we call it during reset but it makes things cleaner)
      Also set properly AP/ADHOC indicator flag on CFG while setting AP/ADHOC modes
      and always enable key search mode.
      
      * Properly set BSSID Mask during reset (cache it and reuse it durring set_associd)
      
      * Update beacon_init to flush pending BMISS interrupts and handle setting of adhoc
      beacon ATIM policy flag for ad-hoc mode. Also set TSF to 0 to start TSF increment
      on AP mode. We need to handle sleep timers for AR5212 there + add support for PCF.
      
      * Properly clean MIC key from keytable when TKIP is used (Bob is working on set_key
      function etc so i leave it for now).
      
      Tested on AR5212 (Hainan) and AR5413 and works fine
      
      v2 Set PISR on AR5211+ and ISR on AR5210, got to sleep more ;-)
      
      Changes-Licensed-under: ISC
      Signed-Off-by: NNick Kossifidis <mickflemm@gmail.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      f07a6c49
  2. 01 10月, 2008 1 次提交
  3. 16 9月, 2008 1 次提交
  4. 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