diff options
author | Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de> | 2014-03-14 16:23:57 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-14 22:15:25 -0400 |
commit | 376b7bd3558eaf12d3e5c24aa71d0c162d2701fd (patch) | |
tree | 6d73521c4d4eb2d0a41cd848eb311670c7722e14 /drivers/net/ieee802154 | |
parent | 177943260a6088bec51fc6c04643d84e43bef423 (diff) |
ieee802154: rename struct ieee802154_addr to *_sa
The struct as currently defined uses host byte order for some fields,
and most big endian/EUI display byte order for other fields. Inside the
stack, endianness should ideally match network byte order where possible
to minimize the number of byteswaps done in critical paths, but this
patch does not address this; it is only preparatory.
Signed-off-by: Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ieee802154')
-rw-r--r-- | drivers/net/ieee802154/fakehard.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/ieee802154/fakehard.c b/drivers/net/ieee802154/fakehard.c index bf0d55e2dd63..06a400f10565 100644 --- a/drivers/net/ieee802154/fakehard.c +++ b/drivers/net/ieee802154/fakehard.c | |||
@@ -119,7 +119,7 @@ static u8 fake_get_dsn(const struct net_device *dev) | |||
119 | * 802.15.4-2006 document. | 119 | * 802.15.4-2006 document. |
120 | */ | 120 | */ |
121 | static int fake_assoc_req(struct net_device *dev, | 121 | static int fake_assoc_req(struct net_device *dev, |
122 | struct ieee802154_addr *addr, u8 channel, u8 page, u8 cap) | 122 | struct ieee802154_addr_sa *addr, u8 channel, u8 page, u8 cap) |
123 | { | 123 | { |
124 | struct wpan_phy *phy = fake_to_phy(dev); | 124 | struct wpan_phy *phy = fake_to_phy(dev); |
125 | 125 | ||
@@ -149,7 +149,7 @@ static int fake_assoc_req(struct net_device *dev, | |||
149 | * 802.15.4-2006 document. | 149 | * 802.15.4-2006 document. |
150 | */ | 150 | */ |
151 | static int fake_assoc_resp(struct net_device *dev, | 151 | static int fake_assoc_resp(struct net_device *dev, |
152 | struct ieee802154_addr *addr, u16 short_addr, u8 status) | 152 | struct ieee802154_addr_sa *addr, u16 short_addr, u8 status) |
153 | { | 153 | { |
154 | return 0; | 154 | return 0; |
155 | } | 155 | } |
@@ -167,7 +167,7 @@ static int fake_assoc_resp(struct net_device *dev, | |||
167 | * document, with the reason described in 7.3.3.2. | 167 | * document, with the reason described in 7.3.3.2. |
168 | */ | 168 | */ |
169 | static int fake_disassoc_req(struct net_device *dev, | 169 | static int fake_disassoc_req(struct net_device *dev, |
170 | struct ieee802154_addr *addr, u8 reason) | 170 | struct ieee802154_addr_sa *addr, u8 reason) |
171 | { | 171 | { |
172 | return ieee802154_nl_disassoc_confirm(dev, IEEE802154_SUCCESS); | 172 | return ieee802154_nl_disassoc_confirm(dev, IEEE802154_SUCCESS); |
173 | } | 173 | } |
@@ -191,10 +191,10 @@ static int fake_disassoc_req(struct net_device *dev, | |||
191 | * Note: This is in section 7.5.2.3 of the IEEE 802.15.4-2006 | 191 | * Note: This is in section 7.5.2.3 of the IEEE 802.15.4-2006 |
192 | * document, with 7.3.8 describing coordinator realignment. | 192 | * document, with 7.3.8 describing coordinator realignment. |
193 | */ | 193 | */ |
194 | static int fake_start_req(struct net_device *dev, struct ieee802154_addr *addr, | 194 | static int fake_start_req(struct net_device *dev, |
195 | u8 channel, u8 page, | 195 | struct ieee802154_addr_sa *addr, u8 channel, u8 page, |
196 | u8 bcn_ord, u8 sf_ord, u8 pan_coord, u8 blx, | 196 | u8 bcn_ord, u8 sf_ord, u8 pan_coord, u8 blx, |
197 | u8 coord_realign) | 197 | u8 coord_realign) |
198 | { | 198 | { |
199 | struct wpan_phy *phy = fake_to_phy(dev); | 199 | struct wpan_phy *phy = fake_to_phy(dev); |
200 | 200 | ||