From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Greear Date: Thu, 13 Jan 2011 14:16:48 -0800 Subject: [ath9k-devel] Questionable use of curbssid. Message-ID: <4D2F79D0.3010901@candelatech.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org It seems that several places are comparing against curbssid, but when using multiple VIFS (and a bssid mask), perhaps we should take the mask into consideration?? For instance: static void ath9k_process_rssi(struct ath_common *common, struct ieee80211_hw *hw, struct ieee80211_hdr *hdr, struct ath_rx_status *rx_stats) { struct ath_wiphy *aphy = hw->priv; struct ath_hw *ah = common->ah; int last_rssi; __le16 fc; if (ah->opmode != NL80211_IFTYPE_STATION) return; fc = hdr->frame_control; if (!ieee80211_is_beacon(fc) || compare_ether_addr(hdr->addr3, common->curbssid)) return; Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com