3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-26 02:19:26 +01:00

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

View File

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