diff options
| author | Prasun Maiti | 2023-08-17 12:17:18 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2023-08-17 15:09:19 +0000 |
| commit | 4711f74479e213ef86f8792b408b117d40148eb2 (patch) | |
| tree | 822245eec144aa0ad10edd98c5909bf8719ad61a | |
| parent | 0ff22a6a68ce942d4c9e7d58355d128dd3793b06 (diff) | |
| download | netifd-4711f74479e213ef86f8792b408b117d40148eb2.tar.gz | |
netifd: fix disabling radio via config if reconf is being used
Do not bypass down/up reconfig codepath if the radio is being disabled,
otherwise it will be left running.
Signed-off-by: Prasun Maiti <prasunmaiti87@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name> [fix commit description]
| -rw-r--r-- | wireless.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -681,7 +681,7 @@ wdev_set_config_state(struct wireless_device *wdev, enum interface_config_state return; wdev->config_update = false; - if (s == IFC_RELOAD && wdev->reconf && wdev->state == IFS_UP) { + if (!wdev->disabled && s == IFC_RELOAD && wdev->reconf && wdev->state == IFS_UP) { wireless_device_reconf(wdev); return; } |