From patchwork Wed Feb 8 14:09:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iain Hunter X-Patchwork-Id: 9562629 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6CFDB60434 for ; Wed, 8 Feb 2017 14:18:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5D822284F4 for ; Wed, 8 Feb 2017 14:18:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 506F1284F6; Wed, 8 Feb 2017 14:18:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C18F5284F4 for ; Wed, 8 Feb 2017 14:18:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754651AbdBHOR5 (ORCPT ); Wed, 8 Feb 2017 09:17:57 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:33915 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754065AbdBHOQ6 (ORCPT ); Wed, 8 Feb 2017 09:16:58 -0500 Received: by mail-wm0-f65.google.com with SMTP id c85so33460384wmi.1 for ; Wed, 08 Feb 2017 06:16:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=rMtHCvltenDuuqZAXp0bCs4GOPv4UpNd5Tcrx9atSKI=; b=U5f0HkbjfdKNiLP1GKRMDV/0vYV4FfDuRmdIWZqHqqpdwvCPJIIQk7bot6OFEsCNCk iGPFRoT7DQ9F11z01NWuxUVIuEzk/4A6FtvFS7LLZWDdoEe0KIeqS+g4IcCWVDv6VfGl PD+rBGeXrRRyow67LBsxeWrgcyXc49ae6XeSkCgrOPxYraZkIRMsR11jQAOSEDvflLVc Op2UAWfbHfxdS4GTnQiFhrxH4OSVBuXWU6J2XvOqg4qoYvkVSe74KggWtb/3rnPu+B2X Z+wbSo/e/oaG3DJRbonNjvHFc3YugOKoBYpYmt3I4+Nnp0MzeKsuI2XHOnJ6t+YpUaG/ 8Zfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=rMtHCvltenDuuqZAXp0bCs4GOPv4UpNd5Tcrx9atSKI=; b=McSEV3K08bzmd6CKD/gMqy3R/jl6l9PAFEsArsCSoUWumszgxEvr1L8Mgcukea+yx5 xunoiIdXibh/dv0yeMTUJ6AHtIwFBy9MuLxNmx6OucT2Zu00lo7VVVRHj+apGLmSu+iE Q1Qrn3q13hLT/7/tEHXw6lGeCHpH5maD8TpRDT6yx+fqNdK+dtfdZL/u3gZjjCW46brw Lkw2WLVao1WDwtMRNQxUNe4m/YSBjF0s0WgMLKrzYk1Vlv86PglaU+0ye6skBFyCFa1I yDksNPr+y2OgRZsTf4gGAwugOjuBFr4tCM7+671ajUWFEHPkLvxILSh5A6mrXKLVZoiM eROg== X-Gm-Message-State: AIkVDXKBwlCAmAlTJFFDEk9xMAWfb3mtujVLP/MCFwd9w1cBT4NiE7umMiBDz7BTupBFJg== X-Received: by 10.223.165.138 with SMTP id g10mr21209036wrc.105.1486562986943; Wed, 08 Feb 2017 06:09:46 -0800 (PST) Received: from localhost.localdomain (host90-152-62-146.ipv4.regusnet.com. [90.152.62.146]) by smtp.googlemail.com with ESMTPSA id h3sm13278695wrb.31.2017.02.08.06.09.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 08 Feb 2017 06:09:46 -0800 (PST) From: Iain Hunter X-Google-Original-From: Iain Hunter To: linux-wireless@vger.kernel.org Cc: kvalo@aurora.org, Iain Hunter Subject: [PATCH v4] wlcore: disable multicast filter in AP mode Date: Wed, 8 Feb 2017 14:09:40 +0000 Message-Id: <20170208140940.5638-1-i-hunter1@ti.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170131104840.10366-1-i-hunter1@ti.com> References: <20170131104840.10366-1-i-hunter1@ti.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Enable AP support for allmulticast for MDNS. It can be enabled by bringing up the interface with ip command with argument allmulticast on --- PATCH v4: fixes space in signed-off, tabbing for comment and indentation of closing bracket drivers/net/wireless/ti/wlcore/main.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net/wireless/ti/wlcore/main.c index 3241e9eba73..242111cd016 100644 --- a/drivers/net/wireless/ti/wlcore/main.c +++ b/drivers/net/wireless/ti/wlcore/main.c @@ -3281,6 +3281,21 @@ static void wl1271_op_configure_filter(struct ieee80211_hw *hw, if (ret < 0) goto out_sleep; } + + /* + * If interface in AP mode and created with allmulticast then disable + * the firmware filters so that all multicast packets are passed + * This is mandatory for MDNS based discovery protocols + */ + if (wlvif->bss_type == BSS_TYPE_AP_BSS) { + if (*total & FIF_ALLMULTI) { + ret = wl1271_acx_group_address_tbl(wl, wlvif, + false, + NULL, 0); + if (ret < 0) + goto out_sleep; + } + } } /*