diff options
author | Seevalamuthu Mariappan <seevalam@codeaurora.org> | 2020-06-09 15:45:54 +0530 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2020-06-25 10:54:35 +0200 |
commit | 78fb5b541b7ae57ac39187ccb3097e606004cf9b (patch) | |
tree | 727d6a0c16e3ae97760cdbec178e27add5fcbeb7 /net/mac80211/tx.c | |
parent | 01da2e059dc326d02091a62b81a795a393e3719f (diff) | |
download | lwn-78fb5b541b7ae57ac39187ccb3097e606004cf9b.tar.gz lwn-78fb5b541b7ae57ac39187ccb3097e606004cf9b.zip |
mac80211: Fix dropping broadcast packets in 802.11 encap
Broadcast pkts like arp are getting dropped in 'ieee80211_8023_xmit'.
Fix this by replacing is_valid_ether_addr api with is_zero_ether_addr.
Fixes: 50ff477a8639 ("mac80211: add 802.11 encapsulation offloading support")
Signed-off-by: Seevalamuthu Mariappan <seevalam@codeaurora.org>
Link: https://lore.kernel.org/r/1591697754-4975-1-git-send-email-seevalam@codeaurora.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r-- | net/mac80211/tx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index e9ce658141f5..3374df016c58 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c @@ -4206,7 +4206,7 @@ static void ieee80211_8023_xmit(struct ieee80211_sub_if_data *sdata, (!sta || !test_sta_flag(sta, WLAN_STA_TDLS_PEER))) ra = sdata->u.mgd.bssid; - if (!is_valid_ether_addr(ra)) + if (is_zero_ether_addr(ra)) goto out_free; multicast = is_multicast_ether_addr(ra); |