Skip to content

Commit

Permalink
mac802154: don't warn on unsupported frames
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Alexander Aring <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
  • Loading branch information
aristeu authored and holtmann committed Sep 19, 2016
1 parent 5ddedce commit ca1de81
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions net/mac802154/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ca1de81

Please sign in to comment.