Commit Graph

607 Commits

Author SHA1 Message Date
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
Gustavo F. Padovan
12eac6993b rename: tools/main.c to tools/rfcomm.c 2011-02-04 06:55:46 +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
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
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
Suraj Sumangala
4e0e44626d hciattach: download configuration at user requested baud rate
This patch support downloading configuration for Atheros AR300x HCI UART
chip at user requested baud rate instead of the initial baud rate.
2010-11-23 12:09:20 +01:00
Suraj Sumangala
429877099f hciattach: make set_speed return error if any operation fails
This patch lets set_speed function changing UART baud rate to return an
error code if any one operation fails instead of returning only the last
operation's status.
2010-11-23 12:08:54 +01:00
Wade Brown
53095459ee Add a runtime option to set the BCSP communication rate 2010-11-23 10:01:58 +01: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
Suraj Sumangala
0e32ca24d1 hciattach: send hci commands after hci socket bring up
This patch makes The Atheros AR300x specific initialization code
to send power management command over HCI socket after bringing up
the device.
2010-11-19 17:24:17 +02:00
Sheldon Demario
bca4b3c88b Print LE link type on hcitool 2010-11-11 12:04:47 +02: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
Suraj Sumangala
29fef5b02f Bluetooth: Add support to specify patch download location
This patch add support for specifying patch download address for
AR300x patch download logic.
2010-10-05 08:56:13 +02:00
Marcel Holtmann
3fc9a5d2f3 Also for LE only devices enable the event mask 2010-10-04 11:11:09 +02:00
Marcel Holtmann
5fd66bcbff Set event mask bit if LE is supported 2010-10-04 11:04:15 +02:00
Jaikumar Ganesh
9ee9e43527 Fix Headset Audio gateway SDP record.
Headset Audio Gateway does not have the Supported Features
in the SDP records according to the HSP specification.
2010-09-22 10:21:48 +03: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
Matthew Wilson
c6be8dcf9e Firmware download for Qualcomm Bluetooth devices
Configures device address from hciattach parameter.
UART speed limited to 115200.
Requires separate device specific firmware.
2010-08-23 23:39:01 +03:00
Suraj Sumangala
848b12d537 Add host level support for Atheros AR300x device
This patch implements support for the Atheros AR300x Bluetooth chip in
hciattach. It supports configuration download and power management
configure feature.
2010-08-18 13:23:20 +03:00
Suraj Sumangala
e54f6d67ac Bluetooth: Option to enable power management from host
This provides a new option for hciattach to enable hardware specific
power management from host.
This option by default will be disabled for existing devices
2010-08-17 17:29:58 +03:00
Claudio Takahasi
df3c8e1ebb Add GATT SDP record for sdptool
Extend sdptool to allow to add GATT SDP record. Devices that support
GATT over BR/EDR shall publish GATT record. This implementation intend
to be a reference for GATT SDP record creation and it can be a helper
to GATT servers implemented outside BlueZ.
2010-08-09 18:06:43 -04: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
Johan Hedberg
6e6252937e Add hciattach support for initializing a device into raw mode
This patch adds a -r switch to hciattach that can be used to initialize
a device into raw mode. This is accomplished with the help of the new
HCIUARTSETFLAGS ioctl.
2010-07-12 11:52:27 -03:00
Johan Hedberg
dd84462f51 Add missing hciattach command line switches to the manual page
This patch adds some previously undocumented command line switches to
the hciattach manual page.
2010-07-09 17:19:24 -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
Gustavo F. Padovan
9df2edb4ee Add "hciX" to hciconfig man page 2010-07-06 10:45:49 -03:00
Vladimir Davydov
c637b9ba67 hciattach: Fix the timeout handling code
The variable 'retries' should be defined as static, or it will be always
0.
2010-06-30 17:38:07 +03:00
Gustavo F. Padovan
e272c8c69b sdptool: Fix 2 possible NULL dereference
Issues found by smatch static check:
http://smatch.sourceforge.net/
2010-06-08 14:25:36 +08:00
Elvis Pfützenreuter
d48df6f540 Change MDP profile name and macros to HDP 2010-06-04 11:24:10 +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
Nick Pelly
fc3764769f Add 0xff (any object type) to sdptool OPUSH supported formats list.
This fixed an issue with sending an image from OSX. OSX would show a
warning that the bluez stack does not support this file type, but offer
to send it anyway (which works). This change to advertise support for
all object types will remove this warning.

The list of file types that can be advertised in the SDP record is very
limited anyway. It is best to list that we support all file types here,
and then filter at the OPP/OBEX connection instead.

For reference:
0x01 = vCard 2.1
0x02 = vCard 3.0
0x03 = vCal 1.0
0x04 = iCal 2.0
0x05 = vNote
0x06 = vMessage
0xFF = any type of object.
2010-02-04 17:10:50 -08:00
Johan Hedberg
5592142cb9 Update Nokia copyrights 2010-01-07 01:11:05 -08:00