Clicker2-stm32: Allow both IEEE 802.15.4 MAC character and network devices to be registered.

This commit is contained in:
Gregory Nutt 2017-06-16 15:40:00 -06:00
parent 0b652d0451
commit 1f42ab7b7d

View File

@ -255,7 +255,7 @@ static int stm32_mrf24j40_devsetup(FAR struct stm32_priv_s *priv)
return -ENODEV;
}
#if defined(CONFIG_IEEE802154_NETDEV)
#ifdef CONFIG_IEEE802154_NETDEV
/* Use the IEEE802.15.4 MAC interface instance to create a 6loWPAN
* network interface by wrapping the MAC intrface instance in a
* network device driver via mac802154dev_register().
@ -268,7 +268,9 @@ static int stm32_mrf24j40_devsetup(FAR struct stm32_priv_s *priv)
0, ret);
return ret;
}
#elif defined(CONFIG_IEEE802154_MAC_DEV)
#endif
#ifdef CONFIG_IEEE802154_MAC_DEV
/* If want to call these APIs from userspace, you have to wrap the MAC
* interface in a character device viamac802154dev_register().
*/