mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-21 02:14:07 +01:00
netdev: Don't bother switching iftype on shutdown
This commit is contained in:
parent
52e0a7ce83
commit
ae223fe06c
@ -616,9 +616,6 @@ static void netdev_shutdown_one(void *data, void *user_data)
|
|||||||
{
|
{
|
||||||
struct netdev *netdev = data;
|
struct netdev *netdev = data;
|
||||||
|
|
||||||
if (netdev_get_iftype(netdev) == NETDEV_IFTYPE_AP)
|
|
||||||
netdev_set_iftype(netdev, NETDEV_IFTYPE_STATION);
|
|
||||||
|
|
||||||
if (netdev_get_is_up(netdev))
|
if (netdev_get_is_up(netdev))
|
||||||
rtnl_set_powered(netdev->index, false, NULL, NULL, NULL);
|
rtnl_set_powered(netdev->index, false, NULL, NULL, NULL);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user