diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2008-08-11 04:35:46 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-29 16:24:01 -0400 |
commit | 98deeea0b3464955ec416c30cbd0c3d21cacfa9a (patch) | |
tree | 3cf039e52965164e6b3b4c74c4a06ac75f8ea808 /drivers/net/wireless/ath9k/xmit.c | |
parent | 7c56d24bc80112daadc7ef54247a5fc8397dbc5c (diff) |
ath9k: Trim struct ath_softc
Add sc_rxflush and sc_noreset as bitfields to sc_flags.
Remove a few variables and function prototypes that are unused.
Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/xmit.c')
-rw-r--r-- | drivers/net/wireless/ath9k/xmit.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/net/wireless/ath9k/xmit.c b/drivers/net/wireless/ath9k/xmit.c index 9ea5d9333305..e2ffa1cdb5e1 100644 --- a/drivers/net/wireless/ath9k/xmit.c +++ b/drivers/net/wireless/ath9k/xmit.c | |||
@@ -485,12 +485,8 @@ static int ath_tx_prepare(struct ath_softc *sc, | |||
485 | if (is_multicast_ether_addr(hdr->addr1)) { | 485 | if (is_multicast_ether_addr(hdr->addr1)) { |
486 | antenna = sc->sc_mcastantenna + 1; | 486 | antenna = sc->sc_mcastantenna + 1; |
487 | sc->sc_mcastantenna = (sc->sc_mcastantenna + 1) & 0x1; | 487 | sc->sc_mcastantenna = (sc->sc_mcastantenna + 1) & 0x1; |
488 | } else | 488 | } |
489 | antenna = sc->sc_txantenna; | ||
490 | 489 | ||
491 | #ifdef USE_LEGACY_HAL | ||
492 | txctl->antenna = antenna; | ||
493 | #endif | ||
494 | return 0; | 490 | return 0; |
495 | } | 491 | } |
496 | 492 | ||
@@ -743,7 +739,7 @@ static void ath_buf_set_rate(struct ath_softc *sc, struct ath_buf *bf) | |||
743 | int i, flags, rtsctsena = 0, dynamic_mimops = 0; | 739 | int i, flags, rtsctsena = 0, dynamic_mimops = 0; |
744 | u32 ctsduration = 0; | 740 | u32 ctsduration = 0; |
745 | u8 rix = 0, cix, ctsrate = 0; | 741 | u8 rix = 0, cix, ctsrate = 0; |
746 | u32 aggr_limit_with_rts = sc->sc_rtsaggrlimit; | 742 | u32 aggr_limit_with_rts = ah->ah_caps.rts_aggr_limit; |
747 | struct ath_node *an = (struct ath_node *) bf->bf_node; | 743 | struct ath_node *an = (struct ath_node *) bf->bf_node; |
748 | 744 | ||
749 | /* | 745 | /* |