When hostapd does a DFS channel switch, it tears down all vifs except for the
primary one, which causes them got get dropped from the device configuration
Signed-off-by: Felix Fietkau <nbd@nbd.name>
int len;
s = strstr(name, ".sta");
- if (!s)
- return;
+ if (s) {
+ if (strchr(s + 4, '.'))
+ return;
- if (strchr(s + 4, '.'))
+ len = s - name;
+ } else if (!device_find(name)) {
+ len = strlen(name);
+ } else {
return;
-
- len = s - name;
+ }
vlist_for_each_element(&wireless_devices, wdev, node) {
vlist_for_each_element(&wdev->interfaces, vif, node) {