ath9k: validate for non-zero BSSID
RFC 1/1 ath9k: validate for non-zero BSSID
From: Mohammed Shafi Shajakhan <[email protected]>
before concluding that the recieved beacon is for us, let us make sure that the BSSID is non-zero.
--- drivers/net/wireless/ath/ath9k/recv.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/wireless/ath/ath9k/recv.c +1 -0
@@ -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
Signature · 1 line
1.7.0.4
Quoted 2 lines · Mohammed Shafi Shajakhan
before concluding that the recieved beacon is for us, let us make sure that the BSSID is non-zero.
Under what circumstances would the BSSID be zero?
//Peter
Hi Peter,
Quoted 8 lines · Peter Stuge
Quoted 2 lines · Mohammed Shafi Shajakhan
before concluding that the recieved beacon is for us, let us make sure that the BSSID is non-zero.
Under what circumstances would the BSSID be zero?
//Peter
unassociated state for station.
but I observed this when i tested ad-hoc mode. I just started an ad-hoc mode creator and left it for some time with no one joining. i observed there are few frames in rx_tasklet of ath9k driver which seem to be beacons and their BSSID is '0', as our curbssid is also '0' they seem to be wrongly identified as 'my_beacons'. let me also verify it in STA mode and find the effect of this before sending it as a PATCH.
let me also check if it has any effect in ath9k_process_rssi and ath_rx_ps.
Signature · 2 lines
thanks, shafi
Quoted 7 lines · Mohammed Shafi Shajakhan
unassociated state for station.
but I observed this when i tested ad-hoc mode. I just started an ad-hoc mode creator and left it for some time with no one joining. i observed there are few frames in
rx_taskletof ath9k driver which seem to be beacons and their BSSID is '0', as our curbssid is also '0' they seem to be wrongly identified as 'my_beacons'.
This is a perfect addition to the commit log. Remember that the commit log should especially answer the question "why?".
Signature · 1 line
Kalle Valo
Quoted 4 lines · Kalle Valo
Quoted 2 lines · Mohammed Shafi Shajakhan
unassociated state for station.
Quoted 9 lines
Quoted 5 lines
but I observed this when i tested ad-hoc mode. I just started an ad-hoc mode creator and left it for some time with no one joining. i observed there are few frames in
rx_taskletof ath9k driver which seem to be beacons and their BSSID is '0', as our curbssid is also '0' they seem to be wrongly identified as 'my_beacons'.This is a perfect addition to the commit log. Remember that the commit log should especially answer the question "why?".
Kalle, thanks. I will properly test this in STA and IBSS mode, and add this commit log.
Signature · 2 lines
thanks, shafi