Commit Graph

130 Commits

Author SHA1 Message Date
Marcel Holtmann
f87c55ba84 tools: Print PAL version for AMP controllers 2013-10-07 15:33:13 -07:00
Marcel Holtmann
39a1ae8a88 tools: Fix hciconfig device information printout for AMP controllers 2013-10-07 03:33:29 -07:00
Marcel Holtmann
d393673986 tools: Limit controller type to two bits of device info type 2013-09-28 21:00:02 -07: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
Frédéric Danis
703dd8b404 hciconfig: Remove putkey command
With new storage architecture legacy storage "linkkeys"
file doesn't exist anymore.
2012-12-05 17:24:38 +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
Jefferson Delfes
f078cf5c75 hciconfig: Add an option to set which advertise type will be on
There are some advertise types that can be used, so we need a way to
tell which one we want. The default one is ADV_IND.
2012-11-22 10:13:20 +02:00
Szymon Janc
6026d2ebd2 hciconfig: Clarify what oobdata command do
oobdata command results in reading new local OOB data and invalidates
previously read data. Current command description is misleading.
2012-09-28 16:51:23 +03:00
Vinicius Costa Gomes
a7be2034ca hciconfig: Fix compiler warnings related to unaligned memory access 2012-02-14 14:39:15 +02:00
Vinicius Costa Gomes
4725ddffe2 hciconfig: Fix using old-style initializers 2012-02-14 14:39:05 +02:00
Andrei Emeltchenko
efe0957092 hciconfig: Print features for AMP devices
Check for HCI device type, the magic shift is due to dev type is packed
to dev_info type.
2011-12-08 11:39:40 +02:00
Anderson Lizardo
382c867b09 hciconfig: Fix errno handling convention
Variables which are assigned to the errno variable (usually called
"err") should be negative, and "-err" should be used where a positive
value is needed.
2011-11-17 13:57:53 +02:00
Bruna Moreira
cef8838500 Use HCI_MAX_EIR_LENGTH instead of hard-coded value 2011-04-27 16:25:02 -07:00
Johan Hedberg
3b9b749946 Fix LMP version string in hciconfig
Previously the HCI version was reported instead of the LMP one.

