aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath9k/beacon.c
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2008-08-11 04:35:46 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-08-29 16:24:01 -0400
commit98deeea0b3464955ec416c30cbd0c3d21cacfa9a (patch)
tree3cf039e52965164e6b3b4c74c4a06ac75f8ea808 /drivers/net/wireless/ath9k/beacon.c
parent7c56d24bc80112daadc7ef54247a5fc8397dbc5c (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/beacon.c')
-rw-r--r--drivers/net/wireless/ath9k/beacon.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath9k/beacon.c b/drivers/net/wireless/ath9k/beacon.c
index f1c420141714..e0ca0172f8be 100644
--- a/drivers/net/wireless/ath9k/beacon.c
+++ b/drivers/net/wireless/ath9k/beacon.c
@@ -555,7 +555,7 @@ void ath9k_beacon_tasklet(unsigned long data)
555 u32 tsftu; 555 u32 tsftu;
556 u16 intval; 556 u16 intval;
557 557
558 if (sc->sc_noreset) { 558 if (sc->sc_flags & SC_OP_NO_RESET) {
559 show_cycles = ath9k_hw_GetMibCycleCountsPct(ah, 559 show_cycles = ath9k_hw_GetMibCycleCountsPct(ah,
560 &rx_clear, 560 &rx_clear,
561 &rx_frame, 561 &rx_frame,
@@ -577,7 +577,7 @@ void ath9k_beacon_tasklet(unsigned long data)
577 * (in that layer). 577 * (in that layer).
578 */ 578 */
579 if (sc->sc_bmisscount < BSTUCK_THRESH) { 579 if (sc->sc_bmisscount < BSTUCK_THRESH) {
580 if (sc->sc_noreset) { 580 if (sc->sc_flags & SC_OP_NO_RESET) {
581 DPRINTF(sc, ATH_DBG_BEACON, 581 DPRINTF(sc, ATH_DBG_BEACON,
582 "%s: missed %u consecutive beacons\n", 582 "%s: missed %u consecutive beacons\n",
583 __func__, sc->sc_bmisscount); 583 __func__, sc->sc_bmisscount);
@@ -605,7 +605,7 @@ void ath9k_beacon_tasklet(unsigned long data)
605 __func__, sc->sc_bmisscount); 605 __func__, sc->sc_bmisscount);
606 } 606 }
607 } else if (sc->sc_bmisscount >= BSTUCK_THRESH) { 607 } else if (sc->sc_bmisscount >= BSTUCK_THRESH) {
608 if (sc->sc_noreset) { 608 if (sc->sc_flags & SC_OP_NO_RESET) {
609 if (sc->sc_bmisscount == BSTUCK_THRESH) { 609 if (sc->sc_bmisscount == BSTUCK_THRESH) {
610 DPRINTF(sc, 610 DPRINTF(sc,
611 ATH_DBG_BEACON, 611 ATH_DBG_BEACON,
@@ -624,7 +624,7 @@ void ath9k_beacon_tasklet(unsigned long data)
624 return; 624 return;
625 } 625 }
626 if (sc->sc_bmisscount != 0) { 626 if (sc->sc_bmisscount != 0) {
627 if (sc->sc_noreset) { 627 if (sc->sc_flags & SC_OP_NO_RESET) {
628 DPRINTF(sc, 628 DPRINTF(sc,
629 ATH_DBG_BEACON, 629 ATH_DBG_BEACON,
630 "%s: resume beacon xmit after %u misses\n", 630 "%s: resume beacon xmit after %u misses\n",