Skip to contentSkip to conversation

Questionable use of curbssid.

ath9k-devel Ben Greear 1 participant 1 message Jan 13, 2011

lore
Share & tools
lore

Ben Greear

author
#0 lore raw

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

Signature · 2 lines
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com