mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-28 23:49:47 +01:00
netdev/ieee802154_submac: support setting promiscuous mode option
This commit is contained in:
parent
361184833d
commit
7c0accb4f1
@ -115,6 +115,10 @@ static int _set(netdev_t *netdev, netopt_t opt, const void *value,
|
||||
return res;
|
||||
case NETOPT_STATE:
|
||||
return _set_submac_state(submac, *((netopt_state_t*) value));
|
||||
case NETOPT_PROMISCUOUSMODE:
|
||||
return ieee802154_radio_set_frame_filter_mode(&submac->dev,
|
||||
*((bool *)value) ? IEEE802154_FILTER_PROMISC
|
||||
: IEEE802154_FILTER_ACCEPT);
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user