[riot-notifications] [RIOT-OS/RIOT] gnrc_lorawan : Add ADR support (#15995)

Akshai M (Augustus Diode) notifications at github.com
Mon Jul 12 18:13:31 CEST 2021


@akshaim commented on this pull request.



> @@ -251,6 +258,15 @@ size_t gnrc_lorawan_build_uplink(gnrc_lorawan_t *mac, iolist_t *payload,
     lw_hdr->addr = mac->dev_addr;
     lw_hdr->fctrl = 0;
 
+    lorawan_hdr_set_adr(lw_hdr,mac->mlme.adr);
+
+    /* Set `ADRACKReq` bit and ADR_ACK_CNT */
+    if (mac->mlme.adr) {
+        lorawan_hdr_set_adr_ack_req(lw_hdr,

Okay, makes sense to move the condition one line up.

-- 
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/15995#discussion_r668069569
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210712/67ce63d8/attachment.htm>


More information about the notifications mailing list