netdev: Add new iftype change event

This commit is contained in:
Denis Kenzior 2021-04-16 16:56:13 -05:00
parent 0611632d7b
commit 23249c85c7
2 changed files with 4 additions and 0 deletions

View File

@ -4939,6 +4939,9 @@ static void netdev_set_interface_event(struct l_genl_msg *msg,
frame_watch_wdev_remove(wdev_id);
netdev_setup_interface(netdev);
WATCHLIST_NOTIFY(&netdev_watches, netdev_watch_func_t,
netdev, NETDEV_WATCH_EVENT_IFTYPE_CHANGE);
}
static void netdev_config_notify(struct l_genl_msg *msg, void *user_data)

View File

@ -57,6 +57,7 @@ enum netdev_watch_event {
NETDEV_WATCH_EVENT_DOWN,
NETDEV_WATCH_EVENT_NAME_CHANGE,
NETDEV_WATCH_EVENT_ADDRESS_CHANGE,
NETDEV_WATCH_EVENT_IFTYPE_CHANGE,
};
/* Mirror definitions from nl80211.h to make conversions simpler */