[PATCH] netifd: allow to disable radio if reconf is enable

Prasun Maiti prasunmaiti87 at gmail.com
Thu Aug 17 05:17:18 PDT 2023


From: "Prasun Maiti" <prasunmaiti87 at gmail.com>

radio is not down when reconf is enabled,
as not invoking __wireless_device_set_down()
and it is following reconf flow.

So, proceed if radio is not disabled for reconf

Signed-off-by: Prasun Maiti <prasunmaiti87 at gmail.com>
---
 wireless.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 	}
-- 
2.17.1




More information about the openwrt-devel mailing list