confd: wifi: Fix wifi interface type infer

If an interface is name is wifiN-whatever it will be infered
with the wifi type. Natural naming whould be wifi0-ssid.
This commit is contained in:
Mattias Walström
2026-01-06 20:20:21 +01:00
parent 89a3ccd51c
commit 6aff287179
+1 -1
View File
@@ -78,7 +78,7 @@ static int ifchange_cand_infer_type(sr_session_ctx_t *session, const char *path)
goto out;
}
if (!fnmatch("wifi+([0-9])", ifname, FNM_EXTMATCH))
if (!fnmatch("wifi+([0-9])*", ifname, FNM_EXTMATCH))
inferred.data.string_val = "infix-if-type:wifi";
else if (iface_is_phys(ifname))
inferred.data.string_val = "infix-if-type:ethernet";