diff options
author | Alexander Aring <alex.aring@gmail.com> | 2014-11-17 08:20:51 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-11-17 09:49:16 +0100 |
commit | f3ea5e44231a88eaea69a13410d1b80c19cfa1df (patch) | |
tree | 6cc6980d8ccbb0ef4b91d833d73dbbcc91ee7404 /net/ieee802154/rdev-ops.h | |
parent | mac802154: remove wpan_dev parameter in if_add (diff) | |
download | linux-f3ea5e44231a88eaea69a13410d1b80c19cfa1df.tar.xz linux-f3ea5e44231a88eaea69a13410d1b80c19cfa1df.zip |
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 'net/ieee802154/rdev-ops.h')
-rw-r--r-- | net/ieee802154/rdev-ops.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/ieee802154/rdev-ops.h b/net/ieee802154/rdev-ops.h index 578bc41e92d3..d3a4f94c5fdc 100644 --- a/net/ieee802154/rdev-ops.h +++ b/net/ieee802154/rdev-ops.h @@ -21,6 +21,13 @@ rdev_del_virtual_intf_deprecated(struct cfg802154_registered_device *rdev, } static inline int +rdev_add_virtual_intf(struct cfg802154_registered_device *rdev, char *name, + enum nl802154_iftype type) +{ + return rdev->ops->add_virtual_intf(&rdev->wpan_phy, name, type); +} + +static inline int rdev_set_channel(struct cfg802154_registered_device *rdev, u8 page, u8 channel) { return rdev->ops->set_channel(&rdev->wpan_phy, page, channel); |