rdev-ops.h 567 B

1234567891011121314151617181920212223
  1. #ifndef __CFG802154_RDEV_OPS
  2. #define __CFG802154_RDEV_OPS
  3. #include <net/cfg802154.h>
  4. #include "core.h"
  5. static inline struct net_device *
  6. rdev_add_virtual_intf_deprecated(struct cfg802154_registered_device *rdev,
  7. const char *name, int type)
  8. {
  9. return rdev->ops->add_virtual_intf_deprecated(&rdev->wpan_phy, name,
  10. type);
  11. }
  12. static inline void
  13. rdev_del_virtual_intf_deprecated(struct cfg802154_registered_device *rdev,
  14. struct net_device *dev)
  15. {
  16. rdev->ops->del_virtual_intf_deprecated(&rdev->wpan_phy, dev);
  17. }
  18. #endif /* __CFG802154_RDEV_OPS */