mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/netdev_ieee802154_submac: get NETOPT_IEEE802154_PHY
Signed-off-by: Jean Pierre Dudey <me@jeandudey.tech>
This commit is contained in:
parent
e99e2d222d
commit
68c304aabc
@ -67,6 +67,9 @@ static int _get(netdev_t *netdev, netopt_t opt, void *value, size_t max_len)
|
||||
}
|
||||
*((uint8_t*) value) = netdev_submac->retrans;
|
||||
return 1;
|
||||
case NETOPT_IEEE802154_PHY:
|
||||
*((uint8_t*) value) = ieee802154_get_phy_mode(submac);
|
||||
return 1;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user