wireless: handle link updates even if devices are present already
authorFelix Fietkau <nbd@nbd.name>
Tue, 3 Sep 2024 09:57:07 +0000 (11:57 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 3 Sep 2024 10:02:07 +0000 (12:02 +0200)
Redundant updates are caught further down the chain

Signed-off-by: Felix Fietkau <nbd@nbd.name>
wireless.c

index 3a03988506f9dee699ebbe221b050015fb561ac7..6cec78a1308d98fdb03d3a1eba310a7651c4faf3 100644 (file)
@@ -1645,10 +1645,8 @@ void wireless_device_hotplug_event(const char *name, bool add)
                        return;
 
                len = s - name;
-       } else if (!device_find(name)) {
-               len = strlen(name);
        } else {
-               return;
+               len = strlen(name);
        }
 
        vlist_for_each_element(&wireless_devices, wdev, node) {