wlcore: disable multicast filter in AP mode
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
@@ -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
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
@@ -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
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
Signed-off-by Iain Hunter <[email protected]>
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
PATCH v4 1/1 wlcore: disable multicast filter in AP mode
In reply to Iain HunterEnable 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
@@ -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
PATCH v5 1/1 wlcore: disable multicast filter in AP mode
In reply to Iain HunterEnable 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
@@ -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
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
Signed-off-by Iain Hunter <[email protected]>
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