Commit Graph

154 Commits

Author SHA1 Message Date
Johan Hedberg
f89f6b68b8 Add struct for start_discovery to mgmt.h 2011-11-10 10:50:44 +02:00
Johan Hedberg
f062b128db mgmt: Add LE public/random info to address types 2011-11-09 13:52:05 +02:00
Johan Hedberg
4c63c025a5 mgmt: Update BR/EDR link key message naming to match new API 2011-11-07 20:09:03 +02:00
Johan Hedberg
7ee8ea022d mgmt: Add address type fields to messages that need them 2011-11-07 19:54:04 +02:00
Johan Hedberg
76bfabc7a3 mgmt: Update set_discoverable to match new API 2011-11-03 13:50:35 +02:00
Antti Julku
1dcd74358c Implement fast connectable mode for mgmt interface
Management interface implementation for fast connectable mode.
2011-09-26 15:39:36 +03:00
Antti Julku
396607837a Add support for blacklisting events
Add support for mgmt interface events for device blocking/unblocking.
Kernel sends a mgmt event when a device has been blocked by another
management socket or with ioctl command (e.g. by hciconfig).

Parameter update_only is added to device_block/unblock functions in
device.c to avoid code copying. When update_only is true, blocking
command is not sent to kernel, but only device status is updated and
dbus signal is sent.
2011-09-01 16:02:10 +03:00
Antti Julku
6c558d3620 Add blacklisting support for management interface
Management interface commands for blocking and unblocking devices.
2011-06-16 21:51:44 +03:00
Waldemar Rymarkiewicz
e6c56d4e71 Add secure param to mgmt_ev_pin_code_request
Update mgmt interface with secure param in PIN code request event which
is part of secure PIN requirement implementation.
2011-04-28 23:00:20 +03:00
Johan Hedberg
3caf142f55 Add support for store_hint in mgmt_ev_new_key 2011-04-28 23:00:15 +03:00
Johan Hedberg
50ff50b716 Remove unused old_key_type from mgmt_ev_new_key 2011-04-28 23:00:15 +03:00
Johan Hedberg
2ad1015a16 mgmtops: Add support for confirm_hint in mgmt_ev_user_confirm_request
Since we don't yet have a proper Agent.ConfirmPairing D-Bus callback,
and can't add one before 5.x just do an automatic reply for now.
2011-04-28 02:27:01 +03:00
Johan Hedberg
6f7add5435 mgmt: Add support for discovering event 2011-03-31 14:36:43 +03:00
Johan Hedberg
421efd407e mgmt: Add support for start_discovery & stop_discovery 2011-03-31 14:26:20 +03:00
Johan Hedberg
56fe067384 mgmt: Add support for remote_name event 2011-03-30 12:25:08 +03:00
Johan Hedberg
c76086fd59 Add MGMT_MAX_NAME_LENGTH define to mgmt.h 2011-03-30 12:25:08 +03:00
Johan Hedberg
cb6dd1222d mgmt: Add support for device_found event 2011-03-30 12:25:08 +03:00
Szymon Janc
ca8ea935e9 Add support for Out of Band (OOB) association model in mgmtops 2011-03-27 22:55:11 +03:00
Johan Hedberg
3011a312a7 mgmt: Implement adapter name control
This patch adds a new set_local_name command as well as a
local_name_changed event to the management interface. Instead of 248
bytes (like in the HCI spec) 249 bytes are always reserved for the name
in the messages so that there's a guarantee of it being nul-terminated
(this is not guaranteed on the HCI level).
2011-03-15 19:32:09 +02:00
Johan Hedberg
1c16543345 mgmt: Add adapter name to read_info response 2011-03-15 19:30:11 +02:00
Szymon Janc
da4ffa7209 Move index to common header in management interface
Match changes introduced in mgmt interface after moving controller
index to common header.
2011-02-25 12:53:48 -03:00
Johan Hedberg
a20bb21f47 mgmt: Add support for auth_failed event and bonding_complete hooks
This patch adds support for the mgmt_auth_failed event together with the
related bonding_complete failure hooks to the core daemon.
2011-02-18 21:54:47 +02:00
Johan Hedberg
50102905d9 mgmt: Add User Confirmation request support 2011-02-16 22:47:25 +02: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
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
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
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