forked from Minki/linux
4a9a816a4f
This patch removes the wpan_phy callbacks for add and del an interface on a phy. Instead we introduce deprecated cfg802154 callbacks for this. Furthermore we introduce a new netlink interface nl802154 which use different callbacks. The deprecated function is to have a backwards compatibility with the current netlink interface. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
24 lines
567 B
C
24 lines
567 B
C
#ifndef __CFG802154_RDEV_OPS
|
|
#define __CFG802154_RDEV_OPS
|
|
|
|
#include <net/cfg802154.h>
|
|
|
|
#include "core.h"
|
|
|
|
static inline struct net_device *
|
|
rdev_add_virtual_intf_deprecated(struct cfg802154_registered_device *rdev,
|
|
const char *name, int type)
|
|
{
|
|
return rdev->ops->add_virtual_intf_deprecated(&rdev->wpan_phy, name,
|
|
type);
|
|
}
|
|
|
|
static inline void
|
|
rdev_del_virtual_intf_deprecated(struct cfg802154_registered_device *rdev,
|
|
struct net_device *dev)
|
|
{
|
|
rdev->ops->del_virtual_intf_deprecated(&rdev->wpan_phy, dev);
|
|
}
|
|
|
|
#endif /* __CFG802154_RDEV_OPS */
|