Commit Graph

22434 Commits

Author SHA1 Message Date
Marcel Holtmann
8ce5d05363 lib: Add mgmt event for local out-of-band data update notification 2015-03-16 16:02:16 -07:00
Marcel Holtmann
d437fba734 doc: Introduce a command that notifies about local OOB data updates 2015-03-16 16:01:27 -07:00
Marcel Holtmann
249bc19ca0 doc: Providing Security Manager TK Value is actually not supported 2015-03-16 12:51:09 -07:00
Szymon Janc
5d3794fedf android/hog: Allow to pass custom fd for uhid
This will be useful for unitests.
2015-03-16 16:26:16 +01:00
Johan Hedberg
0d468ec37c lib/mgmt: Update mgmt command string-lookup table 2015-03-16 07:47:23 +02:00
Marcel Holtmann
e738d197e6 tools: Separate between initiator and acceptor provided OOB data 2015-03-15 16:43:36 -07:00
Marcel Holtmann
65bdd91005 tools: Generate the Security Manager TK Value if requested 2015-03-15 11:35:48 -07:00
Marcel Holtmann
0ac25dcda1 doc: Mention that Security Manager TK Value field is special 2015-03-15 11:10:40 -07:00
Marcel Holtmann
3b0bd2210e tools: Parse the OOB data fields and extract TK, Hash and Randomizer 2015-03-15 00:14:18 -07:00
Luiz Augusto von Dentz
e842ba66d2 core/device: Remove call to g_attrib_set_mtu
The call to g_attrib_set_mtu is no longer needed since
g_attrib_get_buffer has learned to check bt_att MTU.
2015-03-15 09:01:36 +02:00
Luiz Augusto von Dentz
14569a3341 core/device: Fix not handling notification
attio callbacks needs to be triggered as soon as possible once connected
otherwise profiles such as HoG may miss notification that are sent while
bt_gatt_client is doing MTU exchange.
2015-03-15 09:01:36 +02:00
Luiz Augusto von Dentz
64f8641733 attrib: Fix not honoring MTU
If MTU has changed, by bt_gatt_client for example, the code should be
able to figure it out without waiting g_attrib_set_mtu to be called.
2015-03-15 09:01:36 +02:00
Marcel Holtmann
1f6bd25b1a tools: Read extended local OOB data for LE pairing 2015-03-14 23:55:01 -07:00
Marcel Holtmann
b59c2b2487 tools: Make sure that IRKs are cleared before OOB pairing 2015-03-14 23:34:23 -07:00
Marcel Holtmann
85a64751eb tools: Add support reading extended local OOB data information 2015-03-14 22:37:34 -07:00
Marcel Holtmann
091b1fcb61 lib: Provide data structures for local OOB extended data command 2015-03-14 21:29:24 -07:00
Marcel Holtmann
5726c06f8c lib: Use single mgmt structure for legacy local OOB data 2015-03-14 21:27:48 -07:00
Marcel Holtmann
c8d528a327 tools: Add support for reading advertising features 2015-03-14 20:29:24 -07:00
Marcel Holtmann
f13e9cbd58 lib: Add response structure for advertising features command 2015-03-14 20:28:49 -07:00
Marcel Holtmann
db0c7d31c3 tools: Print information from class of device changed events 2015-03-14 19:13:05 -07:00
Marcel Holtmann
9a9e4313a9 lib: Change field name from class_of_dev to dev_class 2015-03-14 19:10:25 -07:00
Marcel Holtmann
035ca74704 doc: Add entry for permission denied management error 2015-03-14 17:57:30 -07:00
Marcel Holtmann
6b1297b402 lib: Add permission denied management error code 2015-03-14 17:57:05 -07:00
Marcel Holtmann
31f0640263 monitor: Add decoding for extended index control messages 2015-03-14 16:58:21 -07:00
Marcel Holtmann
07b028e5f2 tools: Handle controller bus information from extended index events 2015-03-14 16:53:22 -07:00
Marcel Holtmann
705eacb667 lib: Add controller bus information to extended index command and events 2015-03-14 16:52:44 -07:00
Marcel Holtmann
03ffe3c395 doc: Expose the controller bus via extended index information 2015-03-14 16:35:46 -07:00
Marcel Holtmann
4c254e5f05 lib: Add missing information for extended index list support 2015-03-14 14:16:27 -07:00
Marcel Holtmann
def1f863e9 tools: Add support for reading extended controller information 2015-03-14 11:32:42 -07:00
Marcel Holtmann
18a7af6211 lib: Add structure for extended index list mgmt command 2015-03-14 11:32:18 -07:00
Marcel Holtmann
a6d4f90a60 doc: Add flags for discoverable and limited discoverable advertising 2015-03-14 09:27:21 -07:00
Marcel Holtmann
09e94ad407 doc: Mention the new Set Advertising setting for connectable advertising 2015-03-13 10:53:05 -07:00
Mariusz Skamra
39ce9fb2b9 android/hog: Fix double queue_destroy
There is no need to destroy these queues here, there are destroyed in
hog_free. Prevents from memory violation.
2015-03-13 16:27:22 +01:00
Szymon Janc
50e72e66a6 android/pts: Update BNEP tests results with PTS issue
Some tests requires test ETS to pass. Provide issues numbers for
reference.
2015-03-13 15:54:47 +01:00
Grzegorz Kolodziejczyk
121113130f android/pts: Add BNEP PTS 6.0 results for android 5.0
This patch adds test case list and results for BNEP profile against
android 5.0
2015-03-13 15:22:25 +01:00
Grzegorz Kolodziejczyk
cad1f1b89b tools/bneptest: Add generic connect/listen functionality
This patch adds general functionality of bnep connect and listen.
2015-03-13 15:19:16 +01:00
Grzegorz Kolodziejczyk
07861ffd10 tools/bneptest: Add initial support for bneptest tool
This tool should be designed to help testing bnep on BlueZ.
2015-03-13 15:03:48 +01:00
Gowtham Anandha Babu
33fa99fb34 doc/test-coverage: Update test-gatt count 2015-03-13 14:29:31 +02:00
Gowtham Anandha Babu
18cc842c76 unit/test-gatt: Add TP/GAW/SR/BI-26-C test
Verify that a Generic Attribute Profile server can detect and reject
a Write long characteristic descriptor Request to a non-writeable
long characteristic descriptor and issue a Write Not Permitted Response.
2015-03-13 14:29:31 +02:00
Gowtham Anandha Babu
405f119163 unit/test-gatt: Add TP/GAW/SR/BI-25-C test
Verify that a Generic Attribute Profile server can detect a Write
long characteristic descriptor Request with an invalid characteristic
handle and issue an Invalid Handle Response.
2015-03-13 14:29:31 +02:00
Gowtham Anandha Babu
18bfadfe57 unit/test-gatt: Add TP/GAW/SR/BV-09-C test
Verify that a Generic Attribute Profile server can support writing
a long characteristic descriptor selected by handle.
2015-03-13 14:29:31 +02:00
Bharat Panda
477eab8384 unit/test-gatt: Add TP/GAW/SR/BI-08-C test
Verify that a Generic Attribute Profile server can detect and reject
a Write Long Characteristic Value Request to a non-writeable long
Characteristic Value and issue a Write Not Permitted Response.
2015-03-13 14:29:31 +02:00
Bharat Panda
b03de0a4f4 unit/test-gatt: Add TP/GAW/SR/BI-07-C test
Verify that a Generic Attribute Profile server can detect a Write
Long Characteristic Request with an invalid characteristic handle
and issue an Invalid Handle Response.
2015-03-13 14:29:31 +02:00
Bharat Panda
20813eb8cd unit/test-gatt: Add TP/GAW/SR/BV-05-C test
Verify that a Generic Attribute Profile server can support writing
a long Characteristic Value selected by handle.
2015-03-13 14:29:31 +02:00
Marcin Kraglak
d782a659cf plugins/policy: Try reconnect Control/Target services
If state of Control/Remote services changed from CONNECTING to
DISCONNECTED, and error is set to -EAGAIN, set random timer and try
reconnect. This approach is described in AVRCP Spec 1.5 4.1.1:
"If both devices open an AVCTP channel at the same time both channels
shall be closed and each device shall wait a random time
(not more than 1 s and not less than 100ms) and then try to open
the AVCTP channel again."
2015-03-13 13:28:23 +02:00
Marcin Kraglak
fd184248cf audio/avctp: Cancel outgoing connection in case of conflict
According to AVRCP Spec 1.5 AVCTP channel should be closed if both
sides try establish connection at the same time.
2015-03-13 13:28:23 +02:00
Marcin Kraglak
258c5ee46c audio/avrcp: Pass error to session_destroy()
It will allow us to invoke btd_service_connecting_complete() or
btd_service_disconnecting_complete() with correct error code.
2015-03-13 13:28:23 +02:00
Marcin Kraglak
58cb825246 audio/avrcp: Always notify about disconnecting service
If there is a call to avrcp_connect, state of service is changed to
BTD_SERVICE_STATE_CONNECTING. If connection failed, state didn't change
to BTD_SERVICE_STATE_DISCONNECTED because controller_destroy() and
target_destroy() was not called. Set state of services in session_destroy()
instead.
2015-03-13 13:28:23 +02:00
Marcin Kraglak
bc978b5b79 audio/avctp: Pass error argument to avctp_state_changed callback
This additional argument will help higher layer to recognize what action should be
taken in error condition.
2015-03-13 13:28:23 +02:00
Marcin Kraglak
c7aaa93147 audio/avrcp: Remove redundant check
There is no need to check if device has specific services,
it was checked in session_init_control.
2015-03-13 13:28:22 +02:00