framer-802154: compress PANID by default

This commit is contained in:
Simon Duquennoy 2017-07-14 16:10:03 +02:00 committed by Yasuyuki Tanaka
parent e9951e9341
commit 2817b9212a
1 changed files with 2 additions and 4 deletions

View File

@ -148,10 +148,8 @@ framer_802154_setup_params(packetbuf_attr_t (*get_attr)(uint8_t type),
params->fcf.ack_required = get_attr(PACKETBUF_ATTR_MAC_ACK);
params->fcf.sequence_number_suppression = FRAME802154_SUPPR_SEQNO;
}
/* We do not compress PAN ID in outgoing frames, i.e. include one PAN ID (dest by default)
* There is one exception, seemingly a typo in Table 2a: rows 2 and 3: when there is no
* source nor destination address, we have dest PAN ID iff compression is *set*. */
params->fcf.panid_compression = 0;
/* Compress PAN ID in outgoing frames by default */
params->fcf.panid_compression = 1;
/* Set IE Present bit */
params->fcf.ie_list_present = get_attr(PACKETBUF_ATTR_MAC_METADATA);