Skip to contentSkip to conversation

wlcore: disable multicast filter in AP mode

PATCH New Iain Hunter 1 participant 1 message Jan 31, 2017 TI wilink wireless drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wlcore: disable multicast filter in AP mode

drivers/net/wireless/ti/wlcore/main.c +15 -0
index 3241e9eba73..7d3f15d5d5c 100644
@@ -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;
+				}
+		}
 	}
 
 	/*
Signature · 1 line
2.11.0