From: Mohammed Shafi Shajakhan Date: Wed, 30 Nov 2011 10:51:58 +0530 Subject: [ath9k-devel] [RFC] ath9k: validate for non-zero BSSID In-Reply-To: <20111130023650.19520.qmail@stuge.se> References: <1322576540-13751-1-git-send-email-mohammed@qca.qualcomm.com> <20111130023650.19520.qmail@stuge.se> Message-ID: <4ED5BD76.7020204@qca.qualcomm.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Hi Peter, On Wednesday 30 November 2011 08:06 AM, Peter Stuge wrote: > Mohammed Shafi Shajakhan wrote: >> 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. -- thanks, shafi