- 09 Mar, 2016 6 commits
-
-
Jakub Pawlowski authored
Now that the instance id is equal to handle, we no longer need this mapping function. Bug: 27455533 Change-Id: I6760f8fc81460df8520d4ebf1899ed256ce5ad1e
-
Jakub Pawlowski authored
Currently we generate an id for each GATT attribute. Those ids are used to differentiate between attributes that have the same UUID. We need to get rid of those ids because it won't work with partial GATT database updates due to "service change" notifications. Instead, attribute handles, which are unique across the whole GATT database will be used. This is first patch in series to achieve that. It gets rid of id generation, and just assigns handle in place of ids inside of gatt cache. Upcoming patches will change the GATT cache API and eventually get rid of "id" completly. Bug: 27455533 Change-Id: I74c10872ecc223329b8ac7fef4085963bf272624
-
Jakub Pawlowski authored
We don't really support multiple HID services in same device. We shouldn't use default value 0 for service id. We shouldn't merge service id and characteristic id into one field, as it's done not right right now. Bug: 27455533 Change-Id: I46cc1b62bb2c7393e62f3b1a8e4650706954a066
-
Jakub Pawlowski authored
Currently when storing GATT cache into file, we save it piece after piece, max 10 elements at once. This is not necessary, we have enough space to just save all at once. Also the logic doesn't need to be so complicated - no need to state machine for such simple task. Bug: 27455533 Change-Id: I82923dbedfb317835e45e13e0ea28151eb524d37
-
Jakub Pawlowski authored
Bug: 27455533 Change-Id: Ie5661577320810468dd635022027a1e1a2f70a3e
-
Jakub Pawlowski authored
Bug: 27455533 Change-Id: I653b563d3b3c233ffe31b0a35d396a66db363459
-
- 08 Mar, 2016 3 commits
-
-
Dimitry Ivanov authored
Change-Id: Ib226f087a76ddd426e40f4d6d94f2ed758660c36
-
Sanket Agarwal authored
Audio focus handling for A2DP sink currently split between Fluoride and the component sitting on top of it. Since this is not the best place to decide policies, we move all such decisions to the upper layer. Bug: b/26928143 Change-Id: I67a1a2a50782289e7e31447b01ee29a21bc8dac2
-
Pavlin Radoslavov authored
Function btm_send_pending_direct_conn() dequeues tL2C_LCB entries from the conn_pending_q queue and calls the processing function. However, there is the possilility of a race condition and releasing the entry by l2cu_release_lcb() before it is processed. Now tL2C_LCB that are not in_use are ignored. Bug: 27418154 Change-Id: I4b5fda605a60c8aebbf5587bb12dd74ac5d28f68
-
- 04 Mar, 2016 1 commit
-
-
Pavlin Radoslavov authored
Explicitly remove MCB entry from the LCB mapping table when the entry is released. Bug: 27334916 Change-Id: I14e3f1f5eeffa33e733c4a116d0a70cd7c06753f
-
- 03 Mar, 2016 2 commits
-
-
Chaojing Sun authored
Fixes a connection issue where Dell keyboards do not remain connected immediately after pairing by removing the gatt_config_ccc_complete() call in gatt_cl_op_cmpl_cback(). Bug: 27385897 Change-Id: Iee342975dce9fdcd5dcf8f9d459f74fe13d02531
-
Prashant Malani authored
- Move variables within #defines to avoid unused errors. - Place #define's correctly to avoid unused function errors. - Correct parameter passed into a function. Bug: 27336841 Change-Id: I7c2ab24b3bd3725d126c90483473af83b88687a2
-
- 02 Mar, 2016 2 commits
-
-
Ajay Panicker authored
In the bugreport in b/27274486 comment #11, the line indicating the beginning of BTSNOOP LOGS was slightly indented thus causing btsnooz to not find the beginning of the log. Bug: 27419027 Change-Id: I3b88e6a3f6f2d6c4d3cbbadb0a93cbd7965f56c8
-
Pavlin Radoslavov authored
Update the l2cu_initialize_fixed_ccb() implementation so it returns only entries that are properly initialized. In some complex scenarios, the p_lcb->p_fixed_ccbs[] array might contain an entry that has been released by l2cu_release_ccb(), and such entry cannot be reused as-is. Bug: 26927945 Change-Id: I42d42926cc6da6b8be662781545753c36b75968e
-
- 01 Mar, 2016 1 commit
-
-
Pavlin Radoslavov authored
Add missing reset of queue pointers to NULL affter fixed_queue_free() calls. Bug: 26742590 Change-Id: Ib9035d58c0f98a47ce2935e073c6f288ae03ac92
-
- 27 Feb, 2016 1 commit
-
-
Andre Eisenbach authored
Service discovery cannot be initiated when the dm search state machine is not in idle state. This patch ensures that service discovery is always cancelled regardless of the current state of inquiry. Bug: 27368986 Change-Id: Ib83d4c8d389e50a1c65e52b343f4996455747836
-
- 26 Feb, 2016 1 commit
-
-
Andre Eisenbach authored
-
- 25 Feb, 2016 2 commits
-
-
Pavlin Radoslavov authored
Fix a crash condition that is triggered when the firmware configuration takes too long: 1. The startup_timer expires, and it resets startup_future to NULL 2. The delayed firmware_config_callback is received, and it tries to use the startup_future pointer (already set to NULL). [Cherry-pick from AOSP] Bug: 27336555 Change-Id: I4b04ca08a32c947f6f1eaabec7c4b099f96aab59
-
Edward Savage-Jones authored
Incorrect usage of memset Bug: 27358983 Change-Id: I7d96c560c4b462c2794b63eb66c7272b1280ba23
-
- 24 Feb, 2016 8 commits
-
-
Ajay Panicker authored
Bug: 27315491 Change-Id: If57f7c23c94890e5f1cf196d2ec7a2a667b48cec
-
Ajay Panicker authored
Before: Alarm : btm_ble.adv_raddr_timer (SINGLE) Action counts (sched/resched/exec/cancel) : 1 / 0 / 0 / 0 Deviation counts (overdue/premature) : 0 / 0 Time in ms (since creation/interval/remaining) : 17824 / 900000 / 882176 Callback execution time in ms (total/max/ave) : 0 / 0 / 0 Overdue scheduling time in ms (total/max/ave) : 0 / 0 / 0 Premature scheduling time in ms (total/max/ave) : 0 / 0 / 0 After: Alarm : btm_ble.adv_raddr_timer (SINGLE) Action counts (sched/resched/exec/cancel : 1 / 0 / 0 / 0 Deviation counts (overdue/premature) : 0 / 0 Time in ms (since creation/interval/remaining) : 88268 / 900000 / 811732 Callback execution time in ms (total/max/avg) : 0 / 0 / 0 Overdue scheduling time in ms (total/max/avg) : 0 / 0 / 0 Premature scheduling time in ms (total/max/avg): 0 / 0 / 0 Bug: 27294154 Change-Id: I0e318ef570a591626fbc6443feace1cc99c06baf
-
Ajay Panicker authored
Before: TxQueue: Counts (enqueue/dequeue/readbuf) : 0 / 0 / 0 Last update time ago in ms (enqueue/dequeue/readbuf) : 0 / 0 / 0 Frames per packet (total/max/ave) : 0 / 0 / 0 Counts (flushed/dropped/dropouts) : 0 / 0 / 0 Last update time ago in ms (flushed/dropped) : 0 / 0 Counts (underflow/underrun) : 0 / 0 Bytes (underflow/underrun) : 0 / 0 Last update time ago in ms (underflow/underrun) : 0 / 0 Enqueue deviation counts (overdue/premature) : 0 / 0 Enqueue overdue scheduling time in ms (total/max/ave) : 0 / 0 / 0 Enqueue premature scheduling time in ms (total/max/ave) : 0 / 0 / 0 Dequeue deviation counts (overdue/premature) : 0 / 0 Dequeue overdue scheduling time in ms (total/max/ave) : 0 / 0 / 0 Dequeue premature scheduling time in ms (total/max/ave) : 0 / 0 / 0 After: TxQueue: Counts (enqueue/dequeue/readbuf) : 0 / 0 / 0 Last update time ago in ms (enqueue/dequeue/readbuf) : 0 / 0 / 0 Frames per packet (total/max/ave) : 0 / 0 / 0 Counts (flushed/dropped/dropouts) : 0 / 0 / 0 Last update time ago in ms (flushed/dropped) : 0 / 0 Counts (underflow/underrun) : 0 / 0 Bytes (underflow/underrun) : 0 / 0 Last update time ago in ms (underflow/underrun) : 0 / 0 Enqueue deviation counts (overdue/premature) : 0 / 0 Enqueue overdue scheduling time in ms (total/max/ave) : 0 / 0 / 0 Enqueue premature scheduling time in ms (total/max/ave) : 0 / 0 / 0 Dequeue deviation counts (overdue/premature) : 0 / 0 Dequeue overdue scheduling time in ms (total/max/ave) : 0 / 0 / 0 Dequeue premature scheduling time in ms (total/max/ave) : 0 / 0 / 0 Bug: 27294154 Change-Id: I2952ceed7b02db0d8497b67de0f57e4f9128e5bf
-
Ajay Panicker authored
Bug: 27294154 Change-Id: Ice69835cdddfc01e2222a47b0ceeb30d243442f5
-
Ajay Panicker authored
Bug: 27294154 Change-Id: I0b7e5a9dda30875c9fc877baffa0daac9184cd42
-
Jakub Pawlowski authored
This patch adds some missing header files that prevented wakelocks from compiling on linux. Bug: 27324453 Change-Id: Ifabf3350fe840524cf7e1ec7aa2825acb4399c81
-
Jakub Pawlowski authored
Bug: 27324453 Change-Id: Icebf0273c39040ff6b1bb29dcc4d0a827e25b4a8
-
Jakub Pawlowski authored
This patch removes counter. We were never using those values, except for increasing them. Bug: 27324326 Change-Id: I3122a36fa0435a36a8401792267cb5ebff5ab269
-
- 19 Feb, 2016 4 commits
-
-
Pavlin Radoslavov authored
* Remove HCI_GET_CMD_BUF() wrapper macro, and replace it with its default implementation: (BT_HDR *)osi_malloc(HCI_CMD_BUF_SIZE) * Remove explicit checks for NULL when HCI_GET_CMD_BUF() was used. [Cherry-picked from AOSP/master] Bug: 27048759 Change-Id: I7c71b408f40d58f6ebf3a310aa806daba3342f77
-
Pavlin Radoslavov authored
Removed unused conditional defines from bt_target.h that are not needed anymore. [Cherry-picked from AOSP/master] Change-Id: Ic424f673332668b21db11d323b389f5a5f4fba81
-
Andre Eisenbach authored
This reverts commit 0ec558b5.
-
Andre Eisenbach authored
Original commit breaks Fugu remote (amongst other things). This reverts commit 44efbb13. Change-Id: Ifa4ab421e0b14f59988d2e3ac7f338f0844aaa2d
-
- 18 Feb, 2016 9 commits
-
-
Ajay Panicker authored
Change-Id: I3868365e7fd166517b13ff03a15d629271bd47b4
-
Pavlin Radoslavov authored
Fix a failing unit test that was broken by some earlier cleanup work. Bug: 26879229 Bug: 27152031 Change-Id: I244d078a23a69c82fbc7cb4468649ab933131977
-
Pavlin Radoslavov authored
* Add new function metrics_a2dp_session() to connect A2DP metrics into Protobuf * Add new function btif_update_a2dp_metrics() that is called when the metrics should be callected * Add few more statistics to the BTIF media stats. Change-Id: I5862ac82e55b3546dc1fbde0c78cb4683e40d19e
-
Andre Eisenbach authored
Bug: 27222508 Change-Id: I0075b4480aff52dcdc326b7bdb7154ca919ccee9
-
Jaganath Kanakkassery authored
In the BTU handler for messages from the controller, rn event may be received that the stack does not have to respond to. In this case, the stack should go to sleep. This patch calls the provided function in the BTU to enter sleep. Signed-off-by:
Jaganath Kanakkassery <jaganathx.kanakkassery@intel.com> Signed-off-by:
Yingkai Cheng <yingkaix.cheng@intel.com> Signed-off-by:
Zhiquan Liu <zhiquan.liu@intel.com> Change-Id: Ie7c3fcae418eb2480338509e86b7cc870177a965
-
Ajay Panicker authored
Log the bond state, the funciton that updated the bond state, as well as the device that was updated. Also added in functionality for protobuff logging. Example output Bond Events: Total Number of events: 8 Time BD_ADDR Function State 00:01:12.353 ac:9e:17:07:58:d8 btif_dm_create_bond BOND_STATE_NONE 00:01:12.354 ac:9e:17:07:58:d8 bond_state_changed BOND_STATE_BONDING 00:01:13.999 ac:9e:17:07:58:d8 bond_state_changed BOND_STATE_BONDING 00:01:14.778 ac:9e:17:07:58:d8 bond_state_changed BOND_STATE_BONDED 00:01:14.827 ac:9e:17:07:58:d8 bond_state_changed BOND_STATE_BONDED 00:01:31.534 34:36:3b:c4:bf:99 btif_dm_create_bond BOND_STATE_NONE 00:01:31.535 34:36:3b:c4:bf:99 bond_state_changed BOND_STATE_BONDING 00:01:32.771 34:36:3b:c4:bf:99 bond_state_changed BOND_STATE_BONDING Change-Id: I01ab3a232300203704a356a17aa045e638f97463
-
Loic Poulain authored
Start and Stop are called on HID driver probe/unprobe. Open/Close are called when driver is interesed/not-interested in data reports, typically when user-space open/close the input device. So we can have several open/close calls for one start/stop cycle. https://www.kernel.org/doc/Documentation/hid/hid-transport.txt Problem is that current implementation disables data reporting on close but never enables it on open. This patch fixes this issue to match the expected behavior. Change-Id: Id5d4627dba389338b06df60a6e1d993ac3e3e5ec Signed-off-by:
Loic Poulain <loic.poulain@intel.com> Signed-off-by:
Zhiquan Liu <zhiquan.liu@intel.com>
-
Jakub Pawlowski authored
Change-Id: I72369c0b7678338fc8ccf520b59a95affdfd2994
-
Andre Eisenbach authored
Change-Id: Iea44eeed487df3236d9b482b7e5bbc92f7f46797
-