Skip to content

Commit

Permalink
Merge pull request #17880 from benpicco/drivers/atwinc15x0-mcast
Browse files Browse the repository at this point in the history
drivers/atwinc15x0: join multicast groups
  • Loading branch information
fjmolinas authored Apr 7, 2022
2 parents a687552 + b173bbb commit 8b18898
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions drivers/atwinc15x0/atwinc15x0_netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8b18898

Please sign in to comment.