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:
parent
4ca8ca9b1c
commit
c8f8527d55
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue