wireless: enable dynamic reconfiguration by default
authorFelix Fietkau <nbd@nbd.name>
Mon, 17 Jul 2023 09:04:29 +0000 (11:04 +0200)
committerFelix Fietkau <nbd@nbd.name>
Mon, 17 Jul 2023 09:04:29 +0000 (11:04 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
wireless.c

index 645b2bc9ae1c84278937582b5021a9c196a1ccf4..873c4370ad1b984ad74255df0d2cbae91d5a6d82 100644 (file)
@@ -1081,7 +1081,7 @@ wireless_device_create(struct wireless_driver *drv, const char *name, struct blo
        wdev->serialize = cur && blobmsg_get_bool(cur);
 
        cur = tb[WDEV_ATTR_RECONF];
-       wdev->reconf = cur && blobmsg_get_bool(cur);
+       wdev->reconf = !cur || blobmsg_get_bool(cur);
 
        wdev->retry_setup_failed = false;
        wdev->autostart = true;