mac802154: don't warn on unsupported frames
authorAristeu Rozanski <arozansk@redhat.com>
Mon, 25 Jul 2016 15:46:40 +0000 (11:46 -0400)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 19 Sep 2016 18:19:34 +0000 (20:19 +0200)
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>
net/mac802154/rx.c

index 446e1300383ebf2f2976fd3d1e3421fe49deccab..b978da018bf89aa82401579161a5081192402082 100644 (file)
@@ -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: