6loWPAN: Add some checks for the case where there are multiple network devices and multiple link layer protocols.

This commit is contained in:
Gregory Nutt 2017-04-15 08:53:42 -06:00
parent 0652cbfd12
commit bdd66ea6c7

View File

@ -161,7 +161,24 @@ static uint16_t send_interrupt(FAR struct net_driver_s *dev,
ninfo("flags: %04x: %d\n", flags);
/* Check if the IEEE802.15.4 went down */
#ifdef CONFIG_NET_MULTILINK
/* Verify that this is an IEEE802.15.4 network driver. */
if (dev->d_lltype != NET_LL_IEEE802154)
{
return flags;
}
#endif
#ifdef CONFIG_NET_MULTINIC
/* REVISIT: Verify that this is the correct IEEE802.15.4 network driver to
* route the outgoing frame(s). Chances are that there is only one
* IEEE802.15.4 network driver
*/
#endif
/* Check if the IEEE802.15.4 network driver went down */
if ((flags & NETDEV_DOWN) != 0)
{