From b173bbb0b78feb2e9c61a8b1323e7947c2ba71aa Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Tue, 29 Mar 2022 15:16:54 +0200 Subject: [PATCH] drivers/atwinc15x0: join multicast groups I noticed the wifi module would not receive any router advertisements while an esp8266 did just fine. Turns out joining the multicast groups was not enabled. With this it works as expected. --- drivers/atwinc15x0/atwinc15x0_netdev.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/atwinc15x0/atwinc15x0_netdev.c b/drivers/atwinc15x0/atwinc15x0_netdev.c index 1fcf3da46d32..5e2563cab8df 100644 --- a/drivers/atwinc15x0/atwinc15x0_netdev.c +++ b/drivers/atwinc15x0/atwinc15x0_netdev.c @@ -466,6 +466,18 @@ static int _atwinc15x0_set(netdev_t *netdev, netopt_t opt, const void *val, case NETOPT_STATE: assert(max_len <= sizeof(netopt_state_t)); return _set_state(dev, *((const netopt_state_t *)val)); + case NETOPT_L2_GROUP: + if (m2m_wifi_enable_mac_mcast((void *)val, 1)) { + return -EINVAL; + } else { + return max_len; + } + case NETOPT_L2_GROUP_LEAVE: + if (m2m_wifi_enable_mac_mcast((void *)val, 0)) { + return -EINVAL; + } else { + return max_len; + } default: return netdev_eth_set(netdev, opt, val, max_len); }