mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-03 17:49:24 +01:00
netdev: Reject setting powered while setting iftype
In netdev_set_powered also check that no NL80211_CMD_SET_INTERFACE is in progress because once it returned we would overwrite netdev->set_powered_cmd_id (could also add a check there but it seems more logical to just disallow Powered property changes while Mode is being changed, since we also disallow Mode changes while Powered is being changed.)
This commit is contained in:
parent
ebda2ce60f
commit
01edef9001
@ -361,7 +361,8 @@ int netdev_set_powered(struct netdev *netdev, bool powered,
|
|||||||
netdev_command_cb_t callback, void *user_data,
|
netdev_command_cb_t callback, void *user_data,
|
||||||
netdev_destroy_func_t destroy)
|
netdev_destroy_func_t destroy)
|
||||||
{
|
{
|
||||||
if (netdev->set_powered_cmd_id)
|
if (netdev->set_powered_cmd_id ||
|
||||||
|
netdev->set_interface_cmd_id)
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
|
||||||
netdev->set_powered_cmd_id =
|
netdev->set_powered_cmd_id =
|
||||||
|
Loading…
Reference in New Issue
Block a user