hw.c (03c725183bfa1328995f28e0d0e9c49e1e6ae730) hw.c (a6d2055b02dde1067075795274672720baadd3ca)
1/*
2 * Copyright (c) 2008-2010 Atheros Communications Inc.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

--- 2602 unchanged lines hidden (view full) ---

2611{
2612 if (setting)
2613 ah->misc_mode |= AR_PCU_TX_ADD_TSF;
2614 else
2615 ah->misc_mode &= ~AR_PCU_TX_ADD_TSF;
2616}
2617EXPORT_SYMBOL(ath9k_hw_set_tsfadjust);
2618
1/*
2 * Copyright (c) 2008-2010 Atheros Communications Inc.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

--- 2602 unchanged lines hidden (view full) ---

2611{
2612 if (setting)
2613 ah->misc_mode |= AR_PCU_TX_ADD_TSF;
2614 else
2615 ah->misc_mode &= ~AR_PCU_TX_ADD_TSF;
2616}
2617EXPORT_SYMBOL(ath9k_hw_set_tsfadjust);
2618
2619/*
2620 * Extend 15-bit time stamp from rx descriptor to
2621 * a full 64-bit TSF using the current h/w TSF.
2622*/
2623u64 ath9k_hw_extend_tsf(struct ath_hw *ah, u32 rstamp)
2624{
2625 u64 tsf;
2626
2627 tsf = ath9k_hw_gettsf64(ah);
2628 if ((tsf & 0x7fff) < rstamp)
2629 tsf -= 0x8000;
2630 return (tsf & ~0x7fff) | rstamp;
2631}
2632EXPORT_SYMBOL(ath9k_hw_extend_tsf);
2633
2634void ath9k_hw_set11nmac2040(struct ath_hw *ah)
2635{
2636 struct ieee80211_conf *conf = &ath9k_hw_common(ah)->hw->conf;
2637 u32 macmode;
2638
2639 if (conf_is_ht40(conf) && !ah->config.cwm_ignore_extcca)
2640 macmode = AR_2040_JOINED_RX_CLEAR;
2641 else

--- 293 unchanged lines hidden ---
2619void ath9k_hw_set11nmac2040(struct ath_hw *ah)
2620{
2621 struct ieee80211_conf *conf = &ath9k_hw_common(ah)->hw->conf;
2622 u32 macmode;
2623
2624 if (conf_is_ht40(conf) && !ah->config.cwm_ignore_extcca)
2625 macmode = AR_2040_JOINED_RX_CLEAR;
2626 else

--- 293 unchanged lines hidden ---