From a5d73e42cdcc1ccb916bd728c15550a9dcb2f756 Mon Sep 17 00:00:00 2001 From: Anthony Merlino Date: Wed, 19 Apr 2017 18:15:09 -0400 Subject: [PATCH] wireless/ieee802154: Fixes radio callback arguments --- drivers/wireless/ieee802154/mrf24j40.c | 4 ++-- include/nuttx/wireless/ieee802154/ieee802154_radio.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/wireless/ieee802154/mrf24j40.c b/drivers/wireless/ieee802154/mrf24j40.c index bd773e8aaa..fe34ab1259 100644 --- a/drivers/wireless/ieee802154/mrf24j40.c +++ b/drivers/wireless/ieee802154/mrf24j40.c @@ -1520,7 +1520,7 @@ static void mrf24j40_irqwork_txnorm(FAR struct mrf24j40_radio_s *dev) /* Inform the next layer of the transmission success/failure */ - dev->radiocb->txdone_csma(dev->radiocb, dev->csma_desc.pub); + dev->radiocb->txdone_csma(dev->radiocb, &dev->csma_desc.pub); /* We are now done with the transaction */ @@ -1566,7 +1566,7 @@ static void mrf24j40_irqwork_txgts(FAR struct mrf24j40_radio_s *dev, /* Inform the next layer of the transmission success/failure */ - dev->radiocb->txdone_gts(dev->radiocb, dev->gts_desc[gts].pub); + dev->radiocb->txdone_gts(dev->radiocb, &dev->gts_desc[gts].pub); /* We are now done with the transaction */ diff --git a/include/nuttx/wireless/ieee802154/ieee802154_radio.h b/include/nuttx/wireless/ieee802154/ieee802154_radio.h index af1281e36a..3dcde47e83 100644 --- a/include/nuttx/wireless/ieee802154/ieee802154_radio.h +++ b/include/nuttx/wireless/ieee802154/ieee802154_radio.h @@ -175,9 +175,9 @@ struct ieee802154_radiocb_s CODE int (*poll_gts) (FAR struct ieee802154_radiocb_s *radiocb, FAR struct ieee802154_txdesc_s *tx_desc, FAR uint8_t *buf); CODE int (*txdone_csma) (FAR struct ieee802154_radiocb_s *radiocb, - FAR struct ieee802154_txdesc_s tx_desc); + FAR const struct ieee802154_txdesc_s *tx_desc); CODE int (*txdone_gts) (FAR struct ieee802154_radiocb_s *radiocb, - FAR struct ieee802154_txdesc_s tx_desc); + FAR const struct ieee802154_txdesc_s *tx_desc); }; struct ieee802154_radio_s; /* Forward reference */