]>
Commit | Line | Data |
---|---|---|
4a9a816a AA |
1 | #ifndef __CFG802154_RDEV_OPS |
2 | #define __CFG802154_RDEV_OPS | |
3 | ||
4 | #include <net/cfg802154.h> | |
5 | ||
6 | #include "core.h" | |
7 | ||
8 | static inline struct net_device * | |
9 | rdev_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 | ||
16 | static inline void | |
17 | rdev_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 | ||
ab0bd561 AA |
23 | static inline int |
24 | rdev_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 | ||
702bf371 AA |
30 | static inline int |
31 | rdev_set_pan_id(struct cfg802154_registered_device *rdev, | |
32 | struct wpan_dev *wpan_dev, u16 pan_id) | |
33 | { | |
34 | return rdev->ops->set_pan_id(&rdev->wpan_phy, wpan_dev, pan_id); | |
35 | } | |
36 | ||
4a9a816a | 37 | #endif /* __CFG802154_RDEV_OPS */ |