提交 d10270ce 编写于 作者: V Varka Bhadram 提交者: Marcel Holtmann

mac802154: fix ieee802154_rx handling

Instead of passing ieee802154_hw pointer to ieee802154_rx,
we can directly pass the ieee802154_local pointer.
Signed-off-by: NVarka Bhadram <varkabhadram@gmail.com>
Acked-by: NAlexander Aring <alex.aring@gmail.com>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
上级 729a8989
...@@ -124,7 +124,7 @@ ieee802154_sdata_running(struct ieee802154_sub_if_data *sdata) ...@@ -124,7 +124,7 @@ ieee802154_sdata_running(struct ieee802154_sub_if_data *sdata)
extern struct ieee802154_mlme_ops mac802154_mlme_wpan; extern struct ieee802154_mlme_ops mac802154_mlme_wpan;
void ieee802154_rx(struct ieee802154_hw *hw, struct sk_buff *skb); void ieee802154_rx(struct ieee802154_local *local, struct sk_buff *skb);
netdev_tx_t netdev_tx_t
ieee802154_monitor_start_xmit(struct sk_buff *skb, struct net_device *dev); ieee802154_monitor_start_xmit(struct sk_buff *skb, struct net_device *dev);
netdev_tx_t netdev_tx_t
......
...@@ -40,7 +40,7 @@ static void ieee802154_tasklet_handler(unsigned long data) ...@@ -40,7 +40,7 @@ static void ieee802154_tasklet_handler(unsigned long data)
* netstack. * netstack.
*/ */
skb->pkt_type = 0; skb->pkt_type = 0;
ieee802154_rx(&local->hw, skb); ieee802154_rx(local, skb);
break; break;
default: default:
WARN(1, "mac802154: Packet is of unknown type %d\n", WARN(1, "mac802154: Packet is of unknown type %d\n",
......
...@@ -246,9 +246,8 @@ ieee802154_monitors_rx(struct ieee802154_local *local, struct sk_buff *skb) ...@@ -246,9 +246,8 @@ ieee802154_monitors_rx(struct ieee802154_local *local, struct sk_buff *skb)
} }
} }
void ieee802154_rx(struct ieee802154_hw *hw, struct sk_buff *skb) void ieee802154_rx(struct ieee802154_local *local, struct sk_buff *skb)
{ {
struct ieee802154_local *local = hw_to_local(hw);
u16 crc; u16 crc;
WARN_ON_ONCE(softirq_count() == 0); WARN_ON_ONCE(softirq_count() == 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册