diff mbox

[v5] wlcore: disable multicast filter in AP mode

Message ID 20170209143728.22831-1-i-hunter1@ti.com (mailing list archive)
State Accepted
Commit 1f8665320fa1a232fda22bcc7f88daeb83628385
Delegated to: Kalle Valo
Headers show

Commit Message

Iain Hunter Feb. 9, 2017, 2:37 p.m. UTC
Enable AP support for allmulticast for MDNS. It can be enabled by bringing
up the interface with ip command with argument allmulticast on

Signed-off-by: Iain Hunter <i-hunter1@ti.com>
---

PATCH v5: fixes indentation of other closing bracket and missing Signed Off

 drivers/net/wireless/ti/wlcore/main.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

Comments

Kalle Valo Feb. 15, 2017, 9:12 a.m. UTC | #1
Iain Hunter <drhunter95@gmail.com> wrote:
> Enable AP support for allmulticast for MDNS. It can be enabled by bringing
> up the interface with ip command with argument allmulticast on
> 
> Signed-off-by: Iain Hunter <i-hunter1@ti.com>

Patch applied to wireless-drivers-next.git, thanks.

1f8665320fa1 wlcore: disable multicast filter in AP mode
diff mbox

Patch

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;
+			}
+		}
 	}
 
 	/*