]> git.baikalelectronics.ru Git - kernel.git/commit
wwan: core: Fix missing RTM_NEWLINK event for default link
authorLoic Poulain <loic.poulain@linaro.org>
Thu, 22 Jul 2021 18:21:05 +0000 (20:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Jul 2021 16:16:19 +0000 (17:16 +0100)
commitb068cf615b7da8ba904a1f794ec942b154372bae
tree20e24be97de599a6b186391c2d8c58088866f199
parent014053ec9e65da4c5198922189a59e913ddf4f42
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: stable@vger.kernel.org
Fixes: 51afa7910c1d ("wwan: core: support default netdev creation")
Suggested-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Acked-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wwan/wwan_core.c