Commit: 2f440ad7b5e069056c692b3d1bacffb414d015cd
Parent: 85d21c3ea5d57baa7075c0aac3c948eef592eb58
Author: Yegor Yefremov <yegor_sub1@visionsystems.de>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2011-09-22 14:19:11
Tree: c20d80c0f8cf2e4873ea34b0be5f3a7bc45ad2db

hciattach: fix serial speed setting for wl1271 override speed setting if firmware script issues serial settings command, otherwise the value given in the firmware script will be overridden. Example: hciattach /dev/ttyO1 texas 115200 will fail, because /dev/ttyO1 will be opened with 115200 b/s, then the firmware script will set the buadrate to 3000000 b/s, after UART init hciattach.c will set the baudrate to 115200, so communication is broken. The only correct way is to set both speeds: hciattach -s 115200 /dev/ttyO1 texas 3000000 With this patch only initial speed must be specified. The former semantic will be preserved in case the firmware script doesn't provide serial settings action. Tested with wl1271 and firmware TIInit_7.2.31.bts

Diffstat

M tools/hciattach.c | 2 +-
M tools/hciattach.h | 2 +-
M tools/hciattach_ti.c | 19 +++++++++++- - - - - - - -

3 files changed, 13 insertions(+), 10 deletions(-)

View Full Diff | Patch