All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] carl9170: fix typo in PS code
@ 2011-02-03 21:22 Christian Lamparter
  2011-02-03 21:30 ` [RFT/RFC] carl9170: export HW random number generator Christian Lamparter
  0 siblings, 1 reply; 5+ messages in thread
From: Christian Lamparter @ 2011-02-03 21:22 UTC (permalink / raw)
  To: linux-wireless; +Cc: linville

This patch fixes a off-by-one bug which bugged
the driver's PS-POLL capability.

Cc: <stable@kernel.org>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
---

Note: Even with this patch, powersave is still "troublesome".
So the functionality remains disabled [by default].
---
 drivers/net/wireless/ath/carl9170/rx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/wireless/ath/carl9170/rx.c b/drivers/net/wireless/ath/carl9170/rx.c
index 939a0e9..84866a4 100644
--- a/drivers/net/wireless/ath/carl9170/rx.c
+++ b/drivers/net/wireless/ath/carl9170/rx.c
@@ -564,7 +564,7 @@ static void carl9170_ps_beacon(struct ar9170 *ar, void *data, unsigned int len)
 	cam = ieee80211_check_tim(tim_ie, tim_len, ar->common.curaid);
 
 	/* 2. Maybe the AP wants to send multicast/broadcast data? */
-	cam = !!(tim_ie->bitmap_ctrl & 0x01);
+	cam |= !!(tim_ie->bitmap_ctrl & 0x01);
 
 	if (!cam) {
 		/* back to low-power land. */
-- 
1.7.2.3


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-02-04  9:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-03 21:22 [PATCH] carl9170: fix typo in PS code Christian Lamparter
2011-02-03 21:30 ` [RFT/RFC] carl9170: export HW random number generator Christian Lamparter
2011-02-03 22:39   ` Julian Calaby
2011-02-04  8:12     ` Christian Lamparter
2011-02-04  9:19       ` Julian Calaby

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.