diff options
author | Loic Poulain <[email protected]> | 2021-07-22 20:21:05 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2021-07-23 17:16:19 +0100 |
commit | 8cc236db1a91d0c91651595ba75942a583008455 (patch) | |
tree | 20e24be97de599a6b186391c2d8c58088866f199 | |
parent | 3bdba2c70a352d936e18cbf2d2a3c8df31fccf47 (diff) |
wwan: core: Fix missing RTM_NEWLINK event for default link
A wwan link created via the wwan_create_default_link procedure is
never notified to the user (RTM_NEWLINK), causing issues with user
tools relying on such event to track network links (NetworkManager).
This is because the procedure misses a call to rtnl_configure_link(),
which sets the link as initialized and notifies the new link (cf
proper usage in __rtnl_newlink()).
Cc: [email protected]
Fixes: ca374290aaad ("wwan: core: support default netdev creation")
Suggested-by: Sergey Ryazanov <[email protected]>
Signed-off-by: Loic Poulain <[email protected]>
Acked-by: Sergey Ryazanov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
-rw-r--r-- | drivers/net/wwan/wwan_core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wwan/wwan_core.c b/drivers/net/wwan/wwan_core.c index 3e16c318e705..674a81d79db3 100644 --- a/drivers/net/wwan/wwan_core.c +++ b/drivers/net/wwan/wwan_core.c @@ -984,6 +984,8 @@ static void wwan_create_default_link(struct wwan_device *wwandev, goto unlock; } + rtnl_configure_link(dev, NULL); /* Link initialized, notify new link */ + unlock: rtnl_unlock(); |