diff mbox

[2/3] mac802154: use rate limited warnings for malformed frames

Message ID 1469207896-26481-2-git-send-email-arozansk@redhat.com (mailing list archive)
State Superseded
Headers show

Commit Message

'arozansk@redhat.com' July 22, 2016, 5:18 p.m. UTC
Signed-off-by: Aristeu Rozanski <arozansk@redhat.com>
---
 net/mac802154/rx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Alexander Aring July 23, 2016, 12:48 p.m. UTC | #1
Hi,

On 07/22/2016 07:18 PM, Aristeu Rozanski wrote:
> Signed-off-by: Aristeu Rozanski <arozansk@redhat.com>

Acked-by: Alexander Aring <aar@pengutronix.de>

- Alex
--
To unsubscribe from this list: send the line "unsubscribe linux-wpan" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Marcel Holtmann July 24, 2016, 4:45 p.m. UTC | #2
Hi Aristeu,

> Signed-off-by: Aristeu Rozanski <arozansk@redhat.com>
> ---
> net/mac802154/rx.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)

the patch does not apply to bluetooth-next tree.

Regards

Marcel

--
To unsubscribe from this list: send the line "unsubscribe linux-wpan" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/net/mac802154/rx.c b/net/mac802154/rx.c
index d388bf2..11dac04 100644
--- a/net/mac802154/rx.c
+++ b/net/mac802154/rx.c
@@ -111,8 +111,8 @@  ieee802154_subif_frame(struct ieee802154_sub_if_data *sdata,
 		return ieee802154_deliver_skb(skb);
 
 	default:
-		pr_warn("ieee802154: bad frame received (type = %d)\n",
-			mac_cb(skb)->type);
+		pr_warn_ratelimited("ieee802154: bad frame received "
+				    "(type = %d)\n", mac_cb(skb)->type);
 		sdata->dev->stats.rx_frame_errors++;
 		goto fail;
 	}