netdev: fixed netdev_set_iftype

While this would issue a SET_INTERFACE to the kernel it would
not actually set netdev->type, so netdev_get_iftype would
return incorrectly.
This commit is contained in:
James Prestwood 2018-06-19 13:28:01 -07:00 committed by Denis Kenzior
parent 27e9b6c435
commit 0b5a3da2ef
1 changed files with 2 additions and 0 deletions

View File

@ -3470,6 +3470,8 @@ int netdev_set_iftype(struct netdev *netdev, enum netdev_iftype type)
return -EIO;
}
netdev->type = type;
return 0;
}