nuttx/drivers/wireless/ieee802154/xbee
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
..
Kconfig All network drivers! Change pre-processor logic that selects the high priority work queue or gives preferential treatment to the high priority work. All network logic must run on the low priority work queue! Or suffer the consequences. 2018-11-21 07:57:26 -06:00
Make.defs Merged in antmerlino/nuttx/sixlowpan-mac802154 (pull request #526) 2017-11-01 20:15:21 +00:00
xbee_ioctl.c Standardization of some function headers. 2018-03-13 09:52:27 -06:00
xbee_mac.c Merged in antmerlino/nuttx/mac802154_fcslen (pull request #983) 2019-08-10 18:05:07 +00:00
xbee_mac.h Standardization of some function headers. 2018-03-13 09:52:27 -06:00
xbee_netdev.c Merged in antmerlino/nuttx/wirelessnetdev (pull request #984) 2019-08-10 18:22:39 +00:00
xbee.c Merged in antmerlino/nuttx/xbee-getset-txpwr (pull request #747) 2018-11-01 19:05:04 +00:00
xbee.h Merged in antmerlino/nuttx/xbee-getset-txpwr (pull request #747) 2018-11-01 19:05:04 +00:00