add chaos_calmer branch
[15.05/openwrt.git] / package / kernel / mac80211 / patches / 310-mac80211-don-t-look-up-stations-for-multicast-addres.patch
1 From: Johannes Berg <johannes.berg@intel.com>
2 Date: Tue, 24 Feb 2015 00:28:18 +0100
3 Subject: [PATCH] mac80211: don't look up stations for multicast addresses
4
5 Since multicast addresses don't exist as stations, don't attempt
6 to look them up in the hashtable on TX.
7
8 Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 ---
10
11 --- a/net/mac80211/tx.c
12 +++ b/net/mac80211/tx.c
13 @@ -1161,7 +1161,7 @@ ieee80211_tx_prepare(struct ieee80211_su
14                    tx->sdata->control_port_protocol == tx->skb->protocol) {
15                 tx->sta = sta_info_get_bss(sdata, hdr->addr1);
16         }
17 -       if (!tx->sta)
18 +       if (!tx->sta && !is_multicast_ether_addr(hdr->addr1))
19                 tx->sta = sta_info_get(sdata, hdr->addr1);
20  
21         if (tx->sta && ieee80211_is_data_qos(hdr->frame_control) &&