aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2008-11-17 22:36:18 -0500
committerJohn W. Linville <linville@tuxdriver.com>2008-11-26 09:47:26 -0500
commitffd651c620a2f27502ee5d4517a122c072f13073 (patch)
treedf77572730e67b3daa2de3547b5b39847f20cc1d
parentbe0418ada3fad110977a9d5fa16d4907d4e7d726 (diff)
ath9k: We don't support non-HT devices, so remove superfluous code.
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/ath9k/xmit.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/drivers/net/wireless/ath9k/xmit.c b/drivers/net/wireless/ath9k/xmit.c
index 8937728b0301..44735b6d9f04 100644
--- a/drivers/net/wireless/ath9k/xmit.c
+++ b/drivers/net/wireless/ath9k/xmit.c
@@ -14,10 +14,6 @@
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 */ 15 */
16 16
17/*
18 * Implementation of transmit path.
19 */
20
21#include "core.h" 17#include "core.h"
22 18
23#define BITS_PER_BYTE 8 19#define BITS_PER_BYTE 8
@@ -699,41 +695,6 @@ static void ath_buf_set_rate(struct ath_softc *sc, struct ath_buf *bf)
699 } 695 }
700 696
701 /* 697 /*
702 * For non-HT devices, calculate RTS/CTS duration in software
703 * and disable multi-rate retry.
704 */
705 if (flags && !(ah->ah_caps.hw_caps & ATH9K_HW_CAP_HT)) {
706 /*
707 * Compute the transmit duration based on the frame
708 * size and the size of an ACK frame. We call into the
709 * HAL to do the computation since it depends on the
710 * characteristics of the actual PHY being used.
711 *
712 * NB: CTS is assumed the same size as an ACK so we can
713 * use the precalculated ACK durations.
714 */
715 if (flags & ATH9K_TXDESC_RTSENA) { /* SIFS + CTS */
716 ctsduration += bf_isshpreamble(bf) ?
717 rt->info[cix].spAckDuration :
718 rt->info[cix].lpAckDuration;
719 }
720
721 ctsduration += series[0].PktDuration;
722
723 if ((bf->bf_flags & ATH9K_TXDESC_NOACK) == 0) { /* SIFS + ACK */
724 ctsduration += bf_isshpreamble(bf) ?
725 rt->info[rix].spAckDuration :
726 rt->info[rix].lpAckDuration;
727 }
728
729 /*
730 * Disable multi-rate retry when using RTS/CTS by clearing
731 * series 1, 2 and 3.
732 */
733 memset(&series[1], 0, sizeof(struct ath9k_11n_rate_series) * 3);
734 }
735
736 /*
737 * set dur_update_en for l-sig computation except for PS-Poll frames 698 * set dur_update_en for l-sig computation except for PS-Poll frames
738 */ 699 */
739 ath9k_hw_set11n_ratescenario(ah, ds, lastds, 700 ath9k_hw_set11n_ratescenario(ah, ds, lastds,