aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath9k/beacon.c
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2008-08-14 03:58:20 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-08-29 16:24:05 -0400
commit19b73c7f68fb2eeb180eafa70f9859409ec9aa08 (patch)
tree793628c5efb70056e2abca1bac97587e244e8749 /drivers/net/wireless/ath9k/beacon.c
parent60653678939dcbba3aa936250b58179aa3451eee (diff)
ath9k: Add IEEE80211_HW_RX_INCLUDES_FCS to hw flags
Don't trim the FCS before passing the frame to mac80211, move TSF_TO_TU to core.h and delete more unused macros. 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/beacon.c')
-rw-r--r--drivers/net/wireless/ath9k/beacon.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/net/wireless/ath9k/beacon.c b/drivers/net/wireless/ath9k/beacon.c
index 89e5c65accd0..ee1185622ba6 100644
--- a/drivers/net/wireless/ath9k/beacon.c
+++ b/drivers/net/wireless/ath9k/beacon.c
@@ -551,9 +551,6 @@ void ath_beacon_free(struct ath_softc *sc)
551 551
552void ath9k_beacon_tasklet(unsigned long data) 552void ath9k_beacon_tasklet(unsigned long data)
553{ 553{
554#define TSF_TO_TU(_h,_l) \
555 ((((u32)(_h)) << 22) | (((u32)(_l)) >> 10))
556
557 struct ath_softc *sc = (struct ath_softc *)data; 554 struct ath_softc *sc = (struct ath_softc *)data;
558 struct ath_hal *ah = sc->sc_ah; 555 struct ath_hal *ah = sc->sc_ah;
559 struct ath_buf *bf = NULL; 556 struct ath_buf *bf = NULL;
@@ -715,7 +712,6 @@ void ath9k_beacon_tasklet(unsigned long data)
715 712
716 sc->ast_be_xmit += bc; /* XXX per-vap? */ 713 sc->ast_be_xmit += bc; /* XXX per-vap? */
717 } 714 }
718#undef TSF_TO_TU
719} 715}
720 716
721/* 717/*
@@ -751,8 +747,6 @@ void ath_bstuck_process(struct ath_softc *sc)
751 747
752void ath_beacon_config(struct ath_softc *sc, int if_id) 748void ath_beacon_config(struct ath_softc *sc, int if_id)
753{ 749{
754#define TSF_TO_TU(_h,_l) \
755 ((((u32)(_h)) << 22) | (((u32)(_l)) >> 10))
756 struct ath_hal *ah = sc->sc_ah; 750 struct ath_hal *ah = sc->sc_ah;
757 u32 nexttbtt, intval; 751 u32 nexttbtt, intval;
758 struct ath_beacon_config conf; 752 struct ath_beacon_config conf;
@@ -975,7 +969,6 @@ void ath_beacon_config(struct ath_softc *sc, int if_id)
975 (ah->ah_caps.hw_caps & ATH9K_HW_CAP_VEOL)) 969 (ah->ah_caps.hw_caps & ATH9K_HW_CAP_VEOL))
976 ath_beacon_start_adhoc(sc, 0); 970 ath_beacon_start_adhoc(sc, 0);
977 } 971 }
978#undef TSF_TO_TU
979} 972}
980 973
981/* Function to collect beacon rssi data and resync beacon if necessary */ 974/* Function to collect beacon rssi data and resync beacon if necessary */