fix the check for supported timestamping modes
Fix the check for supported timestamping modes. The device needs to support all the required modes, not just any subset of them. Signed-off-by: Jiri Bohac <jbohac@suse.cz>master
parent
7b02a5e9bd
commit
7ce1486d22
2
ptp4l.c
2
ptp4l.c
|
@ -325,7 +325,7 @@ int main(int argc, char *argv[])
|
|||
/* check whether timestamping mode is supported. */
|
||||
for (i = 0; i < cfg_settings.nports; i++) {
|
||||
if (iface[i].ts_info.valid &&
|
||||
!(iface[0].ts_info.so_timestamping & required_modes)) {
|
||||
((iface[0].ts_info.so_timestamping & required_modes) != required_modes)) {
|
||||
fprintf(stderr, "interface '%s' does not support "
|
||||
"requested timestamping mode.\n",
|
||||
iface[i].name);
|
||||
|
|
Loading…
Reference in New Issue