Reported-by: Arno Willig <akw@thinkwiki.org>
2011-03-28 15:42:23 +03:00
Marco Sinigaglia
39454251ef Adjust LE command timeout and API
The timeout value has been hardcoded on hci_send_req call and, instead,
it should be passed from above (for ex from hci_le_set_scan_enable).
This patch removes the hardcoded value from hci_send_req and it
increases the timeout to 1000ms.
2011-03-10 11:11:17 +02:00
Andre Dieb Martins
ea6c8a871f Fix hciconfig leadv returned response
Fixes hciconfig leadv returned response by treating both status of the
command execution and HCI error code.
2011-02-01 11:07:00 +02:00
Claudio Takahasi
150f7a26db Add option to set LE random address to hciconfig 2011-01-31 10:37:02 +02:00
Claudio Takahasi
f2861a8c79 Add LE read supported states for hciconfig
Displays the states and state combinations that the link layer
supports. Usage: hciconfig hcix lestates
2010-12-29 23:48:19 +02:00
Michal Labedzki
ed2c65ad9d Coding style fixes for lib and tools 2010-12-21 10:50:59 +02:00
Michal Labedzki
57aa201c25 Fix tools UI to avoid program launch mistakes.
hciconfig: warrning user on unknown commands
hcitool: return error on unknown command in hcitool
fix length size in comparision to avoid ambiguity commands
check if command number of arguments is correct
2010-12-20 17:39:06 +02:00
Anderson Briglia
5ca342ccaa hciconfig: add LE_SET_ADVERTISE_ENABLE cmd
This patch implements two new hciconfig commands: leadv and noleadv.
These new hciconfig flags are responsible to LE_SET_ADVERTISE_ENABLE
command implementation.
2010-09-06 19:07:47 +03:00
Johan Hedberg
38a7ef119c Add hciconfig support for blacklisting
This patch implements hciconfig support for the new HCIBLOCKADDR and
HCIUNBLOCKADDR ioctls.
2010-05-17 17:30:35 +02:00
Jose Antonio Santos Cadenas
0edbc77755 Remove extra spaces from tools dir 2010-05-07 01:48:03 +03:00
Marcel Holtmann
fae1aebd13 Pretty print HCI revision and LMP subversion 2010-03-07 13:30:50 -08:00
Marcel Holtmann
5e5b0fdcd3 Show HCI and LMP versions on separate lines 2010-02-13 02:23:55 +01:00
Marcel Holtmann
3e0db2b27a Show controller type and bus type for every device 2010-02-13 02:22:18 +01:00
Marcel Holtmann
06e9ad1e95 The TX power level is a signed int and not an unsigned int 2010-02-05 20:16:38 -08:00
Marcel Holtmann
12b7f844c0 Print EIR attribute for Device ID 2010-02-05 20:16:03 -08:00
Marcel Holtmann
c886503a79 Fix another fallout from Inquiry Response Transmit Power Level typo 2010-02-05 19:52:59 -08:00
Marcel Holtmann
9184e2eeb7 Update copyright information 2010-01-01 17:08:17 -08:00
Gustavo F. Padovan
28faab63be Fix memory leaks in hciconfig and hcitool
Some printfs were using functions that return dynamic allocated memory
as parameters.
2009-02-10 16:40:47 +01:00
Marcel Holtmann
9c0b5859e6 Fix mostly every warning caused by -Wsign-compare 2009-01-29 17:58:28 +01:00
Marcel Holtmann
fb333f1c88 Update copyright information 2009-01-01 19:33:20 +01:00
Johan Hedberg
efcfad7c00 Get rid of format string warnings with recent gcc versions
Recent gcc versions, like 4.3.2 from ubuntu intrepid, give warnings like
"format not a string literal and no format arguments" without this
patch.
2008-10-20 01:10:11 +03:00
Marcel Holtmann
4652763c85 Improve reading of local and remote extended features 2008-09-29 02:50:06 +02:00
Marcel Holtmann
10332e9f97 Use const char for string constants 2008-08-15 00:11:32 +02:00
Marcel Holtmann
f2a7dfa156 There is no kernel security manager 2008-06-09 15:31:58 +00:00
Marcel Holtmann
e823c15e43 Update copyright information 2008-02-02 03:37:05 +00:00
Marcel Holtmann
361ed93686 Add support for inquiry transmit power level 2007-10-05 11:25:06 +00:00
Marcel Holtmann
8c491ff7a6 Decode more EIR elements 2007-08-31 19:29:44 +00:00
Marcel Holtmann
59badd8391 Fix command bit calculation 2007-08-26 21:59:50 +00:00
Marcel Holtmann
8c05580df1 Don't change EIR data when setting name 2007-08-08 16:21:13 +00:00
Marcel Holtmann
b42e7c6768 Add commands for Simple Pairing 2007-08-01 08:07:42 +00:00
Marcel Holtmann
d08e29ecf1 The Philips chips also support the Ericsson revision command 2007-01-14 22:29:20 +00:00
Marcel Holtmann
607695ed10 Update copyright information 2007-01-13 17:48:12 +00:00
Johan Hedberg
f1e35f0b9e More accurate class of device decoding for hcitool and hciconfig 2006-12-20 10:40:46 +00:00
Marcel Holtmann
59a4bc3afb Use multibyte friendly checks instead of isprint() 2006-11-26 09:17:15 +00:00
Marcel Holtmann
32327680a5 Don't change scan enable on devup 2006-11-21 15:44:56 +00:00
Marcel Holtmann
ff9745b222 Make use of create_name() 2006-07-26 13:03:54 +00:00
Marcel Holtmann
943b02e163 Include sys/param.h for PATH_MAX when cross-compiling 2006-06-27 07:33:36 +00:00