From: Prasun Maiti Date: Thu, 17 Aug 2023 12:17:18 +0000 (+0530) Subject: netifd: fix disabling radio via config if reconf is being used X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4711f74479e213ef86f8792b408b117d40148eb2;p=project%2Fnetifd.git 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 Signed-off-by: Felix Fietkau [fix commit description] --- diff --git a/wireless.c b/wireless.c index 873c437..898a012 100644 --- a/wireless.c +++ b/wireless.c @@ -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; }