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
1 changed files with 0 additions and 3 deletions

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);
}