mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-01 23:59:51 +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:
parent
27e9b6c435
commit
0b5a3da2ef
@ -3470,6 +3470,8 @@ int netdev_set_iftype(struct netdev *netdev, enum netdev_iftype type)
|
|||||||
return -EIO;
|
return -EIO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
netdev->type = type;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user