Claudio Takahasi
3f6465163d
hcitool: use defined constants for address type
2011-03-04 16:45:11 -03:00
Arun Kumar Singh
5292112420
hcitool: Add command to clear LE White List
2011-03-01 16:16:42 -03:00
Arun Kumar Singh
fc10b2c6f1
hcitool: Add command to read size of LE White List
2011-03-01 16:16:40 -03:00
Arun Kumar Singh
d68ff374da
hcitool: Add command to remove a device from LE white list
2011-03-01 16:16:38 -03:00
Claudio Takahasi
7e018c6e02
hcitool: Change commands struct formating
2011-03-01 16:16:37 -03:00
Arun Kumar Singh
265059a149
hcitool: Add command to add a device to LE White List
2011-03-01 16:16:35 -03:00
Andre Guedes
47316f8c80
hcitool: fix interval and window parameters
...
Set interval and window parameters properly if --discovery option
is present in lescan command.
According to the Bluetooth spec, during a general or limited discovery
procedure the scan interval and the scan window should be set to
11.25 ms. If --discovery option isn't present, both parameters are set
to the default value (10 ms) defined in LE Set Scan Parameters Command.
According to that command description, the interval and window parameters
should be set as follows:
Time = N * 0.625 msec
So, in order to set the time values to 11.25 and 10 ms, the parameters
should be equal to 18 (0x0012) and 16 (0x0010), respectively.
2011-02-24 17:40:22 -03:00
Andre Guedes
cf81589842
hcitool: add discovery procedure to lescan command
...
This patch adds the option [--discovery=g|l] to lescan command. Use
this option to enable the general or limited discovery procedure.
If discovery option is not given scanning will display all results
ignoring the AD flags.
2011-02-24 17:39:12 -03:00
Claudio Takahasi
9152acfbc7
Add hcitool command to change the parameters of a given LE connection
...
Allows the LE master to start the Connection Parameter Update Procedure.
Parameters values consistency are not verified on purpose allowing
invalid values to test fail scenarios.
2011-02-23 00:27:22 -03:00
Claudio Takahasi
8e7af67a19
Remove unneeded comma in the hcitool commands declaration
2011-02-23 00:27:15 -03:00
Andrei Emeltchenko
61b3ce7194
hcitool: Add bdaddr type option to lecc
2011-02-11 14:07:22 -08:00
Andrei Emeltchenko
2cc99a5ea6
Bluetooth: hcitool: add option for LE_Scan_Type parameter
...
The LE_Scan_Type parameter controls the type of scan to perform.
2011-02-11 13:41:28 -08:00
Claudio Takahasi
a026163d2c
Add option to enable privacy during scanning to hcitool
...
When privacy is enabled, random address is used during active scanning.
The non-resolvable private address shall be set using hciconfig.
2011-01-31 10:37:05 +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
Johan Hedberg
29c494df12
Make LE_LINK define private to hcitool.c for now
...
The value 0x03 isn't something that exists in the core spec, so it
shouldn't be used in the same API as SCO/ACL link types. Since there are
some experimental kernel patches that use it this patch makes it private
to hcitool.c.
2010-11-21 20:01:20 +01:00
Sheldon Demario
bca4b3c88b
Print LE link type on hcitool
2010-11-11 12:04:47 +02:00
Ville Tervo
e49d5d3738
Use default adapter for LE commands
...
Choose default adapter if device was not specified on the command line.
2010-07-16 13:51:57 -03:00
Vinicius Costa Gomes
65d1af240b
Add ledc command to hcitool
...
This command allows for low-level LE connections to be disconnected
by handle.
2010-07-13 17:34:58 -03:00
Vinicius Costa Gomes
71716c2a00
Add handle and timeout parameters to hci_le_create_conn
...
Now hci_le_create_conn is more consistent with hci_create_conn, both
have a handle out parameter and a timeout.
2010-07-12 20:11:43 -03:00
Vinicius Costa Gomes
c8e88ab534
Add lecc command to hcitool
...
This command allows the creation of LE Connections to remote devices.
The command is useful for testing if the local device is able to start
connections and if the remote device is able to receive connection
requests.
2010-07-08 21:05:36 -03:00
Vinicius Costa Gomes
46d1c28faf
Fix not respecting the user's endianism for LE Scan
...
When setting LE Scan parameters we were assuming that the user was using
a Little Endian machine.
2010-07-08 21:05:36 -03:00
Vinicius Costa Gomes
9438aa4682
Add lescan command to hcitool
...
This is a sample implementation of the LE Scan procedure.
2010-07-06 20:17:38 -03:00
Marcel Holtmann
9184e2eeb7
Update copyright information
2010-01-01 17:08:17 -08:00
Johan Hedberg
1d7afe8211
Fix another variable initialization
2009-10-02 11:19:05 +02:00
Steve Grubb
2e926fb016
Fix memory leaks
...
I was doing some code reviews of the 4.54 release and found a few memory
leaks. These are mostly in error paths.
2009-10-02 11:18:16 +02: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
8dcd4a1f5e
Add delay to have 2.1 setup settle before requesting features again
2009-02-03 01:32:10 +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
ea3f9b2d64
Allow specifying of reason for the disconnect
2008-08-27 14:47:31 +02:00
Marcel Holtmann
1e23f60da1
Use const char for usage text
2008-08-15 00:17:29 +02:00
Marcel Holtmann
bbd957c4d9
Add support for reading/setting the link policy
2008-06-12 21:53:32 +00:00
Marcel Holtmann
e823c15e43
Update copyright information
2008-02-02 03:37:05 +00:00
Marcel Holtmann
6efce5841c
Add refresh option to re-request device names
2007-09-14 11:25:34 +00:00
Marcel Holtmann
7d7658ad2f
Show connection link type correctly
2007-09-10 18:47:30 +00:00
Marcel Holtmann
5542ce34cf
Fix decoding of extended pages number
2007-06-16 11:31:41 +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
b08d30eb4d
Fix major class count calculation error
2006-09-29 11:42:14 +00:00
Marcel Holtmann
8ee8041f8a
Fix endian issue with periodic inquiry
2006-09-20 08:47:57 +00:00
Marcel Holtmann
a229e05f0a
Add support for periodic inquiry mode
2006-09-03 10:53:18 +00:00
Marcel Holtmann
ff9745b222
Make use of create_name()
2006-07-26 13:03:54 +00:00
Marcel Holtmann
9fab0f8bb8
Only read remote extended features if local adapter supports it
2006-06-17 10:35:00 +00:00
Marcel Holtmann
403066f6cd
Cleanup main function declarations
2006-04-28 14:30:59 +00:00
Marcel Holtmann
da7aed3f3f
Use the correct device for reading the local clock
2006-01-18 17:45:51 +00:00
Marcel Holtmann
f2e48c44a7
Update copyright information
2006-01-03 13:28:56 +00:00