diff options
Diffstat (limited to 'net/mac802154/monitor.c')
-rw-r--r-- | net/mac802154/monitor.c | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/net/mac802154/monitor.c b/net/mac802154/monitor.c deleted file mode 100644 index dfdedc206c6a..000000000000 --- a/net/mac802154/monitor.c +++ /dev/null | |||
@@ -1,59 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright 2007, 2008, 2009 Siemens AG | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License version 2 | ||
6 | * as published by the Free Software Foundation. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * Written by: | ||
14 | * Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | ||
15 | * Sergey Lapin <slapin@ossfans.org> | ||
16 | * Maxim Gorbachyov <maxim.gorbachev@siemens.com> | ||
17 | * Alexander Smirnov <alex.bluesman.smirnov@gmail.com> | ||
18 | */ | ||
19 | |||
20 | #include <linux/netdevice.h> | ||
21 | #include <linux/if_arp.h> | ||
22 | #include <linux/ieee802154.h> | ||
23 | |||
24 | #include <net/mac802154.h> | ||
25 | #include <net/netlink.h> | ||
26 | #include <net/cfg802154.h> | ||
27 | #include <linux/nl802154.h> | ||
28 | |||
29 | #include "ieee802154_i.h" | ||
30 | |||
31 | static const struct net_device_ops mac802154_monitor_ops = { | ||
32 | .ndo_open = mac802154_slave_open, | ||
33 | .ndo_stop = mac802154_slave_close, | ||
34 | .ndo_start_xmit = ieee802154_monitor_start_xmit, | ||
35 | }; | ||
36 | |||
37 | void mac802154_monitor_setup(struct net_device *dev) | ||
38 | { | ||
39 | struct ieee802154_sub_if_data *sdata; | ||
40 | |||
41 | dev->addr_len = 0; | ||
42 | dev->hard_header_len = 0; | ||
43 | dev->needed_tailroom = 2; /* room for FCS */ | ||
44 | dev->mtu = IEEE802154_MTU; | ||
45 | dev->tx_queue_len = 10; | ||
46 | dev->type = ARPHRD_IEEE802154_MONITOR; | ||
47 | dev->flags = IFF_NOARP | IFF_BROADCAST; | ||
48 | dev->watchdog_timeo = 0; | ||
49 | |||
50 | dev->destructor = free_netdev; | ||
51 | dev->netdev_ops = &mac802154_monitor_ops; | ||
52 | dev->ml_priv = &mac802154_mlme_reduced; | ||
53 | |||
54 | sdata = IEEE802154_DEV_TO_SUB_IF(dev); | ||
55 | sdata->type = IEEE802154_DEV_MONITOR; | ||
56 | |||
57 | sdata->chan = MAC802154_CHAN_NONE; /* not initialized */ | ||
58 | sdata->page = 0; | ||
59 | } | ||