nuttx/drivers/wireless/ieee802154
Anthony Merlino 535db0140a Merged in antmerlino/nuttx/wirelessnetdev (pull request #984)
wireless network devices: Attach radio to d_buf before registering device to handle forwarding case.

When CONFIG_NET_IPFORWARD is enabled, and CONFIG_NET_6LOWPAN is being used, a packet that attempts to get forwarded on the 6LoWPAN interface will require that the radio's buffer be attached to d_buf. Otherwise the below exception will be hit.

~line 542 of sixlowpan_framelist.c

```
      /* Recover the reassembly buffer from the driver d_buf. */

      reass = (FAR struct sixlowpan_reassbuf_s *)radio->r_dev.d_buf;
      DEBUGASSERT(reass != NULL);
```

The underlying "radio" in this case is the mac802154_netdev.

This behavior has probably not been observed because the buffer is normally attached in the periodic txpoll worker. However, in my case, the 6LoWPAN interace was not UP yet, and therefore the worker hadn't run yet.

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-08-10 18:22:39 +00:00
..
at86rf23x Squashed commit of the following: 2019-02-27 08:41:08 -06:00
mrf24j40 Merged in antmerlino/nuttx/mac802154_fcslen (pull request #983) 2019-08-10 18:05:07 +00:00
xbee Merged in antmerlino/nuttx/wirelessnetdev (pull request #984) 2019-08-10 18:22:39 +00:00
Kconfig Merged in merlin17/nuttx/xbee (pull request #484) 2017-09-15 14:37:55 +00:00
Make.defs Merged in merlin17/nuttx/xbee (pull request #484) 2017-09-15 14:37:55 +00:00