mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 19:02:34 +01:00
netdev: Don't emit events before NETDEV_WATCH_EVENT_NEW
This commit is contained in:
parent
c96f44b2e6
commit
916bde3a02
@ -4160,6 +4160,9 @@ static void netdev_newlink_notify(const struct ifinfomsg *ifi, int bytes)
|
||||
}
|
||||
}
|
||||
|
||||
if (!netdev->device) /* Did we send NETDEV_WATCH_EVENT_NEW yet? */
|
||||
return;
|
||||
|
||||
new_up = netdev_get_is_up(netdev);
|
||||
|
||||
if (old_up != new_up)
|
||||
|
Loading…
Reference in New Issue
Block a user