Skip to content

Commit

Permalink
core/net/mac/frame802154: Fix typo in PAN ID compression condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Joakim Nohlgård committed Jun 13, 2016
1 parent 4fd8f67 commit 86e3a33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/net/mac/frame802154.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ frame802154_has_panid(frame802154_fcf_t *fcf, int *has_src_pan_id, int *has_dest
if(fcf->frame_version == FRAME802154_IEEE802154E_2012) {
if(!fcf->panid_compression) {
/* Compressed PAN ID == no PAN ID at all */
if(fcf->dest_addr_mode == fcf->dest_addr_mode) {
if(fcf->dest_addr_mode == fcf->src_addr_mode) {
/* No address or both addresses: include destination PAN ID */
dest_pan_id = 1;
} else if(fcf->dest_addr_mode) {
Expand Down

0 comments on commit 86e3a33

Please sign in to comment.