[riot-notifications] [RIOT-OS/RIOT] ieee802154/submac: fix initialization code (#16533)

José Alamos notifications at github.com
Mon Jul 12 16:42:49 CEST 2021


@jia200x commented on this pull request.



> @@ -291,8 +291,28 @@ static int _init(netdev_t *netdev)
         (netdev_ieee802154_submac_t *)netdev;
     ieee802154_submac_t *submac = &netdev_submac->submac;
     netdev_ieee802154_t *netdev_ieee802154 = (netdev_ieee802154_t *)netdev;
-    ieee802154_submac_init(submac, (network_uint16_t*) netdev_ieee802154->short_addr, (eui64_t*) netdev_ieee802154->long_addr);
+    netdev_ieee802154_setup(netdev_ieee802154);
+
+    int res = ieee802154_submac_init(submac, (network_uint16_t*) netdev_ieee802154->short_addr, (eui64_t*) netdev_ieee802154->long_addr);

done!

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16533#discussion_r667993761
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210712/a6c52c94/attachment.htm>


More information about the notifications mailing list