blob: 8a3b0eb4e02696f0068ed97f23e399987738c1e2 [file] [log] [blame]
Alexander Aring4a9a8162014-11-02 04:18:38 +01001#ifndef __CFG802154_RDEV_OPS
2#define __CFG802154_RDEV_OPS
3
4#include <net/cfg802154.h>
5
6#include "core.h"
7
8static inline struct net_device *
9rdev_add_virtual_intf_deprecated(struct cfg802154_registered_device *rdev,
10 const char *name, int type)
11{
12 return rdev->ops->add_virtual_intf_deprecated(&rdev->wpan_phy, name,
13 type);
14}
15
16static inline void
17rdev_del_virtual_intf_deprecated(struct cfg802154_registered_device *rdev,
18 struct net_device *dev)
19{
20 rdev->ops->del_virtual_intf_deprecated(&rdev->wpan_phy, dev);
21}
22
Alexander Aringab0bd562014-11-12 03:36:55 +010023static inline int
24rdev_set_channel(struct cfg802154_registered_device *rdev, const u8 page,
25 const u8 channel)
26{
27 return rdev->ops->set_channel(&rdev->wpan_phy, page, channel);
28}
29
Alexander Aring4a9a8162014-11-02 04:18:38 +010030#endif /* __CFG802154_RDEV_OPS */