Commit Graph

16 Commits

Author SHA1 Message Date
Yegor Yefremov
972c92162d tools/hciattach: Fix TI firmware path
Change firmware path to /lib/firmware/ti-connectivity/ to be
conform with linux-firmware folder structure. All wl1xxx firmware
resides in ti-connectivity. See linux-firmware repository
https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/
for reference.
2013-04-04 21:14:53 +03:00
Johan Hedberg
b8779d2202 Revert "Ensure config.h is included by using CPPFLAGS"
This reverts commit 8a03376544.

The patch needs to be split up and the gdbus/ changes were bogus
compared to the original commit message.

Conflicts:
	Makefile.am
	Makefile.obexd
	profiles/cyclingspeed/cyclingspeed.c
	profiles/heartrate/heartrate.c
	src/error.c
2012-12-07 12:46:04 +02:00
Lucas De Marchi
8a03376544 Ensure config.h is included by using CPPFLAGS
Instead of trying to include config.h in each file over the tree and
possibly forgetting to include it, give a "-include config.h" argument
to the compiler so it's guaranteed that a) it will be included for all
source files and b) it will be the first header included.

gdbus/ directory is left out, since it would break other projects using
it.
2012-12-05 17:18:07 +02:00
Anderson Lizardo
78889501f8 Fix trivial coding style issues on pointer declarations and casting
Avoid using C++ style pointer declarations like "char* ptr", as most
BlueZ code uses "char *ptr".
2012-08-26 09:37:06 +01:00
Marcel Holtmann
f30c71d3e0 hciattach: Remove some unneeded includes 2012-02-26 18:40:25 -08:00
Yegor Yefremov
2f440ad7b5 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
2011-09-22 20:19:11 +09:00
Slawomir Bochenski
f8e0916e2d Remove unnecessary jumps 2011-06-01 14:41:01 +03:00
Anderson Lizardo
566b05540b hciattach: Bring up device before sending commands over socket
The Texas specific initialization code sends HCI commands over the
bluetooth socket, but does not bring up the device. This gives these
errors when running "hciattach /dev/ttyUSB0 texas":

Found a Texas Instruments' chip!
Firmware file : /lib/firmware/TIInit_XX.Y.ZZ.bts
Loaded BTS script version 1
Cannot send hci command to socket: Network is down
Can't initialize device: Network is down
2010-11-11 11:25:00 +02:00
Jose Antonio Santos Cadenas
0edbc77755 Remove extra spaces from tools dir 2010-05-07 01:48:03 +03:00
Marcel Holtmann
9184e2eeb7 Update copyright information 2010-01-01 17:08:17 -08:00
Ohad Ben-Cohen
59901631d2 Fix short commands limit 2009-06-27 10:24:21 +02:00
Marcel Holtmann
fb333f1c88 Update copyright information 2009-01-01 19:33:20 +01:00
Marcel Holtmann
290427f21e Fix broken forward declarations 2008-12-23 05:39:54 +01:00
Marcel Holtmann
8af2789f18 Add the TI copyright note 2008-07-11 08:46:06 +00:00
Marcel Holtmann
972eeffa2b Fix include issue for PATH_MAX 2008-07-11 07:23:53 +00:00
Marcel Holtmann
14f84d602a Update the TI init routine with BRF support 2008-07-11 06:10:50 +00:00