Commit Graph

153 Commits

Author SHA1 Message Date
Claudio Takahasi
06651f3f51 Add const modifier to avoid wrong usage of byte order functions 2011-02-11 14:04:34 -08:00
Claudio Takahasi
b67bf675e3 Fix wrong parameter order for memcpy in btoh128 function 2011-02-11 14:03:57 -08:00
Johan Hedberg
1c93c6fa88 mgmt: Add mgmt_pair_device command
This patch adds a new management command for triggering a dedicated
bonding procedure to a remote device.
2011-02-08 23:15:23 +02:00
Andrei Emeltchenko
2430512c98 Bluetooth: flushable packet supports headers
Modify headers to enable support for flushable packets. Following
commit: 8bcbd526c84724d8de087130d53e79da256e34bf to linux kernel
implements functionality on kernel side.
2011-01-27 11:00:21 +02:00
Johan Hedberg
9634f5c410 mgmt: Add set_io_capability command 2011-01-25 13:45:24 +02:00
Johan Hedberg
8b77225e7b mgmt: Add PIN Code request handling 2011-01-24 11:51:47 +02:00
Johan Hedberg
1e862b561c mgmt: add support for get_connections command 2011-01-21 13:55:44 +02:00
Johan Hedberg
d6fda82e31 mgmt: add support for connect failed event 2011-01-21 10:57:41 +02:00
Johan Hedberg
cc8588d684 Add support for disconnect management command 2011-01-21 10:06:50 +02:00
Johan Hedberg
48908574c4 mgmt: Add support for connected/disconnected events 2011-01-21 07:03:02 +02:00
Johan Hedberg
b115f34444 mgmt: add initial support for link key handling 2011-01-21 05:28:45 +02:00
Johan Hedberg
006301ab40 Update Class of Device handling to the latest management interface
This patch updates the class of device handling code to match the latest
management interface. A notable feature is that UUID to service class
mapping policy remains in user space with the help of the svc_hint
parameter of the add_uuid command. This is to make it easy to update the
mapping table when new profiles come along.
2011-01-16 23:09:40 +02:00
Johan Hedberg
a31b2bfb5f mgmt: Add preliminary UUID handling
This patch adds support for the add_uuid and remove_uuid management
commands. The kernel uses them to track the list of UUIDs and
automatically set the service class bits as well as the EIR value
accordingly.
2011-01-03 22:27:21 +02:00
Johan Hedberg
6964bd2dd5 mgmt: Implement set_pairable
This patch implements support for the set_pairable managment command.
Due to the async nature of it a new btd_adapter_pairable_changed
function is added to the core daemon.
2010-12-30 15:06:16 +02:00
Johan Hedberg
fb88bd2992 mgmt: Use a common structure for powered, discoverable and connectable
The events, commands and responses to these modes are represented by
identical management messages. By having a unified struct for all of
them quite a lot of code can simplified and reused.
2010-12-30 00:13:48 +02:00
Johan Hedberg
14655825c9 mgmt: Implement set_connectable 2010-12-30 00:13:47 +02:00
Johan Hedberg
528432cc7a mgmt: Implement set_discoverable 2010-12-30 00:13:47 +02:00
Johan Hedberg
07481cab56 mgmt: Implement set_powered 2010-12-30 00:13:47 +02:00
Johan Hedberg
27c58425af Change power_on & power_off adapter_ops callbacks to set_powered
The current idea is to have a single set_powered management command
which for the switching on case would leave the controller in a
non-connectable, non-pairable and non-discoverable state.
2010-12-23 14:38:52 +02:00
Michal Labedzki
ed2c65ad9d Coding style fixes for lib and tools 2010-12-21 10:50:59 +02:00
Johan Hedberg
27a311476a Add initial code for mgmtops adapter power control 2010-12-20 19:15:07 +02:00
Johan Hedberg
8582b8e4cd Implement support for management powered event 2010-12-16 00:54:34 +02:00
Johan Hedberg
24a34a8b1f Merge read_mode management command into read_info
The read_mode and read_info commands are issued only once in the
beginning for each adapter so it doesn't make sense to have the
information fetching split across two different commands. Instead all
necessary info can be fetched through the read_info command.
2010-12-12 00:04:17 +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
Johan Hedberg
8c442fd677 mgmtops: add version information to read_info response 2010-11-08 21:08:41 +02:00
Johan Hedberg
9a404a4e6b Fix Managment API names to be consistent with the kernel 2010-11-07 19:12:30 +02:00
Johan Hedberg
ff489b4fe3 mgmtops: add parsing of cmd_status and controller_error events 2010-11-07 17:59:09 +02:00
Johan Hedberg
49bedc0b8c mgmtops: add events for controller removal and addition 2010-11-07 16:50:31 +02:00
Johan Hedberg
fdd43acc2a Add support for reading controller mode in mgmtops 2010-11-04 02:56:31 +02:00
Johan Hedberg
b67a8a42e6 Fix bdaddr naming consistency 2010-11-02 00:10:23 +02:00
Johan Hedberg
58e6c539e6 Add more management API structs into mgmt.h 2010-11-01 22:45:27 +02:00
Johan Hedberg
3d3063f323 Remove unnecessary status parameter from mgmt version response 2010-11-01 21:00:49 +02:00
Johan Hedberg
c0882114c2 Add support for getting the controller index list 2010-11-01 20:58:48 +02:00
Johan Hedberg
fb91c88916 Change hci_mgmt_ prefix to simply mgmt_ 2010-11-01 20:23:03 +02:00
Johan Hedberg
b02a683673 Add some missing management struct definitions 2010-11-01 20:15:10 +02:00
Johan Hedberg
12d02e7f22 Add initial definitions for the Bluetooth Management interface 2010-10-27 13:51:52 -04:00
Marcel Holtmann
004646382a Use LMP_HOST prefix for the extended features 2010-10-05 09:04:09 +02:00
Claudio Takahasi
5c2b9faa33 Add extended feature mask constants definition 2010-10-04 17:38:22 -03:00
Claudio Takahasi
7ff8fd32eb Set the LE host supported and disable simultaneous LE and BR/EDR flags
For BlueZ if the controller supports LE, extended feature mask shall be
set to indicate that the host supports LE and disable simultaneous LE and
BR/EDR for simplicity even if the controller supports simultaneous LE and
BR/EDR.
2010-10-04 17:38:22 -03:00
Claudio Takahasi
662450be0c Remove RSSI field from the advertising report event
Advertising data has variable length. Maximum length are 31 bytes.
RSSI field is the last byte of the datagram. Declare the data field
with fixed length will point the rssi field to an invalid memory
address.
2010-10-04 17:38:22 -03:00
Marcel Holtmann
bb061d925a Update list of company identifiers 2010-10-04 14:08:32 +02:00
Dmitriy Paliy
d9816605d7 Add STANDARD and INTERLACED page scan definitions
Added standard and interlaced page scan type definitions. Used for
both read and write page scan type HCI commands.
2010-08-18 13:45:55 +03:00
Inga Stotland
d13ea8a6bf HCI events related to AMP functionality
Added constructs for the following HCI events:
PHYSICAL_LINK_COMPLETE, EVT_CHANNEL_SELECTED,
EVT_DISCONNECT_PHYSICAL_LINK_COMPLETE,
EVT_PHYSICAL_LINK_LOSS_EARLY_WARNING, EVT_PHYSICAL_LINK_RECOVERY,
EVT_LOGICAL_LINK_COMPLETE, EVT_DISCONNECT_LOGICAL_LINK_COMPLETE,
EVT_FLOW_SPEC_MODIFY_COMPLETE, EVT_NUMBER_COMPLETED_BLOCKS,
EVT_AMP_STATUS_CHANGE
2010-08-17 17:21:37 +03:00
Inga Stotland
0158c8061f HCI commands related to AMP functionality
Added constructs for the following HCI commands:
CREATE_PHYSICAL_LINK, ACCEPT_PHYSICAL_LINK, DISCONNECT_PHYSICAL_LINK,
CREATE_LOGICAL_LINK, ACCEPT_LOGICAL_LINK, DISCONNECT_LOGICAL_LINK,
LOGICAL_LINK_CANCEL, FLOW_SPEC_MODIFY,
READ_LOGICAL_LINK_ACCEPT_TIMEOUT, WRITE_LOGICAL_LINK_ACCEPT_TIMEOUT,
SET_EVENT_MASK_PAGE_2, READ_LOCATION_DATA, WRITE_LOCATION_DATA,
READ_FLOW_CONTROL_MODE, WRITE_FLOW_CONTROL_MODE,
READ_ENHANCED_TRANSMIT_POWER_LEVEL, READ_BEST_EFFORT_FLUSH_TIMEOUT,
WRITE_BEST_EFFORT_FLUSH_TIMEOUT, READ_LOCAL_AMP_INFO,
READ_LOCAL_AMP_ASSOC, WRITE_REMOTE_AMP_ASSOC
2010-08-17 17:21:34 +03:00
Claudio Takahasi
a7eb76097e Add Generic Access Profile UUID definition 2010-08-09 18:06:45 -04:00
Claudio Takahasi
84244c3c59 Add host/little endian/host conversion functions for uint128_t values
ATT Multi-octet fields uses little endian format. htob128 converts from
host to little endian. btoh128 converts from little endian.
2010-08-09 18:06:44 -04: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
Marcel Holtmann
9b8f96b565 Change controller type to be either BR/EDR or AMP 2010-08-09 17:47:25 -04: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