From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wj0-f194.google.com ([209.85.210.194]:33351 "EHLO mail-wj0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750786AbdAaL1R (ORCPT ); Tue, 31 Jan 2017 06:27:17 -0500 Received: by mail-wj0-f194.google.com with SMTP id le4so949286wjb.0 for ; Tue, 31 Jan 2017 03:26:33 -0800 (PST) From: Iain Hunter To: linux-wireless@vger.kernel.org Cc: kvalo@aurora.org, Iain Hunter Subject: [PATCH] wlcore: disable multicast filter in AP mode Date: Tue, 31 Jan 2017 11:26:24 +0000 Message-Id: <20170131112624.10643-1-i-hunter1@ti.com> (sfid-20170131_122722_097990_51F01187) Sender: linux-wireless-owner@vger.kernel.org List-ID: diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net/wireless/ti/wlcore/main.c index 3241e9eba73..7d3f15d5d5c 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; + } + } } /* -- 2.11.0