Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp390102ybg; Tue, 9 Jun 2020 03:20:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLjnAlc+Iy8gEUFFJS5TJgSkImJwmfxg2/ovIZi9eUUUsEvtfE+NDpGohNWHHwXUXDo5+Y X-Received: by 2002:a17:906:938b:: with SMTP id l11mr23903637ejx.99.1591698056667; Tue, 09 Jun 2020 03:20:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591698056; cv=none; d=google.com; s=arc-20160816; b=NTgU2Gyiw7pdgBOWY2OdCRtzk+MBIzr4edLNXwAVIHDstot8Tp0inNwAdjSdwtbRgZ J4a1qUeH8fVODn4xI0a28YBnKfOFY3Nu6/EnHufZ7xBmgKFZN+mqiSo/uT4BRzEFNxCv gTV9Xj9HrremoKixQKGMZgcp3Htjc3T2+Hzy57IP2k1134E6n3Pa8RCCaw0g2kVjE3rb R7cIDEiPlQ01t3sXBeJqslfYRxZFoS3J6EkHJL8VtiGBwEVWhef8RpacEiXMf4si44sc L/wUBHkWVzESb7IaJB+BnhnzfILgWbVrwhHaUJjzbdZTPkme8OxlZ0FBi0inCSkMQMMs xACA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature; bh=SYZHDKFLt090IsjvZsaPJmHjYGvqOYYhHiC5BrpK1/o=; b=A9eZOd19/gNT8JpSUxCaHaLXz5n3id6dMcZiEqXq7ikYJq+mU+iaZXaSEiqQZRR7DF AxW1MDEommb62fCeDTcUKTOLvER8p25zeno0VY9hJ5BooIc+U29hEx9XKeHm9M3yiXMr gs2lM/3qTnoHKK9LhBwpb+H3sbu5YmF5TYLll3USiahghGgNZQJufRjCJf4KsTCoIm+b +EP+jCTS09C85SQNvWMEahkLdu40jY6y1+U3hgTvr9JSqxsnw3DNYdaCZBtmwMpjTc+c okVibGxoX9QWYLWFzmED6lvKh3Opn7z06RFO7G1WrbNYDdqRL9IHaZjJp4at+Aaqfdn5 v9dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=VMe3qxro; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v27si9444172ejb.471.2020.06.09.03.20.18; Tue, 09 Jun 2020 03:20:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=VMe3qxro; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727920AbgFIKQP (ORCPT + 99 others); Tue, 9 Jun 2020 06:16:15 -0400 Received: from mail27.static.mailgun.info ([104.130.122.27]:21739 "EHLO mail27.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726286AbgFIKQN (ORCPT ); Tue, 9 Jun 2020 06:16:13 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1591697773; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=SYZHDKFLt090IsjvZsaPJmHjYGvqOYYhHiC5BrpK1/o=; b=VMe3qxrou/m3h3G/L7WNzcFt3LvhqjnDJ74R4P9rC/Jyx3XH6t4TIwCaYv7jmbjaBbOobJQt Yuf36AJ+jhgElXgzqaWI+ZJpai+el8J/s5siQkeUZPi1ukpX66ZD+3uz94UDakzLlnP2uuYW CVy2qR/9yttKINIiZPtbIuwwfCA= X-Mailgun-Sending-Ip: 104.130.122.27 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n07.prod.us-east-1.postgun.com with SMTP id 5edf616c0206ad41d1dcc862 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 09 Jun 2020 10:16:12 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 23835C43387; Tue, 9 Jun 2020 10:16:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from seevalam-linux.qualcomm.com (blr-c-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: seevalam) by smtp.codeaurora.org (Postfix) with ESMTPSA id 701EEC433CA; Tue, 9 Jun 2020 10:16:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 701EEC433CA Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=seevalam@codeaurora.org From: Seevalamuthu Mariappan To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Seevalamuthu Mariappan Subject: [PATCH] mac80211: Fix dropping broadcast packets in 802.11 encap Date: Tue, 9 Jun 2020 15:45:54 +0530 Message-Id: <1591697754-4975-1-git-send-email-seevalam@codeaurora.org> X-Mailer: git-send-email 2.7.4 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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 --- net/mac80211/tx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index e9ce658..3374df0 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); -- 2.7.4