diff options
author | Alexander Aring <alex.aring@gmail.com> | 2014-10-25 11:16:35 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-10-25 15:55:37 -0400 |
commit | a5e1ec538f54c4cb8ec9ce30867cfbab57225280 (patch) | |
tree | c00e77229c84408c9a141da22c738e8976f5ef3d /net/mac802154/rx.c | |
parent | 5a50439775853a8d565115edb63a5ab4bb780479 (diff) |
mac802154: rename mac802154_priv to ieee802154_local
This patch rename the mac802154_priv to ieee802154_local. The
mac802154_priv structure is like ieee80211_local and so we name it
ieee802154_local.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/mac802154/rx.c')
-rw-r--r-- | net/mac802154/rx.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/mac802154/rx.c b/net/mac802154/rx.c index 62b5c7dfe7f3..dc01817a92c5 100644 --- a/net/mac802154/rx.c +++ b/net/mac802154/rx.c | |||
@@ -49,13 +49,13 @@ struct rx_work { | |||
49 | static void | 49 | static void |
50 | mac802154_subif_rx(struct ieee802154_hw *hw, struct sk_buff *skb, u8 lqi) | 50 | mac802154_subif_rx(struct ieee802154_hw *hw, struct sk_buff *skb, u8 lqi) |
51 | { | 51 | { |
52 | struct mac802154_priv *priv = mac802154_to_priv(hw); | 52 | struct ieee802154_local *local = mac802154_to_priv(hw); |
53 | 53 | ||
54 | mac_cb(skb)->lqi = lqi; | 54 | mac_cb(skb)->lqi = lqi; |
55 | skb->protocol = htons(ETH_P_IEEE802154); | 55 | skb->protocol = htons(ETH_P_IEEE802154); |
56 | skb_reset_mac_header(skb); | 56 | skb_reset_mac_header(skb); |
57 | 57 | ||
58 | if (!(priv->hw.flags & IEEE802154_HW_OMIT_CKSUM)) { | 58 | if (!(local->hw.flags & IEEE802154_HW_OMIT_CKSUM)) { |
59 | u16 crc; | 59 | u16 crc; |
60 | 60 | ||
61 | if (skb->len < 2) { | 61 | if (skb->len < 2) { |
@@ -70,8 +70,8 @@ mac802154_subif_rx(struct ieee802154_hw *hw, struct sk_buff *skb, u8 lqi) | |||
70 | skb_trim(skb, skb->len - 2); /* CRC */ | 70 | skb_trim(skb, skb->len - 2); /* CRC */ |
71 | } | 71 | } |
72 | 72 | ||
73 | mac802154_monitors_rx(priv, skb); | 73 | mac802154_monitors_rx(local, skb); |
74 | mac802154_wpans_rx(priv, skb); | 74 | mac802154_wpans_rx(local, skb); |
75 | 75 | ||
76 | return; | 76 | return; |
77 | 77 | ||
@@ -90,7 +90,7 @@ static void mac802154_rx_worker(struct work_struct *work) | |||
90 | void | 90 | void |
91 | ieee802154_rx_irqsafe(struct ieee802154_hw *hw, struct sk_buff *skb, u8 lqi) | 91 | ieee802154_rx_irqsafe(struct ieee802154_hw *hw, struct sk_buff *skb, u8 lqi) |
92 | { | 92 | { |
93 | struct mac802154_priv *priv = mac802154_to_priv(hw); | 93 | struct ieee802154_local *local = mac802154_to_priv(hw); |
94 | struct rx_work *work; | 94 | struct rx_work *work; |
95 | 95 | ||
96 | if (!skb) | 96 | if (!skb) |
@@ -105,6 +105,6 @@ ieee802154_rx_irqsafe(struct ieee802154_hw *hw, struct sk_buff *skb, u8 lqi) | |||
105 | work->hw = hw; | 105 | work->hw = hw; |
106 | work->lqi = lqi; | 106 | work->lqi = lqi; |
107 | 107 | ||
108 | queue_work(priv->dev_workqueue, &work->work); | 108 | queue_work(local->dev_workqueue, &work->work); |
109 | } | 109 | } |
110 | EXPORT_SYMBOL(ieee802154_rx_irqsafe); | 110 | EXPORT_SYMBOL(ieee802154_rx_irqsafe); |