wl1271: Multicast filtering configuration
Enable multicast filtering. This way by default no multicast frames will reach the host, and when needed, only required multicast frames can be passed from the WLAN chipset to the host. Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com> Reviewed-by: Luciano Coelho <luciano.coelho@nokia.com> Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
66497dc3bd
commit
c87dec9f18
@@ -300,7 +300,8 @@ out:
|
||||
return ret;
|
||||
}
|
||||
|
||||
int wl1271_acx_group_address_tbl(struct wl1271 *wl)
|
||||
int wl1271_acx_group_address_tbl(struct wl1271 *wl, bool enable,
|
||||
void *mc_list, u32 mc_list_len)
|
||||
{
|
||||
struct acx_dot11_grp_addr_tbl *acx;
|
||||
int ret;
|
||||
@@ -314,9 +315,9 @@ int wl1271_acx_group_address_tbl(struct wl1271 *wl)
|
||||
}
|
||||
|
||||
/* MAC filtering */
|
||||
acx->enabled = 0;
|
||||
acx->num_groups = 0;
|
||||
memset(acx->mac_table, 0, ADDRESS_GROUP_MAX_LEN);
|
||||
acx->enabled = enable;
|
||||
acx->num_groups = mc_list_len;
|
||||
memcpy(acx->mac_table, mc_list, mc_list_len * ETH_ALEN);
|
||||
|
||||
ret = wl1271_cmd_configure(wl, DOT11_GROUP_ADDRESS_TBL,
|
||||
acx, sizeof(*acx));
|
||||
|
Reference in New Issue
Block a user