OSDN Git Service
Zach Johnson [Mon, 16 Nov 2020 21:29:03 +0000 (21:29 +0000)]
Merge "rusty-gd: switch added services based on module under test" am:
71a9cf700d
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1497017
Change-Id: I63eac6fdeca2ff7f580f47da1760ea5506a20c98
Zach Johnson [Mon, 16 Nov 2020 21:23:44 +0000 (21:23 +0000)]
Merge "Simplify HAL protos" am:
7587b305c9
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1496538
Change-Id: I82641d4b8ea06c00d3b270c4d94c256b3d8a9168
Zach Johnson [Mon, 16 Nov 2020 20:22:59 +0000 (20:22 +0000)]
Merge "rusty-gd: switch added services based on module under test"
Zach Johnson [Wed, 11 Nov 2020 21:54:16 +0000 (13:54 -0800)]
rusty-gd: switch added services based on module under test
Bug:
171749953
Tag: #gd-refactor
Test: gd/cert/run --rhost
Change-Id: I4c5ea7aa7273b77c95bcc9b8e21d286b35e67d10
Zach Johnson [Mon, 16 Nov 2020 18:06:56 +0000 (18:06 +0000)]
Merge "Simplify HAL protos"
Treehugger Robot [Mon, 16 Nov 2020 02:02:53 +0000 (02:02 +0000)]
Merge "Disable sniff for faulty remotes" am:
34140a7d4c
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1496006
Change-Id: I43c037e3e81a9fa54fe032e6d79a5ad6eb218f47
Treehugger Robot [Mon, 16 Nov 2020 01:54:17 +0000 (01:54 +0000)]
Merge "Disable sniff for faulty remotes"
Chris Manton [Sat, 14 Nov 2020 17:56:41 +0000 (17:56 +0000)]
Canonicalization of tGATT_CBACK gap and gatt am:
4692b7f16f
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1498682
Change-Id: I1156c92f8aa7280b47e88cce682788fe9a05ad4f
Chris Manton [Thu, 12 Nov 2020 18:41:01 +0000 (10:41 -0800)]
Canonicalization of tGATT_CBACK gap and gatt
Towards readable code
Bug:
163134718
Tag: #refactor
Test: CtsVerifier
Change-Id: I34092cd3c8776d649532a192e90190516d2ae09d
Treehugger Robot [Sat, 14 Nov 2020 00:18:07 +0000 (00:18 +0000)]
Merge "Fix for Multiplication overflow will be crash btstack" am:
47afa6d49d
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1490257
Change-Id: Ie9b3119f99e6f08aa92a1f0ed5e0cc001cb3dc82
Treehugger Robot [Sat, 14 Nov 2020 00:07:38 +0000 (00:07 +0000)]
Merge "Fix for Multiplication overflow will be crash btstack"
Zach Johnson [Fri, 13 Nov 2020 20:05:57 +0000 (20:05 +0000)]
Merge changes I014fe130,I2e0301e3 am:
e968b9f734
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1491816
Change-Id: If94f367108a263f011f448fd739058442e7a1b0c
Zach Johnson [Fri, 13 Nov 2020 19:41:21 +0000 (19:41 +0000)]
Merge changes I014fe130,I2e0301e3
* changes:
rusty-gd: convert hci facade to rust_grpcio build targets
rusty-gd: add stubs for hci hal facade
cnx421 [Fri, 6 Nov 2020 07:35:04 +0000 (15:35 +0800)]
Fix for Multiplication overflow will be crash btstack
When a2dp using LDAC ecoding PCM,if encoding thread is runned by deley after 2 secends,
btstack will overflow .System will abort to crash by arm gcc code.
Bug:
172590955
Tag: #stability
Test: compile & verify basic functions working
Test: pair to a support LDAC ecode BT headset
Change-Id: Ie470bd51bfd7951d0c674b37aa6af7554cf9faa8
Treehugger Robot [Fri, 13 Nov 2020 07:42:00 +0000 (07:42 +0000)]
Merge "gd: Use ExtendedAdvertising as main advertising function" am:
5bcc243ccc
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1492960
Change-Id: I7486b2970034d1a00d97d30bb1b016bf8bc9038a
Treehugger Robot [Fri, 13 Nov 2020 06:42:38 +0000 (06:42 +0000)]
Merge "gd: Use ExtendedAdvertising as main advertising function"
Michael Sun [Thu, 12 Nov 2020 21:05:36 +0000 (21:05 +0000)]
Merge changes Ida69a204,Iad4dbf36,I6749a539,Iab3b9763 am:
cdc11ddccb
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1490679
Change-Id: Id94ff56221630d26f31d9a91cecf1d3096fd2464
Michael Sun [Thu, 12 Nov 2020 20:35:32 +0000 (20:35 +0000)]
Merge changes Ida69a204,Iad4dbf36,I6749a539,Iab3b9763
* changes:
btaa: subscribe to bt_snoop to receive HCI data
btaa: subscribe to SystemSuspend for wakelock notification
btaa: subscribe to SystemSuspend for wakeup notification
btaa: introduce Bluetooth Activity Attribution skeleton
Chris Manton [Thu, 12 Nov 2020 19:24:03 +0000 (19:24 +0000)]
l2cap: Allow services without config indicator cb to register am:
6c319f3219
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1497502
Change-Id: I548c627ae0c6f0b1861f28dd885901c293f57014
Chris Manton [Thu, 12 Nov 2020 19:23:59 +0000 (19:23 +0000)]
Re-log stack/l2cap/l2c_api::L2CA_DisconnectReq am:
8cd1cfabdc
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1497501
Change-Id: I6ae5a2cbd8cd4735f4eeafe41bd94729435aa1fb
Chris Manton [Thu, 12 Nov 2020 19:23:56 +0000 (19:23 +0000)]
Re-log stack/acl/btm_acl::acl_disconnect_after_role_switch am:
f2c7cecacb
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1497500
Change-Id: I0e1bb8b6de710456e389970495cf0008faf1ada0
Chris Manton [Thu, 12 Nov 2020 19:23:52 +0000 (19:23 +0000)]
Re-log stack/gatt/gatt_cl::gatt_process_prep_write_rsp am:
37fc5e5af3
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1497499
Change-Id: Ia9ea552d80f2b32ea9ede68ee41a9916e7932ce9
Chris Manton [Thu, 12 Nov 2020 19:23:48 +0000 (19:23 +0000)]
Stat-ify btif/src/btif_gatt_client am:
511ae6ed01
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1497498
Change-Id: Id15d127802eb355dd7520cd52baff97a9ca52fa2
Chris Manton [Thu, 12 Nov 2020 19:23:44 +0000 (19:23 +0000)]
Add btif/src/btif_gatt_client::bta_gattc_event_text am:
34aaeba697
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1496555
Change-Id: Ibd0a8f4be7b7fc1f4a7c42461568c41e6ac868fe
Chris Manton [Thu, 12 Nov 2020 19:23:40 +0000 (19:23 +0000)]
gatt: Properly put gatt status in field am:
5b019c5a96
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1496554
Change-Id: Idbfa2771edd02a06c15ff3046a4b99ba1377b25e
Chris Manton [Thu, 12 Nov 2020 19:23:36 +0000 (19:23 +0000)]
l2cap: Add mtu and mps to lead eatt channel am:
632687315b
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1496553
Change-Id: I6bfd9fa17343bf223f47481324f9ba055e061b4b
Chris Manton [Thu, 12 Nov 2020 19:23:31 +0000 (19:23 +0000)]
Re-log stack/l2cap/l2c_ble::l2cble_process_sig_cmd am:
24185775e9
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1496552
Change-Id: I9f31de87c66b8ffc7a38b4480ecd8d531adce96c
Chris Manton [Thu, 12 Nov 2020 19:23:28 +0000 (19:23 +0000)]
Stat-ify functions in bta/sys/bta_sys_main am:
2b22c4ea7f
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1496551
Change-Id: I0e1f56a0e0f38bedfa05a7c3a2680436ed328e54
Chris Manton [Thu, 12 Nov 2020 19:23:24 +0000 (19:23 +0000)]
Add BtaIdSysText::BTA_ID_GATTC am:
f9492238c2
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1496550
Change-Id: I6bde105772f4d402e5b9e6bf30720dbbcfebd063
Chris Manton [Thu, 12 Nov 2020 19:23:19 +0000 (19:23 +0000)]
Add stack/include/l2cdefs::l2cap_le_result_code_text am:
f33fcfc2f9
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1496549
Change-Id: I1e5b157c6007657d9d4117c19a5a7528e6c28d0a
Chris Manton [Thu, 12 Nov 2020 19:23:15 +0000 (19:23 +0000)]
Use stack/l2cap/l2c_csm::channel_state_text() am:
19be3c2d2b
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1496548
Change-Id: I85894b1d263d5a7358e7ff86d7e051a6a692eb73
Chris Manton [Thu, 12 Nov 2020 19:23:10 +0000 (19:23 +0000)]
enum-ify stack/l2cap/l2c_int::L2CEVT_LP am:
a424a2559c
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1496547
Change-Id: I040df776f6bd418c8bbf1792d0a54629f4eb113e
Chris Manton [Thu, 12 Nov 2020 19:22:55 +0000 (19:22 +0000)]
Add stack/l2cap/l2c_csm::channel_state_text am:
c331074767
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1496546
Change-Id: Ibd29f067361aa861c9e2ff0100bb3bb69a9263ce
Chris Manton [Wed, 11 Nov 2020 19:44:29 +0000 (11:44 -0800)]
l2cap: Allow services without config indicator cb to register
l2cap prevented BNEP from registering b/c of a missing
(now optional) config indicator callback.
Bug:
170278807
Tag: #stability
Test: CtsVerifier
Change-Id: Ibe849b2de82913f2228d877227179c223aab8c4e
Chris Manton [Thu, 12 Nov 2020 00:44:15 +0000 (16:44 -0800)]
Re-log stack/l2cap/l2c_api::L2CA_DisconnectReq
Toward loggable code
Bug:
163134718
Tag: #refactor
Test: CtsVerifier
Change-Id: I407f9aa305a8e70c23a1b83a898684f2798a5a32
Chris Manton [Thu, 12 Nov 2020 00:44:45 +0000 (16:44 -0800)]
Re-log stack/acl/btm_acl::acl_disconnect_after_role_switch
Toward loggable code
Bug:
163134718
Tag: #refactor
Test: CtsVerifier
Change-Id: Ifa72697bc33520e21c51ce7d82856497adf6f282
Chris Manton [Thu, 12 Nov 2020 16:40:10 +0000 (08:40 -0800)]
Re-log stack/gatt/gatt_cl::gatt_process_prep_write_rsp
Toward loggable code
Bug:
163134718
Tag: #refactor
Test: CtsVerifier
Change-Id: Ice004fb4babd77075dd1dba26198186df75c5880
Chris Manton [Thu, 12 Nov 2020 00:44:27 +0000 (16:44 -0800)]
Stat-ify btif/src/btif_gatt_client
Toward readable code
Bug:
163134718
Tag: #refactor
Test: CtsVerifier
Change-Id: I2d7da0024fefd37ae7c72d0e13d3087904740182
Chris Manton [Wed, 11 Nov 2020 22:03:43 +0000 (14:03 -0800)]
Add btif/src/btif_gatt_client::bta_gattc_event_text
Toward loggable code
Bug:
163134718
Tag: #refactor
Test: CtsVerifier
Change-Id: I041492f74c5e0d91f1b8f45370c263bcd8f5b343
Chris Manton [Thu, 12 Nov 2020 02:27:12 +0000 (18:27 -0800)]
gatt: Properly put gatt status in field
Bug:
172805487
Test: CtsVerifier
Tag: #stability
Change-Id: I4e730cd8b367fe9764bae3bc49a7a4ee8f00c708
Venkata Jagadeesh Garaga [Thu, 23 May 2019 12:43:53 +0000 (18:13 +0530)]
Disable sniff for faulty remotes
Some remote supports sniff but when dut initiates sniff req,
remote wont respond and acl connection will be terminated
from soc with LMP responce time out
Tag: #compatibility
Bug:
163109241
Test: Manual
Change-Id: I77b5c0daf22c9f3adaf2a7b75c20bc8e27d8990c
Chris Manton [Wed, 11 Nov 2020 20:58:17 +0000 (12:58 -0800)]
l2cap: Add mtu and mps to lead eatt channel
Bug:
159786353
Test: CtsVerifier
Tag: #feature
Change-Id: Ia5be81bde7a10d0b8e466b9b856d75d52b43a349
Chris Manton [Wed, 11 Nov 2020 20:03:41 +0000 (12:03 -0800)]
Re-log stack/l2cap/l2c_ble::l2cble_process_sig_cmd
Toward loggable code
Bug:
163134718
Tag: #refactor
Test: CtsVerifier
Change-Id: I6aad2f2d7768fc5baaab2577c5c6814d23629c53
Chris Manton [Wed, 11 Nov 2020 23:40:56 +0000 (15:40 -0800)]
Stat-ify functions in bta/sys/bta_sys_main
Toward readble code
Bug:
163134718
Tag: #refactor
Test: CtsVerifier
Change-Id: Ibb761116da5ccec5562ac144349f8f419cb10319
Chris Manton [Thu, 12 Nov 2020 00:27:13 +0000 (16:27 -0800)]
Add BtaIdSysText::BTA_ID_GATTC
Toward loggable code
Bug:
163134718
Tag: #refactor
Test: CtsVerifier
Change-Id: I554f271c622e8c9e7285b26494bdd90bd0a68822
Chris Manton [Wed, 11 Nov 2020 16:54:36 +0000 (08:54 -0800)]
Add stack/include/l2cdefs::l2cap_le_result_code_text
Toward loggable code
Bug:
163134718
Tag: #refactor
Test: CtsVerifier
Change-Id: I4ed9cca2e866f5862e029916e2b964e720628eb2
Chris Manton [Wed, 11 Nov 2020 16:20:19 +0000 (08:20 -0800)]
Use stack/l2cap/l2c_csm::channel_state_text()
Toward loggable code
Bug:
163134718
Tag: #refactor
Test: CtsVerifier
Change-Id: I29fde7572ac65e739d83cec7c19cae2d3bd773a6
Chris Manton [Wed, 11 Nov 2020 15:57:27 +0000 (07:57 -0800)]
enum-ify stack/l2cap/l2c_int::L2CEVT_LP
Toward readable code
Bug:
163134718
Tag: #refactor
Test: CtsVerifier
Change-Id: I03fa8bfd1866d7bb3d8cb8a1b7c6315c744728c4
Chris Manton [Wed, 11 Nov 2020 15:51:12 +0000 (07:51 -0800)]
Add stack/l2cap/l2c_csm::channel_state_text
Toward loggable code
Bug:
163134718
Tag: #refactor
Test: CtsVerifier
Change-Id: I6a85fe9e5d0ae3c16fa2dd5fe4933f754f270a9f
Hansong Zhang [Wed, 11 Nov 2020 23:01:05 +0000 (23:01 +0000)]
Clean up user apps before GD is shutdown am:
13fe711de4
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1496537
Change-Id: I99b8d2c9e68e46ff3f861549ba2d9309354d680e
Zach Johnson [Wed, 11 Nov 2020 20:51:59 +0000 (12:51 -0800)]
Simplify HAL protos
* It's the HciHal, so HCI on functions and structs is redundant.
* FetchXYZ returns a stream, so rename to StreamXYZ
* Event & Commands are less about packets, so drop packet from the
struct names
Bug:
171749953
Tag: #gd-refactor
Test: gd/cert/run --rhost
Change-Id: I62fb098ee6a5a4805ad0667101c7de5a3368c4f2
Hansong Zhang [Wed, 11 Nov 2020 19:25:16 +0000 (11:25 -0800)]
Clean up user apps before GD is shutdown
GATT, L2C, SDP, BTM depend on GD core modules if GD is enabled. Stop
them first before GD.
Bug:
159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I8f3029d396fc05878a1ffa95ef935b4a5fa1cbd1
Treehugger Robot [Wed, 11 Nov 2020 18:20:08 +0000 (18:20 +0000)]
Merge "L2CAP: keep cached peer configuration locally" am:
c89683cb70
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1485180
Change-Id: I3793ecadc1359c46872a6c7351a3c468583aa1ef
Treehugger Robot [Wed, 11 Nov 2020 17:41:14 +0000 (17:41 +0000)]
Merge "L2CAP: keep cached peer configuration locally"
Treehugger Robot [Wed, 11 Nov 2020 01:21:15 +0000 (01:21 +0000)]
Merge "Use p_acl->remote_addr to do BTA_dm_acl_down" am:
b14c60ebbe
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1492959
Change-Id: I4aa0944ab948e6e5c36457aa7a23cee2a9e5b647
Treehugger Robot [Wed, 11 Nov 2020 01:01:02 +0000 (01:01 +0000)]
Merge "Use p_acl->remote_addr to do BTA_dm_acl_down"
Michael Sun [Wed, 11 Nov 2020 00:30:23 +0000 (00:30 +0000)]
Merge changes from topics "btaa-jni-1", "btaa-jni-2" am:
a36d154846
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1488139
Change-Id: Ie8b3f7c7bf690afe9d72d28f8c28a4f0e999b58c
Michael Sun [Wed, 11 Nov 2020 00:29:47 +0000 (00:29 +0000)]
btaa: new include files in bt stack for BTAA interface am:
439abd73ae
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1488138
Change-Id: Ibc0fa44554ebb37a97981ef11cc8f40afbe17301
Michael Sun [Wed, 11 Nov 2020 00:00:11 +0000 (00:00 +0000)]
Merge changes from topics "btaa-jni-1", "btaa-jni-2"
* changes:
btaa: introduce btif interface for btaa
btaa: new include files in bt stack for BTAA interface
Chienyuan [Tue, 10 Nov 2020 11:27:54 +0000 (19:27 +0800)]
gd: Use ExtendedAdvertising as main advertising function
Tag: #gd-refactor
Bug:
169125803
Test: cert/run --host
Test: atest --host bluetooth_test_gd
Change-Id: Idb3f4d3dde3d554cb2115e82bba4880bc674157e
Michael Sun [Fri, 6 Nov 2020 19:53:59 +0000 (19:53 +0000)]
btaa: subscribe to bt_snoop to receive HCI data
Subscribe to the btsnoop_mem to receive HCI data when captured.
Tag: #feature
Bug:
170315554
Test: verified BTAA module receives specified HCI packets
Change-Id: Ida69a204f11cb13aca6eda28a5850b8b576e5f17
Michael Sun [Fri, 6 Nov 2020 08:18:19 +0000 (08:18 +0000)]
btaa: subscribe to SystemSuspend for wakelock notification
Subscribe to the SystemSuspend provided wakelock information by the
Bluetooth wakelock name.
Tag: #feature
Bug:
170315554
Test: verified BTAA module receives specified wakelock notification
Change-Id: Iad4dbf36690aea2ba9b1f151f0d0d118e6015781
Michael Sun [Fri, 6 Nov 2020 01:19:16 +0000 (01:19 +0000)]
btaa: subscribe to SystemSuspend for wakeup notification
This change initialize the SystemSuspend client at BTAA module and have
it subscribed to wakeup notification with wakeup reasons.
Tag: #feature
Bug:
170315554
Test: verified BTAA module receives wakeup notification
Change-Id: I6749a539f9a59f1893f4159cec6b7c9f517ead9d
Michael Sun [Thu, 5 Nov 2020 06:33:48 +0000 (06:33 +0000)]
btaa: introduce Bluetooth Activity Attribution skeleton
This change added skeleton implementation of Bluetooth Activity
Attribution (BTAA) into the Bluetooth stack.
Tag: #feature
Bug:
170315554
Test: verified locally BTAA module get initialized
Change-Id: Iab3b976370e4d1866e9a308d4e6f9a11cdff037c
weichinweng [Tue, 10 Nov 2020 07:06:30 +0000 (15:06 +0800)]
Use p_acl->remote_addr to do BTA_dm_acl_down
Use p_acl->remote_addr to do BTA_dm_acl_down, not p_acl->conn_addr.
Bug:
171669750
Tag: #feature
Test: compile & forget BLE/Hearingaids device while connected.
Change-Id: Ie44e818c4bc176df5426996a06a99536c5250077
Hansong Zhang [Tue, 10 Nov 2020 00:16:09 +0000 (00:16 +0000)]
btm_get_dev_class: Create empty record if not found am:
3cd2f403fa
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1493136
Change-Id: I5a0580fb5aeb0c169bca86f6ce15bf53df56508e
Hansong Zhang [Mon, 9 Nov 2020 19:38:02 +0000 (11:38 -0800)]
btm_get_dev_class: Create empty record if not found
We may not have a device record at that time, so create one if needed.
This fixes the diff introduces in https://android-review.googlesource.com/c/platform/system/bt/+/
1480894/9/stack/acl/btm_acl.cc#b2183
Bug:
159815595
Tag: #refactor
Test: compile & verify basic functions working
Test: pair to a speaker
Change-Id: I0149ecb7a11ed33f6cb6344f74c08746d948c513
Zach Johnson [Mon, 9 Nov 2020 01:24:39 +0000 (01:24 +0000)]
Merge changes Ibd11c0a8,I11fe6201,I63049dbb,I97ef3f26,I11cbffde, ... am:
17568c91e9
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1487072
Change-Id: Ib85a316e465f86a41eccc74355078904ad42ad46
Zach Johnson [Mon, 9 Nov 2020 00:54:29 +0000 (16:54 -0800)]
rusty-gd: convert hci facade to rust_grpcio build targets
also, cleans up some of the temp hacks
Bug:
171749953
Tag: #gd-refactor
Test: gd/cert/run --rhost
Change-Id: I014fe130d2536759a635bf5993d75638dfb9d54a
Zach Johnson [Thu, 5 Nov 2020 02:17:48 +0000 (18:17 -0800)]
rusty-gd: add stubs for hci hal facade
no implementation quite yet
Bug:
171749953
Tag: #gd-refactor
Test: gd/cert/run --rhost
Change-Id: I2e0301e37d3c0036a9d1fcec7674d471ba4c8d86
Zach Johnson [Mon, 9 Nov 2020 00:55:52 +0000 (00:55 +0000)]
Merge changes Ibd11c0a8,I11fe6201,I63049dbb,I97ef3f26,I11cbffde, ...
* changes:
rusty-gd: clean up imports & pub exports
rusty-gd: remove one level of indirection for hci facade proto
rusty-gd: collapse facade implementation into facade.rs
rusty-gd: move hci facade client contents to root server
Start integration with gd rust & cert tests
GD: signal on signal port when server is ready
Catch sigint to shut down BT testing process
Chris Manton [Sun, 8 Nov 2020 01:33:47 +0000 (01:33 +0000)]
enum-ify stack/include/smp_api_types::SMP_OPCODE am:
4b576f21b9
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1491500
Change-Id: I2134de4c24ec47c5bfe1215be3f6968f245fcdbb
Chris Manton [Sun, 8 Nov 2020 01:33:44 +0000 (01:33 +0000)]
gd_acl_shim: Wrap remote version check am:
ae7da94089
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1491499
Change-Id: I22f453bc2aa70e18316551bacb73c0c686788b8e
Chris Manton [Sun, 8 Nov 2020 01:33:41 +0000 (01:33 +0000)]
Add shim btm_read_remote_version_complete am:
d53fd9062d
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1491498
Change-Id: I177e860f978ccaa730c2f21a05c7b596cc5bbda0
Chris Manton [Sun, 8 Nov 2020 01:33:38 +0000 (01:33 +0000)]
Restore ability to send read remote version information on le links am:
add46136bc
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1491497
Change-Id: If9fc90cce089ac0704a2f4cf07a5cc0d3a38454d
Chris Manton [Sun, 8 Nov 2020 01:33:34 +0000 (01:33 +0000)]
gd: Add le read_remote_version_info am:
fb52fa0ec3
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1491496
Change-Id: Ib976ef4f62cde7321dc73e3d68449a460f667910
Chris Manton [Sun, 8 Nov 2020 01:33:16 +0000 (01:33 +0000)]
smp: Log if remote lmp_version is invalid am:
6f45f49659
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1491244
Change-Id: I8c11132b4aed4339796c9128b348b9b7116d0455
Chris Manton [Sun, 8 Nov 2020 01:33:13 +0000 (01:33 +0000)]
Use tACL_CB::tACL_CONN::remote_version_info am:
13630c1930
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1491243
Change-Id: I3f801c0f293f3e285672dbd107998b6d662d4b53
Chris Manton [Sun, 8 Nov 2020 01:33:09 +0000 (01:33 +0000)]
Add tACL_CB::tACL_CONN::remote_version_info am:
6b30ca872a
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1491242
Change-Id: I28b9fb10824ec8dfe51a13460cd7f05657df1800
Chris Manton [Sun, 8 Nov 2020 01:33:06 +0000 (01:33 +0000)]
Add le transport to BTM_ReadRemoteVersion am:
8b82eefc75
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1491241
Change-Id: Ib8b3569499a38fc3186094f4d5ced2e1dad26d11
Chris Manton [Sun, 8 Nov 2020 01:32:46 +0000 (01:32 +0000)]
Replace return tBTM_STATUS=>bool BTM_ReadRemoteVersion am:
a1a4e2dd9b
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1491240
Change-Id: I55bf0319286b4b87257e4f54eaf9a4ba5d28b569
Chris Manton [Sun, 11 Oct 2020 23:14:17 +0000 (16:14 -0700)]
enum-ify stack/include/smp_api_types::SMP_OPCODE
Toward readable code
Bug:
163134718
Tag: #refactor
Test: Paired phones on le link
Change-Id: Ia125cf73a67b8244d45d83959fd3ac7cff41b76e
Chris Manton [Sat, 7 Nov 2020 19:13:35 +0000 (11:13 -0800)]
gd_acl_shim: Wrap remote version check
With gd the remote version information may not yet
be complete when smp calculates pairing
authentication requirements.
Bug:
166280067
Tag: #refactor
Test: Paired phones on le link
Change-Id: I4755b1f8475383fbced6fd3c7c4c3871d2c9e3b8
Chris Manton [Sat, 7 Nov 2020 19:03:45 +0000 (11:03 -0800)]
Add shim btm_read_remote_version_complete
Plumb through remote version info for shim classic and le
Bug:
166280067
Tag: #refactor
Test: Paired phones on le link
Change-Id: I48f2436c655b7818e7812ae70ceb4f24250edc70
Chris Manton [Sat, 7 Nov 2020 18:11:22 +0000 (10:11 -0800)]
Restore ability to send read remote version information on le links
Currently unable to send command via gd
Bug:
171568335
Tag: #refactor
Test: Paired phones on le link
Change-Id: I923030e9378e95786e0a6ae6275c68120cc3d504
Chris Manton [Sat, 7 Nov 2020 17:19:04 +0000 (09:19 -0800)]
gd: Add le read_remote_version_info
This command may be executed on both le and classic links
Bug:
171568335
Test: Paired phones on le link
Tag: #refactor
Change-Id: I573ec222ff96761704a080148b06fada37afc835
Chris Manton [Sat, 7 Nov 2020 06:06:24 +0000 (22:06 -0800)]
smp: Log if remote lmp_version is invalid
Unread, missing or late remote version info will force
drop from secure into legacy security mode
Bug:
163134718
Tag: #refactor
Test: Paired 2 phones using LE/nRF
Change-Id: I1e52ac96354981b6abbfc1d46e4323becf25b388
Chris Manton [Wed, 4 Nov 2020 16:27:13 +0000 (08:27 -0800)]
Use tACL_CB::tACL_CONN::remote_version_info
Toward readable code
Bug:
163134718
Tag: #refactor
Test: Paired 2 phones using LE/nRF
Change-Id: I0421cea1528b907e9b479e6b9d6489705cea0b22
Chris Manton [Wed, 4 Nov 2020 16:22:03 +0000 (08:22 -0800)]
Add tACL_CB::tACL_CONN::remote_version_info
Group related data
Bug:
163134718
Tag: #refactor
Test: Paired 2 phones using LE/nRF
Change-Id: I3382d00ae31114fca5a6292514b83c8ef1f5b44c
Chris Manton [Sat, 7 Nov 2020 04:31:37 +0000 (20:31 -0800)]
Add le transport to BTM_ReadRemoteVersion
Both classic/br_edr and le can use this command
Bug:
171568335
Tag: #refactor
Test: Paired 2 phones using LE/nRF
Change-Id: Ib644fa9cf21cbfac28e940b0dc5701637199496c
Chris Manton [Sat, 7 Nov 2020 05:23:59 +0000 (21:23 -0800)]
Replace return tBTM_STATUS=>bool BTM_ReadRemoteVersion
Toward readable code
Bug:
163134718
Tag: #refactor
Test: Paired 2 phones using LE/nRF
Change-Id: I5a1cd8ee552e6277a77fa3eef52becbe5a4a7401
Hansong Zhang [Fri, 6 Nov 2020 22:56:57 +0000 (22:56 +0000)]
L2cap: Route some functions to shim am:
9747ba91a5
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1449377
Change-Id: Id4d32199af8b99ee59e0a258b154be7ef10eb915
Hansong Zhang [Fri, 6 Nov 2020 22:56:54 +0000 (22:56 +0000)]
Introduce L2cap security shim am:
f56f2e87b8
Original change: https://android-review.googlesource.com/c/platform/system/bt/+/
1478708
Change-Id: I02f8a433134a06ef4afabadecf19f612e2c814c3
Zach Johnson [Thu, 5 Nov 2020 01:31:15 +0000 (17:31 -0800)]
rusty-gd: clean up imports & pub exports
Bug:
171749953
Tag: #gd-refactor
Test: gd/cert/run --rhost
Change-Id: Ibd11c0a8c977f022164a5f2c314cc3c2773b68fa
Zach Johnson [Thu, 5 Nov 2020 01:22:31 +0000 (17:22 -0800)]
rusty-gd: remove one level of indirection for hci facade proto
Bug:
171749953
Tag: #gd-refactor
Test: gd/cert/run --rhost
Change-Id: I11fe6201aa4ee76c1389b7d8a23360fa484512c7
Zach Johnson [Thu, 5 Nov 2020 00:57:09 +0000 (16:57 -0800)]
rusty-gd: collapse facade implementation into facade.rs
Bug:
171749953
Tag: #gd-refactor
Test: gd/cert/run --rhost
Change-Id: I63049dbb233fe9e3a3d957dd21d7aea3d5d23162
Zach Johnson [Thu, 5 Nov 2020 00:41:23 +0000 (16:41 -0800)]
rusty-gd: move hci facade client contents to root server
Bug:
171749953
Tag: #gd-refactor
Test: gd/cert/run --rhost
Change-Id: I97ef3f26cb4a8458ebb7a9eda1df0b4391459a1c
Zach Johnson [Wed, 4 Nov 2020 23:24:55 +0000 (15:24 -0800)]
Start integration with gd rust & cert tests
two additional flags for gd/cert/run
--rust (rust on device)
--rhost (rust on host)
Bug:
171749953
Tag: #gd-refactor
Test: gd/cert/run --host
Change-Id: I11cbffdeca27cdfee12afbf2c8c0a5afa8ba2f17
Zach Johnson [Tue, 3 Nov 2020 19:11:26 +0000 (11:11 -0800)]
GD: signal on signal port when server is ready
Bug:
171749953
Tag: #gd-refactor
Test: gd/cert/run --host
Change-Id: I24a2ef3349b53abacacbed117db6ca2da7dc6971
Zach Johnson [Tue, 3 Nov 2020 18:47:39 +0000 (10:47 -0800)]
Catch sigint to shut down BT testing process
Temporary nix-based hack until we have tokio signal support.
Bug:
171749953
Tag: #gd-refactor
Test: gd/cert/run --host
Change-Id: I6cfb1d2792a07ec42b3e17ac63e09b0eca583258