mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 18:59:22 +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_destroy_func_t destroy)
|
||||
{
|
||||
if (netdev->set_powered_cmd_id)
|
||||
if (netdev->set_powered_cmd_id ||
|
||||
netdev->set_interface_cmd_id)
|
||||
return -EBUSY;
|
||||
|
||||
netdev->set_powered_cmd_id =
|
||||
|
Loading…
Reference in New Issue
Block a user