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
Jiri Bohac 2013-05-15 17:29:12 +02:00 committed by Richard Cochran
parent 7b02a5e9bd
commit 7ce1486d22
1 changed files with 1 additions and 1 deletions

View File

@ -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);