summaryrefslogtreecommitdiff
path: root/net/mac802154
diff options
context:
space:
mode:
authorAristeu Rozanski <arozansk@redhat.com>2016-07-25 11:46:40 -0400
committerMarcel Holtmann <marcel@holtmann.org>2016-09-19 20:19:34 +0200
commitca1de81aa262dcf48354a7c55f2558205517d06e (patch)
tree1eeb93a7d91875652f0301ee3bc165cfbac3a3f4 /net/mac802154
parent5ddedce3b7331959a6da217ed3189d020090873c (diff)
downloadlinux-next-ca1de81aa262dcf48354a7c55f2558205517d06e.tar.gz
mac802154: don't warn on unsupported frames
Just because we don't support certain types of frames yet doesn't mean we have to flood the message log with warnings about "invalid" frames. Signed-off-by: Aristeu Rozanski <arozansk@redhat.com> Acked-by: Alexander Aring <aar@pengutronix.de> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/mac802154')
-rw-r--r--net/mac802154/rx.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/mac802154/rx.c b/net/mac802154/rx.c
index 446e1300383e..b978da018bf8 100644
--- a/net/mac802154/rx.c
+++ b/net/mac802154/rx.c
@@ -101,6 +101,11 @@ ieee802154_subif_frame(struct ieee802154_sub_if_data *sdata,
sdata->dev->stats.rx_bytes += skb->len;
switch (mac_cb(skb)->type) {
+ case IEEE802154_FC_TYPE_BEACON:
+ case IEEE802154_FC_TYPE_ACK:
+ case IEEE802154_FC_TYPE_MAC_CMD:
+ goto fail;
+
case IEEE802154_FC_TYPE_DATA:
return ieee802154_deliver_skb(skb);
default: