Skip to content
Snippets Groups Projects
Commit a247d8bf authored by Joakim Nohlgård's avatar Joakim Nohlgård
Browse files

gnrc_netif_ieee802154: set Frame Pending bit sometimes

Set frame pending bit in IEEE 802.15.4 FCF when
GNRC_NETIF_HDR_FLAGS_MORE_DATA is set on the netif header on outbound
frames.
parent 29e4a1ba
Branches
No related tags found
No related merge requests found
...@@ -187,6 +187,10 @@ static int _send(gnrc_netif_t *netif, gnrc_pktsnip_t *pkt) ...@@ -187,6 +187,10 @@ static int _send(gnrc_netif_t *netif, gnrc_pktsnip_t *pkt)
return -EBADMSG; return -EBADMSG;
} }
netif_hdr = pkt->data; netif_hdr = pkt->data;
if (netif_hdr->flags & GNRC_NETIF_HDR_FLAGS_MORE_DATA) {
/* Set frame pending field */
flags |= IEEE802154_FCF_FRAME_PEND;
}
/* prepare destination address */ /* prepare destination address */
if (netif_hdr->flags & /* If any of these flags is set assume broadcast */ if (netif_hdr->flags & /* If any of these flags is set assume broadcast */
(GNRC_NETIF_HDR_FLAGS_BROADCAST | GNRC_NETIF_HDR_FLAGS_MULTICAST)) { (GNRC_NETIF_HDR_FLAGS_BROADCAST | GNRC_NETIF_HDR_FLAGS_MULTICAST)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment