mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 01:13:00 +02:00
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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user