cansend: update CAN FD check to cope with CAN XL interfaces
The check for CAN FD capable interfaces only checked for CANFD_MTU to enable the generation of CAN FD frame content. As CAN XL capable CAN interfaces are able to handle CAN FD frames too the check has to be extended for CANXL_MTU interfaces. Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>pull/424/head
parent
4cfc12e218
commit
5f764e73bf
|
|
@ -134,8 +134,8 @@ int main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
mtu = ifr.ifr_mtu;
|
mtu = ifr.ifr_mtu;
|
||||||
|
|
||||||
if (mtu != CANFD_MTU) {
|
if (mtu != CANFD_MTU && mtu != CANXL_MTU) {
|
||||||
printf("CAN interface is not CAN FD capable - sorry.\n");
|
printf("CAN interface is only Classical CAN capable - sorry.\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue