* [PATCH] wlcore: disable multicast filter in AP mode
@ 2017-01-31 10:48 Iain Hunter
2017-01-31 12:44 ` [PATCH v3] " Iain Hunter
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Iain Hunter @ 2017-01-31 10:48 UTC (permalink / raw)
To: linux-wireless; +Cc: kvalo, 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
Signed-off-by: Iain Hunter <i-hunter1@ti.com>
---
PATCH v2: resumbitting to handle error return value
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..4fabbb486e7 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
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v3] wlcore: disable multicast filter in AP mode
2017-01-31 10:48 [PATCH] wlcore: disable multicast filter in AP mode Iain Hunter
@ 2017-01-31 12:44 ` Iain Hunter
2017-02-02 6:23 ` Kalle Valo
2017-02-08 14:09 ` [PATCH v4] " Iain Hunter
2017-02-09 14:37 ` [PATCH v5] " Iain Hunter
2 siblings, 1 reply; 6+ messages in thread
From: Iain Hunter @ 2017-01-31 12:44 UTC (permalink / raw)
To: linux-wireless; +Cc: kvalo, 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
Signed-off-by:Iain Hunter <i-hunter1@ti.com>
---
PATCH v3: fixes tabbing
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..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
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v3] wlcore: disable multicast filter in AP mode
2017-01-31 12:44 ` [PATCH v3] " Iain Hunter
@ 2017-02-02 6:23 ` Kalle Valo
0 siblings, 0 replies; 6+ messages in thread
From: Kalle Valo @ 2017-02-02 6:23 UTC (permalink / raw)
To: Iain Hunter; +Cc: linux-wireless, Iain Hunter
Iain Hunter <drhunter95@gmail.com> writes:
> 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>
There should be a space after ':' and before your name.
> --- 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) {
The comment looks wrongly indented.
> + 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.
--
Kalle Valo
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v4] wlcore: disable multicast filter in AP mode
2017-01-31 10:48 [PATCH] wlcore: disable multicast filter in AP mode Iain Hunter
2017-01-31 12:44 ` [PATCH v3] " Iain Hunter
@ 2017-02-08 14:09 ` Iain Hunter
2017-02-09 14:37 ` [PATCH v5] " Iain Hunter
2 siblings, 0 replies; 6+ messages in thread
From: Iain Hunter @ 2017-02-08 14:09 UTC (permalink / raw)
To: linux-wireless; +Cc: kvalo, 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(+)
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;
+ }
+ }
}
/*
--
2.11.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v5] wlcore: disable multicast filter in AP mode
2017-01-31 10:48 [PATCH] wlcore: disable multicast filter in AP mode Iain Hunter
2017-01-31 12:44 ` [PATCH v3] " Iain Hunter
2017-02-08 14:09 ` [PATCH v4] " Iain Hunter
@ 2017-02-09 14:37 ` Iain Hunter
2017-02-15 9:12 ` [v5] " Kalle Valo
2 siblings, 1 reply; 6+ messages in thread
From: Iain Hunter @ 2017-02-09 14:37 UTC (permalink / raw)
To: linux-wireless; +Cc: kvalo, 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
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(+)
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;
+ }
+ }
}
/*
--
2.11.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [v5] wlcore: disable multicast filter in AP mode
2017-02-09 14:37 ` [PATCH v5] " Iain Hunter
@ 2017-02-15 9:12 ` Kalle Valo
0 siblings, 0 replies; 6+ messages in thread
From: Kalle Valo @ 2017-02-15 9:12 UTC (permalink / raw)
To: Iain Hunter; +Cc: linux-wireless, kvalo, Iain Hunter
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
--
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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-02-15 9:12 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-31 10:48 [PATCH] wlcore: disable multicast filter in AP mode Iain Hunter
2017-01-31 12:44 ` [PATCH v3] " Iain Hunter
2017-02-02 6:23 ` Kalle Valo
2017-02-08 14:09 ` [PATCH v4] " Iain Hunter
2017-02-09 14:37 ` [PATCH v5] " Iain Hunter
2017-02-15 9:12 ` [v5] " Kalle Valo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).