wireless: fix device config reload regression
authorFelix Fietkau <nbd@openwrt.org>
Sun, 23 Feb 2014 08:09:21 +0000 (09:09 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 23 Feb 2014 08:09:21 +0000 (09:09 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
wireless.c

index d886bf20a394e85872766e249acf270de250bf53..247d323c015164b68ea14fa8aa021b61a4a68614 100644 (file)
@@ -417,7 +417,7 @@ wdev_change_config(struct wireless_device *wdev, struct wireless_device *wd_new)
 
        free(wd_new);
 
-       if (blob_attr_equal(wdev->config, new_config) || wdev->disabled == disabled)
+       if (blob_attr_equal(wdev->config, new_config) && wdev->disabled == disabled)
                return;
 
        D(WIRELESS, "Update configuration of wireless device '%s'\n", wdev->name);