summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/recv.c
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-06-17 20:53:20 +0200
committerJohn W. Linville <linville@tuxdriver.com>2009-06-19 11:50:22 -0400
commit58f5fffdc3b8567b3fa8ed77d75699db87e2d1d4 (patch)
treeb733ee0b9d255449674528be4fd0b0e6381c508c /drivers/net/wireless/ath/ath9k/recv.c
parenta878417cc576720d3c9ff5399522d06f226bad7d (diff)
downloadblackbird-op-linux-58f5fffdc3b8567b3fa8ed77d75699db87e2d1d4.tar.gz
blackbird-op-linux-58f5fffdc3b8567b3fa8ed77d75699db87e2d1d4.zip
ath9k: wait for beacon frame along with CAB
Changes-licensed-under: ISC Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/recv.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/recv.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/recv.c b/drivers/net/wireless/ath/ath9k/recv.c
index f99f3a76df3f..cece1c4c6bda 100644
--- a/drivers/net/wireless/ath/ath9k/recv.c
+++ b/drivers/net/wireless/ath/ath9k/recv.c
@@ -539,11 +539,14 @@ static void ath_rx_ps_beacon(struct ath_softc *sc, struct sk_buff *skb)
if (ath_beacon_dtim_pending_cab(skb)) {
/*
* Remain awake waiting for buffered broadcast/multicast
- * frames.
+ * frames. If the last broadcast/multicast frame is not
+ * received properly, the next beacon frame will work as
+ * a backup trigger for returning into NETWORK SLEEP state,
+ * so we are waiting for it as well.
*/
DPRINTF(sc, ATH_DBG_PS, "Received DTIM beacon indicating "
"buffered broadcast/multicast frame(s)\n");
- sc->sc_flags |= SC_OP_WAIT_FOR_CAB;
+ sc->sc_flags |= SC_OP_WAIT_FOR_CAB | SC_OP_WAIT_FOR_BEACON;
return;
}
OpenPOWER on IntegriCloud