ieee802154: add support for creation/removal of logic interfaces

Add support for two more NL802154 commands: ADD_IFACE and DEL_IFACE,
thus allowing creation and removal of logic WPAN interfaces on the top
of wpan-phy.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
This commit is contained in:
Dmitry Eremin-Solenikov
2009-11-05 16:56:23 +03:00
parent 0a868b26c8
commit bb1cafb8fc
3 changed files with 162 additions and 0 deletions

View File

@ -41,6 +41,10 @@ struct wpan_phy {
struct device dev;
int idx;
struct net_device *(*add_iface)(struct wpan_phy *phy,
const char *name);
void (*del_iface)(struct wpan_phy *phy, struct net_device *dev);
char priv[0] __attribute__((__aligned__(NETDEV_ALIGN)));
};