aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJimmy Perchet <jimmy.perchet@parrot.com>2016-05-09 10:32:04 -0700
committerMattias Nissler <mnissler@google.com>2016-07-20 16:18:37 +0200
commit53cf63b372395b44e1f0d04d9fe2ce8ff20974b7 (patch)
tree286ab48f294b384d0ea3f109b63c159389b815e2
parent3302d2da7eab3cc4eeace475c370eb771df140c3 (diff)
downloadv4.4-53cf63b372395b44e1f0d04d9fe2ce8ff20974b7.tar.gz
ANDROID: wlcore: Disable filtering in AP role
When you configure (set it up) a STA interface, the driver install a multicast filter. This is normal behavior, when one application subscribe to multicast address the filter is updated. When Access Point interface is configured, there is no filter installation and the "filter update" path is disabled in the driver. The problem happens when you switch an interface from STA type to AP type. The filter is installed but there are no means to update it. Signed-off-by: Dmitry Shmidt <dimitrysh@google.com> Bug: None Patchset: wlcore-disable-filtering Signed-off-by: Mattias Nissler <mnissler@google.com> Change-Id: I1853c2e2c592216e0e88fb4f33e46bf094a4aa4a
-rw-r--r--drivers/net/wireless/ti/wlcore/init.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wlcore/init.c b/drivers/net/wireless/ti/wlcore/init.c
index e92f2639af2c..9fd3c6af0a61 100644
--- a/drivers/net/wireless/ti/wlcore/init.c
+++ b/drivers/net/wireless/ti/wlcore/init.c
@@ -549,6 +549,11 @@ static int wl12xx_init_ap_role(struct wl1271 *wl, struct wl12xx_vif *wlvif)
{
int ret;
+ /* Disable filtering */
+ ret = wl1271_acx_group_address_tbl(wl, wlvif, false, NULL, 0);
+ if (ret < 0)
+ return ret;
+
ret = wl1271_acx_ap_max_tx_retry(wl, wlvif);
if (ret < 0)
return ret;