diff options
author | Alexander Aring <alex.aring@gmail.com> | 2014-11-17 08:20:53 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-11-17 09:49:17 +0100 |
commit | b821ecd4c8a0b3b1fc1bdd191bb7d555d818cafe (patch) | |
tree | c8f3ac6ef58c923437e200b7d96b6c7987576dd7 /net/ieee802154/rdev-ops.h | |
parent | ieee802154: setting extended address while iface add (diff) | |
download | linux-b821ecd4c8a0b3b1fc1bdd191bb7d555d818cafe.tar.xz linux-b821ecd4c8a0b3b1fc1bdd191bb7d555d818cafe.zip |
ieee802154: add del interface command
This patch adds support for deleting a wpan interface 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 06e97542dafb..40ffbc0d8b85 100644 --- a/net/ieee802154/rdev-ops.h +++ b/net/ieee802154/rdev-ops.h @@ -29,6 +29,13 @@ rdev_add_virtual_intf(struct cfg802154_registered_device *rdev, char *name, } static inline int +rdev_del_virtual_intf(struct cfg802154_registered_device *rdev, + struct wpan_dev *wpan_dev) +{ + return rdev->ops->del_virtual_intf(&rdev->wpan_phy, wpan_dev); +} + +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); |