aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath9k/main.c
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2009-02-11 23:36:47 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-02-27 14:51:43 -0500
commit4af9cf4fda28c5f794861c52e0db5a3de9ee574d (patch)
treebd7cf98a05dee402ff290ae71b30c153b3f1acbd /drivers/net/wireless/ath9k/main.c
parent06d0f0663e11cab4ec5f2c143a118d71a12fbbe9 (diff)
ath9k: Enable TSF Out of Range Interrupt
This patch lays the groundwork for handling TSF Out of Range interrupt, which will be used for power save later on. Signed-off-by: Sujith <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/main.c')
-rw-r--r--drivers/net/wireless/ath9k/main.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath9k/main.c b/drivers/net/wireless/ath9k/main.c
index 7d7537e2738e..32cdb246a8f2 100644
--- a/drivers/net/wireless/ath9k/main.c
+++ b/drivers/net/wireless/ath9k/main.c
@@ -574,6 +574,10 @@ irqreturn_t ath_isr(int irq, void *dev)
574 sc->sc_flags |= SC_OP_WAIT_FOR_BEACON; 574 sc->sc_flags |= SC_OP_WAIT_FOR_BEACON;
575 } 575 }
576 } 576 }
577 if (status & ATH9K_INT_TSFOOR) {
578 /* FIXME: Handle this interrupt for power save */
579 sched = true;
580 }
577 } 581 }
578 } while (0); 582 } while (0);
579 583
@@ -2165,10 +2169,13 @@ static int ath9k_add_interface(struct ieee80211_hw *hw,
2165 * Enable MIB interrupts when there are hardware phy counters. 2169 * Enable MIB interrupts when there are hardware phy counters.
2166 * Note we only do this (at the moment) for station mode. 2170 * Note we only do this (at the moment) for station mode.
2167 */ 2171 */
2168 if (ath9k_hw_phycounters(sc->sc_ah) && 2172 if ((conf->type == NL80211_IFTYPE_STATION) ||
2169 ((conf->type == NL80211_IFTYPE_STATION) || 2173 (conf->type == NL80211_IFTYPE_ADHOC)) {
2170 (conf->type == NL80211_IFTYPE_ADHOC))) 2174 if (ath9k_hw_phycounters(sc->sc_ah))
2171 sc->imask |= ATH9K_INT_MIB; 2175 sc->imask |= ATH9K_INT_MIB;
2176 sc->imask |= ATH9K_INT_TSFOOR;
2177 }
2178
2172 /* 2179 /*
2173 * Some hardware processes the TIM IE and fires an 2180 * Some hardware processes the TIM IE and fires an
2174 * interrupt when the TIM bit is set. For hardware 2181 * interrupt when the TIM bit is set. For hardware