diff options
author | Oleksij Rempel <linux@rempel-privat.de> | 2014-03-01 15:16:04 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-03-17 13:13:08 -0400 |
commit | 6a77dd33fcfbfcf48f77fed599a0ce763e65a894 (patch) | |
tree | f497c349eac4a8ac5557b6f988fd9e4b1f3a779f /drivers/net/wireless/ath | |
parent | fa7b52fadbbbec855fb13ccc508128f6d234e08d (diff) |
ath9k: remove unused ath9k_get_next_tbtt
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/beacon.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/drivers/net/wireless/ath/ath9k/beacon.c b/drivers/net/wireless/ath/ath9k/beacon.c index e1887438f8c5..471e0f624e81 100644 --- a/drivers/net/wireless/ath/ath9k/beacon.c +++ b/drivers/net/wireless/ath/ath9k/beacon.c | |||
@@ -447,33 +447,6 @@ static void ath9k_beacon_init(struct ath_softc *sc, u32 nexttbtt, | |||
447 | ath9k_hw_enable_interrupts(ah); | 447 | ath9k_hw_enable_interrupts(ah); |
448 | } | 448 | } |
449 | 449 | ||
450 | /* Calculate the modulo of a 64 bit TSF snapshot with a TU divisor */ | ||
451 | static u32 ath9k_mod_tsf64_tu(u64 tsf, u32 div_tu) | ||
452 | { | ||
453 | u32 tsf_mod, tsf_hi, tsf_lo, mod_hi, mod_lo; | ||
454 | |||
455 | tsf_mod = tsf & (BIT(10) - 1); | ||
456 | tsf_hi = tsf >> 32; | ||
457 | tsf_lo = ((u32) tsf) >> 10; | ||
458 | |||
459 | mod_hi = tsf_hi % div_tu; | ||
460 | mod_lo = ((mod_hi << 22) + tsf_lo) % div_tu; | ||
461 | |||
462 | return (mod_lo << 10) | tsf_mod; | ||
463 | } | ||
464 | |||
465 | static u32 ath9k_get_next_tbtt(struct ath_softc *sc, u64 tsf, | ||
466 | unsigned int interval) | ||
467 | { | ||
468 | struct ath_hw *ah = sc->sc_ah; | ||
469 | unsigned int offset; | ||
470 | |||
471 | tsf += TU_TO_USEC(FUDGE + ah->config.sw_beacon_response_time); | ||
472 | offset = ath9k_mod_tsf64_tu(tsf, interval); | ||
473 | |||
474 | return (u32) tsf + TU_TO_USEC(interval) - offset; | ||
475 | } | ||
476 | |||
477 | /* | 450 | /* |
478 | * For multi-bss ap support beacons are either staggered evenly over N slots or | 451 | * For multi-bss ap support beacons are either staggered evenly over N slots or |
479 | * burst together. For the former arrange for the SWBA to be delivered for each | 452 | * burst together. For the former arrange for the SWBA to be delivered for each |