3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-17 17:39:28 +01:00

netdev: Don't bother switching iftype on shutdown

This commit is contained in:
Denis Kenzior 2018-08-19 20:16:16 -05:00
parent 52e0a7ce83
commit ae223fe06c

View File

@ -616,9 +616,6 @@ static void netdev_shutdown_one(void *data, void *user_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))
rtnl_set_powered(netdev->index, false, NULL, NULL, NULL);
}