~ubuntu-branches/ubuntu/jaunty/linux-backports-modules-2.6.28/jaunty-proposed

« back to all changes in this revision

Viewing changes to updates/compat-wireless-2.6/drivers/net/wireless/ath5k/pcu.c

  • Committer: Bazaar Package Importer
  • Author(s): Tim Gardner, Tim Gardner
  • Date: 2009-02-09 17:48:22 UTC
  • Revision ID: james.westby@ubuntu.com-20090209174822-6chmiumgtavrmzgv
Tags: 2.6.28-7.5
[Tim Gardner]

* Update to master-2009-02-09
* Convert 'git-log' to 'git log'

Show diffs side-by-side

added added

removed removed

Lines of Context:
646
646
}
647
647
 
648
648
/**
 
649
 * ath5k_hw_set_tsf64 - Set a new 64bit TSF
 
650
 *
 
651
 * @ah: The &struct ath5k_hw
 
652
 * @tsf64: The new 64bit TSF
 
653
 *
 
654
 * Sets the new TSF
 
655
 */
 
656
void ath5k_hw_set_tsf64(struct ath5k_hw *ah, u64 tsf64)
 
657
{
 
658
        ATH5K_TRACE(ah->ah_sc);
 
659
 
 
660
        ath5k_hw_reg_write(ah, 0x00000000, AR5K_TSF_L32);
 
661
        ath5k_hw_reg_write(ah, (tsf64 >> 32) & 0xffffffff, AR5K_TSF_U32);
 
662
        ath5k_hw_reg_write(ah, tsf64 & 0xffffffff, AR5K_TSF_L32);
 
663
}
 
664
 
 
665
/**
649
666
 * ath5k_hw_reset_tsf - Force a TSF reset
650
667
 *
651
668
 * @ah: The &struct ath5k_hw
1044
1061
        __le32 key_v[5] = {};
1045
1062
        __le32 key0 = 0, key1 = 0;
1046
1063
        __le32 *rxmic, *txmic;
1047
 
        u32 keytype;
 
1064
        int keytype;
1048
1065
        u16 micentry = entry + AR5K_KEYTABLE_MIC_OFFSET;
1049
1066
        bool is_tkip;
1050
1067
        const u8 *key_ptr;