bcmserver: allow CAN netdevice names greater than 6 characters 46/113046/1 tizen_3.0
authorJiho Chu <jiho.chu@samsung.com>
Sat, 14 Jan 2017 19:15:40 +0000 (20:15 +0100)
committerJiho Chu <jiho.chu@samsung.com>
Mon, 6 Feb 2017 00:58:18 +0000 (09:58 +0900)
commitcf20398d32e29fe7dc6609a5d49cd4ac00af9267
tree5a0f01278d610c3ebba4852d68d4ab420c53e22d
parent1aac0e73e985483b003706cbcbfefa9d2a2254da
bcmserver: allow CAN netdevice names greater than 6 characters

The sscanf() function to parse bcmserver command strings limited the length of
the CAN netdevice name to six characters. With this patch the length is derived
from the IFNAMSIZ which defines the space in ifr.ifr_name.

Change-Id: I80d9988d75abc3014fdc3837afbf11a4769ddddc
Signed-off-by: Jiho Chu <jiho.chu@samsung.com>
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
bcmserver.c