summaryrefslogtreecommitdiff
path: root/net/mac802154/rx.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac802154/rx.c')
-rw-r--r--net/mac802154/rx.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/net/mac802154/rx.c b/net/mac802154/rx.c
index 04f3d61719ec..246a60e8f76a 100644
--- a/net/mac802154/rx.c
+++ b/net/mac802154/rx.c
@@ -242,11 +242,12 @@ mac802154_monitors_rx(struct ieee802154_local *local, struct sk_buff *skb)
rcu_read_unlock();
}
-static void
-mac802154_subif_rx(struct ieee802154_hw *hw, struct sk_buff *skb)
+void ieee802154_rx(struct ieee802154_hw *hw, struct sk_buff *skb)
{
struct ieee802154_local *local = hw_to_local(hw);
+ WARN_ON_ONCE(softirq_count() == 0);
+
skb->protocol = htons(ETH_P_IEEE802154);
skb_reset_mac_header(skb);
@@ -273,13 +274,6 @@ mac802154_subif_rx(struct ieee802154_hw *hw, struct sk_buff *skb)
fail:
kfree_skb(skb);
}
-
-void ieee802154_rx(struct ieee802154_hw *hw, struct sk_buff *skb)
-{
- WARN_ON_ONCE(softirq_count() == 0);
-
- mac802154_subif_rx(hw, skb);
-}
EXPORT_SYMBOL(ieee802154_rx);
void