From 6aff2871790106864f826dfc2ca48d88135d2962 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= Date: Sun, 4 Jan 2026 23:02:52 +0100 Subject: [PATCH] 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. --- src/confd/src/interfaces.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/confd/src/interfaces.c b/src/confd/src/interfaces.c index 9f7be99a..6c33659b 100644 --- a/src/confd/src/interfaces.c +++ b/src/confd/src/interfaces.c @@ -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";