wireless: fix changing reconf/serialize options in configuration
authorFelix Fietkau <nbd@nbd.name>
Wed, 28 Jun 2023 12:22:15 +0000 (14:22 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 28 Jun 2023 12:22:15 +0000 (14:22 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
wireless.c

index 78969cdfa9c0888da19ee01513ddf9a44ed88b18..3590cb7d453d44fe592aa97dfb0eb321fb68846d 100644 (file)
@@ -703,6 +703,8 @@ wdev_change_config(struct wireless_device *wdev, struct wireless_device *wd_new)
        struct blob_attr *new_config = wd_new->config;
        bool disabled = wd_new->disabled;
 
+       wdev->reconf = wd_new->reconf;
+       wdev->serialize = wd_new->serialize;
        free(wd_new);
 
        wdev_prepare_prev_config(wdev);