Commit Graph

212 Commits

Author SHA1 Message Date
Johan Hedberg
0573fc7cb1 mgmt: Add address type to mgmt_pair_device
This is important especially in the future when dual-mode devices can be
connected to over LE. It's also important if/when we decide to move the
advertisement cache into user-space.
2011-11-11 00:04:10 +02:00
Johan Hedberg
74b43ba833 mgmt: Add status parameter to disconnect response 2011-11-10 14:17:24 +02:00
Johan Hedberg
60bb8e3586 mgmt: Add bdaddr and status to remove_keys response 2011-11-10 14:04:40 +02:00
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
Andrei Emeltchenko
41ccb16f6c Add get_le/get_be helpers
Helpers to access LE / BE values. In different Bluetooth
protocols/profiles there is a mixture of LE / BE byte order.
2011-10-25 10:07:58 +02:00
Andrei Emeltchenko
011c01ed8d Add btohll / htobll macros
Handle 64 bit swap
2011-10-21 11:08:24 +03:00
Andrei Emeltchenko
b051c6708f Add definitions for L2CAP fixed channels 2011-10-21 11:08:08 +03:00
Marcel Holtmann
1cf761e1db Update company identifiers 2011-10-02 19:40:25 -07: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
Anderson Lizardo
71d994a129 Refactor value assignments of bt_uuid_t variables
Prior to this commit, the assignments were made with memcpy(). This can
be unsafe and less readable, therefore it was replaced with code like:

<dst> = *src;

This also allows more compiler safety checks.
2011-09-22 20:01:30 +09: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
Andrei Emeltchenko
14ca2df11b Add definition for L2CAP Ext Window Size
This is needed e.g. by hcidump.
2011-08-31 13:22:05 +03:00
Andrei Emeltchenko
3c9698114e Add L2CAP EFS definitions
These are needed e.g. by hcidump.
2011-07-29 13:01:10 +03:00
Andrei Emeltchenko
c7aac05539 Add L2CAP extended feature mask definitions 2011-07-26 11:00:02 +03:00
Marcel Holtmann
7822123d08 Update company identifiers 2011-06-17 10:14:15 -07: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
Szymon Janc
8af5f43a69 Fix empty parameter list in functions declarations 2011-05-18 09:05:55 -07:00
Szymon Janc
0738d9b906 Remove not needed NULL check in sdp_gen_pdu 2011-05-15 01:47:11 +03:00
Szymon Janc
61d0747e6c Fix dead increments and assignments in sdp code 2011-05-15 01:47:08 +03:00
Szymon Janc
0f27847ff8 Fix potential NULL pointer dereference in sdp_get_lang_attr 2011-05-15 01:47:07 +03:00
Szymon Janc
3d586da1dd Fix C++ style comments 2011-05-10 17:17:03 +02: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
Bruna Moreira
cef8838500 Use HCI_MAX_EIR_LENGTH instead of hard-coded value 2011-04-27 16:25:02 -07: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
6b077ce749 Add HCI_MAX_NAME_LENGTH define to hci.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
Johan Hedberg
dff482a423 Add HCI_MAX_EIR_LENGTH define 2011-03-30 12:25:07 +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
2854ecff1f Make strtoba use str2ba for string conversion 2011-03-15 15:13:52 +02:00
Szymon Janc
1c58c18eaa Fix str2ba behaviour on malformed bt address
str2ba could create bogus bt address from malformed string. Return
all zeros bt address on malformed string.
2011-03-15 15:13:44 +02:00
Szymon Janc
9f14800ff3 Simplify ba2str function 2011-03-15 15:10:36 +02:00
Szymon Janc
e935b65783 Simplify ba2oui function 2011-03-15 15:08:51 +02:00
Elvis Pfützenreuter
bb096e674c Add more functions for new UUID handling
This patch adds more functions that are necessary to handle the new
bt_uuid_t type, and moves basic things like byte-swapping functions and
uint128_t type to bluetooth.h.
2011-03-15 10:42:50 +02:00
Claudio Takahasi
3ed993262f Add new UUID utility functions
New UUID functions will store the UUIDs values on host order. Added
functions to create, compare and convert UUIDs.
2011-03-15 10:35:40 +02: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
Szymon Janc
e41eccc123 Simplify bachk function
By using isxdigit() the function can be considerably simplified.
2011-03-04 15:42:25 -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