2015-03-20 16:24:14 +00:00
|
|
|
From: Johannes Berg <johannes.berg@intel.com>
|
|
|
|
Date: Tue, 24 Feb 2015 00:28:18 +0100
|
|
|
|
Subject: [PATCH] mac80211: don't look up stations for multicast addresses
|
|
|
|
|
|
|
|
Since multicast addresses don't exist as stations, don't attempt
|
|
|
|
to look them up in the hashtable on TX.
|
|
|
|
|
|
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
|
|
---
|
|
|
|
|
|
|
|
--- a/net/mac80211/tx.c
|
|
|
|
+++ b/net/mac80211/tx.c
|
2015-04-03 19:42:33 +00:00
|
|
|
@@ -1161,7 +1161,7 @@ ieee80211_tx_prepare(struct ieee80211_su
|
2015-03-20 16:24:14 +00:00
|
|
|
tx->sdata->control_port_protocol == tx->skb->protocol) {
|
|
|
|
tx->sta = sta_info_get_bss(sdata, hdr->addr1);
|
|
|
|
}
|
|
|
|
- if (!tx->sta)
|
|
|
|
+ if (!tx->sta && !is_multicast_ether_addr(hdr->addr1))
|
|
|
|
tx->sta = sta_info_get(sdata, hdr->addr1);
|
|
|
|
|
|
|
|
if (tx->sta && ieee80211_is_data_qos(hdr->frame_control) &&
|