Skip to contentSkip to conversation

wlcore: disable multicast filter in AP mode

PATCH New Iain Hunter 2 participants 6 messages Jan 31, 2017 – Feb 15, 2017 TI wilink wireless drivers

lore
Share & tools
lore
#0 lore raw

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

Enable AP support for allmulticast for MDNS It can be enabled by bringing

up the interface with ip command with argument allmulticast on

---
PATCH v2: resumbitting to handle error return value

 drivers/net/wireless/ti/wlcore/main.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
drivers/net/wireless/ti/wlcore/main.c +15 -0
index 3241e9eba73..4fabbb486e7 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
#1 lore raw

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

Enable AP support for allmulticast for MDNS. It can be enabled by bringing up the interface with ip command with argument allmulticast on

---

PATCH v3: fixes tabbing

 drivers/net/wireless/ti/wlcore/main.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
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
#2 lore raw
Quoted 4 lines · Iain Hunter

Enable AP support for allmulticast for MDNS. It can be enabled by bringing up the interface with ip command with argument allmulticast on

There should be a space after ':' and before your name.

drivers/net/wireless/ti/wlcore/main.c static void wl1271_op_configure_filter(struct ieee80211_hw *hw, · line 3290

Quoted 13 lines
drivers/net/wireless/ti/wlcore/main.c +7 -0
@@ -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) {

The comment looks wrongly indented.

drivers/net/wireless/ti/wlcore/main.c static void wl1271_op_configure_filter(struct ieee80211_hw *hw, · line 3297

Quoted 7 lines
drivers/net/wireless/ti/wlcore/main.c +7 -0
+ 			if (*total & FIF_ALLMULTI) {
+				ret = wl1271_acx_group_address_tbl(wl, wlvif,
+							false,
+							NULL, 0);
+				if (ret < 0)
+					goto out_sleep;
+				}

Also the closing bracket here is not indented correctly.

Signature · 1 line
Kalle Valo
#3 lore raw

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

In reply to Iain Hunter

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(+)
drivers/net/wireless/ti/wlcore/main.c +15 -0
index 3241e9eba73..242111cd016 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
#4 lore raw

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

In reply to Iain Hunter

Enable AP support for allmulticast for MDNS. It can be enabled by bringing up the interface with ip command with argument allmulticast on

---

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(+)
drivers/net/wireless/ti/wlcore/main.c +15 -0
index 3241e9eba73..242111cd016 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
#5 lore raw
Quoted 4 lines · Iain Hunter

Enable AP support for allmulticast for MDNS. It can be enabled by bringing up the interface with ip command with argument allmulticast on

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

1f8665320fa1 wlcore: disable multicast filter in AP mode

Signature · 6 lines
https://patchwork.kernel.org/patch/9564711/

Documentation about submitting wireless patches and checking status
from patchwork:

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches