Skip to content

Commit

Permalink
mrf24j40: declare radio capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
jia200x committed Aug 26, 2019
1 parent 2241a3d commit 505cee4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions drivers/mrf24j40/mrf24j40_netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ static int _init(netdev_t *netdev)
{
mrf24j40_t *dev = (mrf24j40_t *)netdev;

/* fill transceiver capabilities */
netdev_ieee802154_t *ieee802154_dev = (netdev_ieee802154_t*) netdev;
ieee802154_dev->caps = NETDEV_IEEE802154_CAPS_TX_CHECKSUM |
NETDEV_IEEE802154_CAPS_CSMA |
NETDEV_IEEE802154_CAPS_FRAME_RETRIES |
NETDEV_IEEE802154_CAPS_ADDRESS_FILTER |
NETDEV_IEEE802154_CAPS_AUTO_ACK |
NETDEV_IEEE802154_CAPS_PROMISCUOUS;

/* initialize GPIOs */
spi_init_cs(dev->params.spi, dev->params.cs_pin);
gpio_init(dev->params.reset_pin, GPIO_OUT);
Expand Down

0 comments on commit 505cee4

Please sign in to comment.