mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 05:29:04 -04:00
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:
parent
0a868b26c8
commit
bb1cafb8fc
3 changed files with 162 additions and 0 deletions
|
|
@ -118,6 +118,8 @@ enum {
|
|||
|
||||
IEEE802154_LIST_IFACE,
|
||||
IEEE802154_LIST_PHY,
|
||||
IEEE802154_ADD_IFACE,
|
||||
IEEE802154_DEL_IFACE,
|
||||
|
||||
__IEEE802154_CMD_MAX,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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)));
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue