net: ieee802154: ACK reply needs to set all FCF attributes.

That bug never got caught because the buffer in unit test is always
clean and fully initialized to 0, and that part of the code being
tested is never used in real as the ACK reply is directly made by the
chip.

Change-Id: I88c4dd3767b4addf2250165b94f49fae29d322ea
Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
Tomasz Bursztyka 2016-12-14 12:52:59 +01:00 committed by Johan Hedberg
commit c8f8527d55

View file

@ -708,6 +708,9 @@ bool ieee802154_create_ack_frame(struct net_if *iface,
fs = generate_fcf_grounds(&p_buf, 0);
fs->fc.dst_addr_mode = 0;
fs->fc.src_addr_mode = 0;
fs->fc.frame_type = IEEE802154_FRAME_TYPE_ACK;
fs->sequence = seq;