]> rtime.felk.cvut.cz Git - sojka/can-utils.git/commit
slcan_attach: 'close' the slcan adapter before setting a bitrate
authorOliver Hartkopp <socketcan@hartkopp.net>
Sun, 9 Jan 2011 11:35:03 +0000 (11:35 +0000)
committerOliver Hartkopp <socketcan@hartkopp.net>
Sun, 9 Jan 2011 11:35:03 +0000 (11:35 +0000)
commiteb1a99f8c7e2f69b76d7edb90625e910e8326cf0
tree3784356346eb57726a18198c9966128300f19aec
parentc9cdc9d0695d3caa3bd91a9c3833bb172e9f00cb
slcan_attach: 'close' the slcan adapter before setting a bitrate

As investigated by Thorsten Godau the bitrate can only be set after the
slcan adapter is in 'close' state.

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Tested-by: Thorsten Godau <dl9sec@gmx.net>
slcan_attach.c