aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/cfg802154.h
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-11-17 02:20:51 -0500
committerMarcel Holtmann <marcel@holtmann.org>2014-11-17 03:49:16 -0500
commitf3ea5e44231a88eaea69a13410d1b80c19cfa1df (patch)
tree6cc6980d8ccbb0ef4b91d833d73dbbcc91ee7404 /include/net/cfg802154.h
parent133d3f31729a62908ab98d0b6562cc1a35d3dc39 (diff)
ieee802154: add new interface command
This patch adds a new nl802154 command for adding a new interface according to a wpan phy via nl802154. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/cfg802154.h')
-rw-r--r--include/net/cfg802154.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/cfg802154.h b/include/net/cfg802154.h
index 17b4fc0705b2..24c7321f3647 100644
--- a/include/net/cfg802154.h
+++ b/include/net/cfg802154.h
@@ -21,6 +21,8 @@
21#include <linux/mutex.h> 21#include <linux/mutex.h>
22#include <linux/bug.h> 22#include <linux/bug.h>
23 23
24#include <net/nl802154.h>
25
24/* According to the IEEE 802.15.4 stadard the upper most significant bits of 26/* According to the IEEE 802.15.4 stadard the upper most significant bits of
25 * the 32-bit channel bitmaps shall be used as an integer value to specify 32 27 * the 32-bit channel bitmaps shall be used as an integer value to specify 32
26 * possible channel pages. The lower 27 bits of the channel bit map shall be 28 * possible channel pages. The lower 27 bits of the channel bit map shall be
@@ -37,6 +39,9 @@ struct cfg802154_ops {
37 int type); 39 int type);
38 void (*del_virtual_intf_deprecated)(struct wpan_phy *wpan_phy, 40 void (*del_virtual_intf_deprecated)(struct wpan_phy *wpan_phy,
39 struct net_device *dev); 41 struct net_device *dev);
42 int (*add_virtual_intf)(struct wpan_phy *wpan_phy,
43 const char *name,
44 enum nl802154_iftype type);
40 int (*set_channel)(struct wpan_phy *wpan_phy, u8 page, u8 channel); 45 int (*set_channel)(struct wpan_phy *wpan_phy, u8 page, u8 channel);
41 int (*set_pan_id)(struct wpan_phy *wpan_phy, 46 int (*set_pan_id)(struct wpan_phy *wpan_phy,
42 struct wpan_dev *wpan_dev, u16 pan_id); 47 struct wpan_dev *wpan_dev, u16 pan_id);