aboutsummaryrefslogtreecommitdiffstats
path: root/net/ieee802154
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-11-01 23:18:47 -0400
committerMarcel Holtmann <marcel@holtmann.org>2014-11-01 23:51:08 -0400
commit62906710182a7d079a69932a93ebd003caaa7135 (patch)
treed308dceb76345743a635c87382c669f0870285ee /net/ieee802154
parentea7053c1df41689dea0db2c49dc9d25dbe8fcf33 (diff)
ieee802154: 6lowpan: remove set of mac address
Currently the ieee802154 6lowpan interface operates on wpan interfaces only. Setting the wpan mac address over 6lowpan interface is complex and maybe we can't never do this. This patch removes the set of mac address handling in ieee802154 6lowpan interface for now. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/ieee802154')
-rw-r--r--net/ieee802154/6lowpan_rtnl.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/net/ieee802154/6lowpan_rtnl.c b/net/ieee802154/6lowpan_rtnl.c
index 519a65452d90..659f7b25ea1a 100644
--- a/net/ieee802154/6lowpan_rtnl.c
+++ b/net/ieee802154/6lowpan_rtnl.c
@@ -206,19 +206,6 @@ drop:
206 return -EINVAL; 206 return -EINVAL;
207} 207}
208 208
209static int lowpan_set_address(struct net_device *dev, void *p)
210{
211 struct sockaddr *sa = p;
212
213 if (netif_running(dev))
214 return -EBUSY;
215
216 /* TODO: validate addr */
217 memcpy(dev->dev_addr, sa->sa_data, dev->addr_len);
218
219 return 0;
220}
221
222static struct sk_buff* 209static struct sk_buff*
223lowpan_alloc_frag(struct sk_buff *skb, int size, 210lowpan_alloc_frag(struct sk_buff *skb, int size,
224 const struct ieee802154_hdr *master_hdr) 211 const struct ieee802154_hdr *master_hdr)
@@ -474,7 +461,6 @@ static int lowpan_dev_init(struct net_device *dev)
474static const struct net_device_ops lowpan_netdev_ops = { 461static const struct net_device_ops lowpan_netdev_ops = {
475 .ndo_init = lowpan_dev_init, 462 .ndo_init = lowpan_dev_init,
476 .ndo_start_xmit = lowpan_xmit, 463 .ndo_start_xmit = lowpan_xmit,
477 .ndo_set_mac_address = lowpan_set_address,
478}; 464};
479 465
480static struct ieee802154_mlme_ops lowpan_mlme = { 466static struct ieee802154_mlme_ops lowpan_mlme = {