[riot-notifications] [RIOT-OS/RIOT] pkg/openwsn: re-integrate the network stack as a package (#13824)

Francisco notifications at github.com
Tue May 26 10:42:48 CEST 2020


@fjmolinas commented on this pull request.



> +    enable = NETOPT_DISABLE;
+    /* Enable basic mode, no AUTOACK. no CSMA , no frame filtering */
+    netdev->driver->set(netdev, NETOPT_AUTOACK, &(enable), sizeof(enable));
+    enable = NETOPT_DISABLE;
+    netdev->driver->set(netdev, NETOPT_CSMA, &(enable), sizeof(enable));
+    enable = NETOPT_ENABLE;
+    netdev->driver->set(netdev, NETOPT_RAWMODE, &(enable), sizeof(enable));
+    uint8_t retrans = 0;
+    /* MAC layer will handle retransmissions */
+    netdev->driver->set(netdev, NETOPT_RETRANS, &(retrans), sizeof(uint8_t));
+    /* Enable TX with preloading */
+    enable = NETOPT_ENABLE;
+    netdev->driver->set(netdev, NETOPT_PRELOADING, &(enable), sizeof(enable));
+    /* Set default PANID */
+    uint16_t panid = OPENWSN_PANID;
+    netdev->driver->set(netdev, NETOPT_NID, &(panid), sizeof(uint16_t));

removed

-- 
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/13824#discussion_r430250502
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200526/3f64e50e/attachment.htm>


More information about the notifications mailing list