Skip to content

Commit

Permalink
wifi: mac80211_hwsim: remove multicast workaround
Browse files Browse the repository at this point in the history
Now that we have proper multicast TX in mac80211, there's
no longer a need to fake something here.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Johannes Berg committed Sep 3, 2022
1 parent a21cd7d commit 86e74a0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions drivers/net/wireless/mac80211_hwsim.c
Original file line number Diff line number Diff line change
Expand Up @@ -1714,12 +1714,7 @@ mac80211_hwsim_select_tx_link(struct mac80211_hwsim_data *data,
if (!vif->valid_links)
return &vif->bss_conf;

/* FIXME: handle multicast TX properly */
if (is_multicast_ether_addr(hdr->addr1) || WARN_ON_ONCE(!sta)) {
unsigned int first_link = ffs(vif->valid_links) - 1;

return rcu_dereference(vif->link_conf[first_link]);
}
WARN_ON(is_multicast_ether_addr(hdr->addr1));

if (WARN_ON_ONCE(!sta->valid_links))
return &vif->bss_conf;
Expand Down

0 comments on commit 86e74a0

Please sign in to comment.