Skip to content

Commit 96818ab

Browse files
author
Tomasz Bursztyka
committed
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: Tomasz Bursztyka <[email protected]>
1 parent f91b219 commit 96818ab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

subsys/net/l2/ieee802154/ieee802154.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,10 @@ static enum net_verdict ieee802154_recv(struct net_if *iface,
189189
return NET_DROP;
190190
}
191191

192+
if (mpdu.mhr.fs->fc.frame_type == IEEE802154_FRAME_TYPE_ACK) {
193+
return NET_DROP;
194+
}
195+
192196
if (mpdu.mhr.fs->fc.frame_type == IEEE802154_FRAME_TYPE_BEACON) {
193197
return ieee802154_handle_beacon(iface, &mpdu,
194198
net_pkt_ieee802154_lqi(pkt));

0 commit comments

Comments
 (0)