Skip to content

Commit bd89bb6

Browse files
aristeuholtmann
authored andcommitted
mac802154: use rate limited warnings for malformed frames
Signed-off-by: Aristeu Rozanski <arozansk@redhat.com> Acked-by: Alexander Aring <aar@pengutronix.de> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
1 parent ca1de81 commit bd89bb6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎net/mac802154/rx.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ ieee802154_subif_frame(struct ieee802154_sub_if_data *sdata,
109109
case IEEE802154_FC_TYPE_DATA:
110110
return ieee802154_deliver_skb(skb);
111111
default:
112-
pr_warn("ieee802154: bad frame received (type = %d)\n",
113-
mac_cb(skb)->type);
112+
pr_warn_ratelimited("ieee802154: bad frame received "
113+
"(type = %d)\n", mac_cb(skb)->type);
114114
goto fail;
115115
}
116116

0 commit comments

Comments
 (0)