All of lore.kernel.org
 help / color / mirror / Atom feed
* [ath9k-devel] [RFC] ath9k: validate for non-zero BSSID
@ 2011-11-29 14:22 ` Mohammed Shafi Shajakhan
  0 siblings, 0 replies; 10+ messages in thread
From: Mohammed Shafi Shajakhan @ 2011-11-29 14:22 UTC (permalink / raw)
  To: ath9k-devel

From: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>

before concluding that the recieved beacon is for us, let us make sure
that the BSSID is non-zero.

Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
---
 drivers/net/wireless/ath/ath9k/recv.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/net/wireless/ath/ath9k/recv.c b/drivers/net/wireless/ath/ath9k/recv.c
index 4c8e296..620230d 100644
--- a/drivers/net/wireless/ath/ath9k/recv.c
+++ b/drivers/net/wireless/ath/ath9k/recv.c
@@ -1824,6 +1824,7 @@ int ath_rx_tasklet(struct ath_softc *sc, int flush, bool hp)
 		hdr = (struct ieee80211_hdr *) (hdr_skb->data + rx_status_len);
 		rxs = IEEE80211_SKB_RXCB(hdr_skb);
 		if (ieee80211_is_beacon(hdr->frame_control) &&
+		    !is_zero_ether_addr(common->curbssid) &&
 		    !compare_ether_addr(hdr->addr3, common->curbssid))
 			rs.is_mybeacon = true;
 		else
-- 
1.7.0.4

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

end of thread, other threads:[~2011-11-30  7:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-29 14:22 [ath9k-devel] [RFC] ath9k: validate for non-zero BSSID Mohammed Shafi Shajakhan
2011-11-29 14:22 ` Mohammed Shafi Shajakhan
2011-11-30  2:36 ` [ath9k-devel] " Peter Stuge
2011-11-30  2:36   ` Peter Stuge
2011-11-30  5:21   ` Mohammed Shafi Shajakhan
2011-11-30  5:21     ` Mohammed Shafi Shajakhan
2011-11-30  6:47     ` Kalle Valo
2011-11-30  6:47       ` Kalle Valo
2011-11-30  7:11       ` Mohammed Shafi Shajakhan
2011-11-30  7:11         ` Mohammed Shafi Shajakhan

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.