mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-17 04:17:44 +07:00
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>
This commit is contained in:
parent
b7853d73e3
commit
9d6b106b54
@ -1172,7 +1172,7 @@ ieee80211_tx_prepare(struct ieee80211_sub_if_data *sdata,
|
|||||||
tx->sdata->control_port_protocol == tx->skb->protocol) {
|
tx->sdata->control_port_protocol == tx->skb->protocol) {
|
||||||
tx->sta = sta_info_get_bss(sdata, hdr->addr1);
|
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);
|
tx->sta = sta_info_get(sdata, hdr->addr1);
|
||||||
|
|
||||||
if (tx->sta && ieee80211_is_data_qos(hdr->frame_control) &&
|
if (tx->sta && ieee80211_is_data_qos(hdr->frame_control) &&
|
||||||
|
Loading…
Reference in New Issue
Block a user