diff options
author | Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de> | 2014-03-14 16:24:02 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-14 22:15:26 -0400 |
commit | ae531b9475f62c5e1863508604cd6b3faf362d56 (patch) | |
tree | c719f25779f44c4241d799e44c8fc2c8c8065957 /include | |
parent | e6278d92005e9d6e374f269b4ce39c908a68ad5d (diff) |
ieee802154: use ieee802154_addr instead of *_sa variants
Change all internal uses of ieee802154_addr_sa to ieee802154_addr,
except for those instances that communicate directly with userspace.
Signed-off-by: Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/ieee802154_netdev.h | 12 | ||||
-rw-r--r-- | include/net/nl802154.h | 6 |
2 files changed, 9 insertions, 9 deletions
diff --git a/include/net/ieee802154_netdev.h b/include/net/ieee802154_netdev.h index 8e7f6903db98..827e3e33c422 100644 --- a/include/net/ieee802154_netdev.h +++ b/include/net/ieee802154_netdev.h | |||
@@ -200,11 +200,11 @@ struct ieee802154_frag_info { | |||
200 | */ | 200 | */ |
201 | struct ieee802154_mac_cb { | 201 | struct ieee802154_mac_cb { |
202 | u8 lqi; | 202 | u8 lqi; |
203 | struct ieee802154_addr_sa sa; | ||
204 | struct ieee802154_addr_sa da; | ||
205 | u8 flags; | 203 | u8 flags; |
206 | u8 seq; | 204 | u8 seq; |
207 | struct ieee802154_frag_info frag_info; | 205 | struct ieee802154_frag_info frag_info; |
206 | struct ieee802154_addr source; | ||
207 | struct ieee802154_addr dest; | ||
208 | }; | 208 | }; |
209 | 209 | ||
210 | static inline struct ieee802154_mac_cb *mac_cb(struct sk_buff *skb) | 210 | static inline struct ieee802154_mac_cb *mac_cb(struct sk_buff *skb) |
@@ -248,16 +248,16 @@ struct ieee802154_mlme_ops { | |||
248 | /* The following fields are optional (can be NULL). */ | 248 | /* The following fields are optional (can be NULL). */ |
249 | 249 | ||
250 | int (*assoc_req)(struct net_device *dev, | 250 | int (*assoc_req)(struct net_device *dev, |
251 | struct ieee802154_addr_sa *addr, | 251 | struct ieee802154_addr *addr, |
252 | u8 channel, u8 page, u8 cap); | 252 | u8 channel, u8 page, u8 cap); |
253 | int (*assoc_resp)(struct net_device *dev, | 253 | int (*assoc_resp)(struct net_device *dev, |
254 | struct ieee802154_addr_sa *addr, | 254 | struct ieee802154_addr *addr, |
255 | __le16 short_addr, u8 status); | 255 | __le16 short_addr, u8 status); |
256 | int (*disassoc_req)(struct net_device *dev, | 256 | int (*disassoc_req)(struct net_device *dev, |
257 | struct ieee802154_addr_sa *addr, | 257 | struct ieee802154_addr *addr, |
258 | u8 reason); | 258 | u8 reason); |
259 | int (*start_req)(struct net_device *dev, | 259 | int (*start_req)(struct net_device *dev, |
260 | struct ieee802154_addr_sa *addr, | 260 | struct ieee802154_addr *addr, |
261 | u8 channel, u8 page, u8 bcn_ord, u8 sf_ord, | 261 | u8 channel, u8 page, u8 bcn_ord, u8 sf_ord, |
262 | u8 pan_coord, u8 blx, u8 coord_realign); | 262 | u8 pan_coord, u8 blx, u8 coord_realign); |
263 | int (*scan_req)(struct net_device *dev, | 263 | int (*scan_req)(struct net_device *dev, |
diff --git a/include/net/nl802154.h b/include/net/nl802154.h index 3121ed047c1e..b23548e04098 100644 --- a/include/net/nl802154.h +++ b/include/net/nl802154.h | |||
@@ -22,7 +22,7 @@ | |||
22 | #define IEEE802154_NL_H | 22 | #define IEEE802154_NL_H |
23 | 23 | ||
24 | struct net_device; | 24 | struct net_device; |
25 | struct ieee802154_addr_sa; | 25 | struct ieee802154_addr; |
26 | 26 | ||
27 | /** | 27 | /** |
28 | * ieee802154_nl_assoc_indic - Notify userland of an association request. | 28 | * ieee802154_nl_assoc_indic - Notify userland of an association request. |
@@ -37,7 +37,7 @@ struct ieee802154_addr_sa; | |||
37 | * Note: This is in section 7.3.1 of the IEEE 802.15.4-2006 document. | 37 | * Note: This is in section 7.3.1 of the IEEE 802.15.4-2006 document. |
38 | */ | 38 | */ |
39 | int ieee802154_nl_assoc_indic(struct net_device *dev, | 39 | int ieee802154_nl_assoc_indic(struct net_device *dev, |
40 | struct ieee802154_addr_sa *addr, u8 cap); | 40 | struct ieee802154_addr *addr, u8 cap); |
41 | 41 | ||
42 | /** | 42 | /** |
43 | * ieee802154_nl_assoc_confirm - Notify userland of association. | 43 | * ieee802154_nl_assoc_confirm - Notify userland of association. |
@@ -65,7 +65,7 @@ int ieee802154_nl_assoc_confirm(struct net_device *dev, | |||
65 | * Note: This is in section 7.3.3 of the IEEE 802.15.4 document. | 65 | * Note: This is in section 7.3.3 of the IEEE 802.15.4 document. |
66 | */ | 66 | */ |
67 | int ieee802154_nl_disassoc_indic(struct net_device *dev, | 67 | int ieee802154_nl_disassoc_indic(struct net_device *dev, |
68 | struct ieee802154_addr_sa *addr, u8 reason); | 68 | struct ieee802154_addr *addr, u8 reason); |
69 | 69 | ||
70 | /** | 70 | /** |
71 | * ieee802154_nl_disassoc_confirm - Notify userland of disassociation | 71 | * ieee802154_nl_disassoc_confirm - Notify userland of disassociation |