mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-29 20:23:01 +02:00
confd: fix wifi class interence of radioN hardware components
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -145,9 +145,14 @@ static int hardware_cand_infer_class(json_t *root, sr_session_ctx_t *session, co
|
||||
inferred.data.string_val = "infix-hardware:usb";
|
||||
err = srx_set_item(session, &inferred, 0,
|
||||
"%s/class", xpath);
|
||||
break;
|
||||
goto out_free_name;
|
||||
}
|
||||
}
|
||||
|
||||
if (!fnmatch("radio+([0-9])", name, FNM_EXTMATCH)) {
|
||||
inferred.data.string_val = "infix-hardware:wifi";
|
||||
err = srx_set_item(session, &inferred, 0, "%s/class", xpath);
|
||||
}
|
||||
out_free_name:
|
||||
free(name);
|
||||
out_free_xpath:
|
||||
|
||||
Reference in New Issue
Block a user