Commit d14ba3c1 authored by Tomasz Bursztyka's avatar Tomasz Bursztyka Committed by Anas Nashif
Browse files

net/ieee802154: Make sure L2 drop any ACK frames

Though ACK frames are not meant to reach L2 (drivers must ensure this
never happens), let's "re-enforce" the L2 by dropping them.

Signed-off-by: default avatarTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
parent fab3f949
Loading
Loading
Loading
Loading
+4 −0
Changes for subsys/net/l2/ieee802154/ieee802154.c: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -189,6 +189,10 @@ static enum net_verdict ieee802154_recv(struct net_if *iface,
		return NET_DROP;
	}

	if (mpdu.mhr.fs->fc.frame_type == IEEE802154_FRAME_TYPE_ACK) {
		return NET_DROP;
	}

	if (mpdu.mhr.fs->fc.frame_type == IEEE802154_FRAME_TYPE_BEACON) {
		return ieee802154_handle_beacon(iface, &mpdu,
						net_pkt_ieee802154_lqi(pkt));