Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1009583ybz; Sat, 25 Apr 2020 09:01:03 -0700 (PDT) X-Google-Smtp-Source: APiQypLvN49j6EkpnWmIJkJgLktsMQC/lMIH2PYEC0LGgjqB0D49N43zF7XTuftAA7ZORfTgLj7s X-Received: by 2002:a17:906:784c:: with SMTP id p12mr12542382ejm.346.1587830463634; Sat, 25 Apr 2020 09:01:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587830463; cv=none; d=google.com; s=arc-20160816; b=i6ve5nVX8I3GXuPa4dAy927FPK58smxPTMcchXeiY7rFw02YqOqV/x3XJjdU+cLLAB wY37ATZ/YdlsLJ9dlqorUr0yYhiOC+0nfIF+OTAhx0k1cJpYfTBY3MHt5wx6BHDpPhta 2owenxxSXDZpIMZwBiTZ31ZujathJ4Ld6Ln2cBY+o7KN0VABE4K6gZMvwyN39mD+0hza 9Mx4S7iGSQmOXOXMpl2E4OmuCFBygyhwCynaKSkAlA/5mgXjCOTJh27wT3uP9muz1dXk yQEsSke7ldm48xQDwydRwLUOW/Cjd+HYKu3XvgvITDHmpedUWPRFuhq53JnbGrs2wBcM G7Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature; bh=d6jvbQQ2J5GjIFwfR0B26fv54eNqg3AUAKAICJrv4FU=; b=nwp4ElItlBNetihaQ47m1Ie+XlrvmBxuE27qEl+w+dbeaQsr0XIqcbUQ9YjyTIJR2U lIWZfZMmbV8wWUGQmZDpMmM9/xpT1hYCVUzt0Jeb+Q0ZCUM7y7rYADgMZLhbKEyk8Tjb KaKC4C7ZjMHxX+OORZRb80aZea/tXAJ7LQpI55vEO4IuVjyEdArnxwtzg69UuvIiGqmX f0wB2Pvc4++yH/mOo067ZDFC+VSrNZSS1m1JBicadYbVhd4EGXv+2kI6TDPzWpMNNcyJ 04+dJH4GrwcGZBhFH7PUedC5OlH/iFehTGPhB34A/3uUwC5LmWz1t3ugH7x/oBiE39gd 9ddg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=DChzmD7A; 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 u3si5065312edy.541.2020.04.25.09.00.39; Sat, 25 Apr 2020 09:01:03 -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=DChzmD7A; 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 S1726156AbgDYP6w (ORCPT + 99 others); Sat, 25 Apr 2020 11:58:52 -0400 Received: from mail27.static.mailgun.info ([104.130.122.27]:16943 "EHLO mail27.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726112AbgDYP6w (ORCPT ); Sat, 25 Apr 2020 11:58:52 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1587830331; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=d6jvbQQ2J5GjIFwfR0B26fv54eNqg3AUAKAICJrv4FU=; b=DChzmD7ABLbsxHgIwW4esHS6jxLMnxk0NeQ8fvYEgZTi4jAg11OVdBBQv+/UZJbSxpuvVD24 /RK6aDbIqYogzYdDxAGPRKEl0mK5Yma3S0bzRbmv5Srla5ZZee722kbYUW8jETI2FxuWijAk rcWOho7adhh4hgt2VNoUfBtIOE8= 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 mxa.mailgun.org with ESMTP id 5ea45e3b.7fae58e82618-smtp-out-n05; Sat, 25 Apr 2020 15:58:51 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id F0F46C433CB; Sat, 25 Apr 2020 15:58:50 +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 autolearn=ham autolearn_force=no version=3.4.0 Received: from jouni.codeaurora.org (37-130-184-238.bb.dnainternet.fi [37.130.184.238]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jouni) by smtp.codeaurora.org (Postfix) with ESMTPSA id 99E60C433F2; Sat, 25 Apr 2020 15:58:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 99E60C433F2 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=jouni@codeaurora.org From: Jouni Malinen To: Johannes Berg Cc: linux-wireless@vger.kernel.org, Jouni Malinen Subject: [PATCH 3/5] mac80211_hwsim: Advertise support for multicast RX registration Date: Sat, 25 Apr 2020 18:57:11 +0300 Message-Id: <20200425155713.25687-3-jouni@codeaurora.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200425155713.25687-1-jouni@codeaurora.org> References: <20200425155713.25687-1-jouni@codeaurora.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org While mac80211_hwsim does not need this to configure RX filters, it is convenient to have this enabled for testing purposes. Signed-off-by: Jouni Malinen --- drivers/net/wireless/mac80211_hwsim.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index a05e9c778f21..bd67de740a65 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c @@ -1836,6 +1836,8 @@ static void mac80211_hwsim_configure_filter(struct ieee80211_hw *hw, data->rx_filter = 0; if (*total_flags & FIF_ALLMULTI) data->rx_filter |= FIF_ALLMULTI; + if (*total_flags & FIF_MCAST_ACTION) + data->rx_filter |= FIF_MCAST_ACTION; *total_flags = data->rx_filter; } @@ -3070,6 +3072,8 @@ static int mac80211_hwsim_new_radio(struct genl_info *info, wiphy_ext_feature_set(hw->wiphy, NL80211_EXT_FEATURE_VHT_IBSS); wiphy_ext_feature_set(hw->wiphy, NL80211_EXT_FEATURE_BEACON_PROTECTION); wiphy_ext_feature_set(hw->wiphy, NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA); + wiphy_ext_feature_set(hw->wiphy, + NL80211_EXT_FEATURE_MULTICAST_REGISTRATIONS); hw->wiphy->interface_modes = param->iftypes; -- 2.20.1