IEEE802.15.4: Update RX statistics in network driver. Update README files.

This commit is contained in:
Gregory Nutt
2017-06-25 11:18:27 -06:00
parent 58e3558c55
commit ff08f799ca
3 changed files with 17 additions and 3 deletions
+8
View File
@@ -431,6 +431,11 @@ static int macnet_rxframe(FAR struct mac802154_maccb_s *maccb,
return -EINVAL;
}
/* Increment statistics */
NETDEV_RXPACKETS(&priv->md_dev.i_dev);
NETDEV_RXIPV6(&priv->md_dev.i_dev);
/* Remove the IOB containing the frame. */
ind->frame = NULL;
@@ -1145,8 +1150,11 @@ static int macnet_req_data(FAR struct ieee802154_driver_s *netdev,
iob_free(iob);
}
NETDEV_TXERRORS(&priv->md_dev.i_dev);
return ret;
}
NETDEV_TXDONE(&priv->md_dev.i_dev);
}
return OK;