OSDN Git Service
Jakub Pawlowski [Tue, 20 Jun 2017 04:55:48 +0000 (04:55 +0000)]
Get rid of BD_ADDR am:
b8a477e9ac
am:
61f2657d9c
Change-Id: I473f09be8420c9c509717cffb07b4d71efcf5cc3
Jakub Pawlowski [Tue, 20 Jun 2017 04:55:44 +0000 (04:55 +0000)]
Get rid of bdcpy, bdcmp and other BD_ADDR helpers am:
78b81c6db0
am:
2c4b02135e
Change-Id: I6a9b2624683ea603991926ce49fbe1f7aef0bbdc
Jakub Pawlowski [Tue, 20 Jun 2017 04:55:41 +0000 (04:55 +0000)]
Replace BT_ADDR with bd_addr_t in bta_sys related code am:
c752e135d6
am:
44c207025f
Change-Id: Ifa9427166d13801617a04557723fb5efa286292a
Jakub Pawlowski [Tue, 20 Jun 2017 04:55:37 +0000 (04:55 +0000)]
Replace BD_ADDR with bt_addr_t in MCE related code am:
98b1b9498d
am:
c033d79b42
Change-Id: I0917f64d8e2d3107fdb8de43472ab46c7afb077e
Jakub Pawlowski [Tue, 20 Jun 2017 04:55:23 +0000 (04:55 +0000)]
Build fix for AOSP am:
04801862d0
am:
e84c1ce0e9
Change-Id: I292db699b34ff521059062d809ead53c56f0ac3d
Jakub Pawlowski [Tue, 20 Jun 2017 04:55:10 +0000 (04:55 +0000)]
Replace BD_ADDR with bt_bdaddr_t in RFCOMM related code am:
1979fa31d2
am:
fe80f3379e
Change-Id: I6deb3a93035d026666f86822ec2e677e4bbb7d7a
Jakub Pawlowski [Tue, 20 Jun 2017 04:54:57 +0000 (04:54 +0000)]
Replace BD_ADDR with bt_bdaddr_t in SDP and A2DP related code am:
135b7f68e4
am:
2fded74ead
Change-Id: I1ffd4ac27af3f73ad5606eb1f32617b256c4851a
Jakub Pawlowski [Tue, 20 Jun 2017 04:54:45 +0000 (04:54 +0000)]
Replace BD_ADDR with bt_bdaddr_t in hf client related code am:
744eeca761
am:
a1a3b57f89
Change-Id: I0c1da4167466732cdf7419b6ffd6cd8e629f6b23
Jakub Pawlowski [Tue, 20 Jun 2017 04:54:32 +0000 (04:54 +0000)]
Replace BD_ADDR with bt_bdaddr_t in JV related code am:
a09c348200
am:
505b932270
Change-Id: Ie23eb16c7beb8ced5f3038500f4a1da27ff7de8d
Jakub Pawlowski [Tue, 20 Jun 2017 04:54:19 +0000 (04:54 +0000)]
use bt_bdaddr_t instead of BD_ADDR in PAN related code am:
a83ac12406
am:
3329421b10
Change-Id: I495bf9e5e8aafcf5f83a709f94b2c3223edd6dd3
Jakub Pawlowski [Tue, 20 Jun 2017 04:54:02 +0000 (04:54 +0000)]
Replace BD_ADDR with bt_bdaddr_t in HL related code am:
50cf52cf6b
am:
60fc7cb9d2
Change-Id: Ibbf7b6b43a36a002aff31476c1042e2637ccf5f1
Jakub Pawlowski [Tue, 20 Jun 2017 04:53:46 +0000 (04:53 +0000)]
Use bt_bdaddr_t instead of BD_ADDR in AVDT related code am:
903c16685e
am:
cd1f80f7c5
Change-Id: I470ca812488f0ccb383e9f94ce8055b30c504f64
Jakub Pawlowski [Tue, 20 Jun 2017 04:53:31 +0000 (04:53 +0000)]
Get rid of no longer necessary bt_bdaddr_t helpers am:
6da40f9782
am:
aa218ace9b
Change-Id: I394254f20c044bb1f9e6d4e03131ce980babb153
Pavlin Radoslavov [Tue, 20 Jun 2017 04:53:09 +0000 (04:53 +0000)]
Add a mechanism to avoid using AVDTP RECONFIGURE for blacklisted devices am:
e91297a4d1
am:
469048f14e
Change-Id: I4ed19391b7b5e2a1f90a510deba58f9de765020f
Jakub Pawlowski [Tue, 20 Jun 2017 04:33:57 +0000 (04:33 +0000)]
Get rid of BD_ADDR
am:
b8a477e9ac
Change-Id: I1aef3f9bf1394e5c905d7917dc2a317f5d5d5418
Jakub Pawlowski [Tue, 20 Jun 2017 04:33:55 +0000 (04:33 +0000)]
Get rid of bdcpy, bdcmp and other BD_ADDR helpers
am:
78b81c6db0
Change-Id: I0d82d3c21aa035bd2501151f3aba3717d6ace767
Jakub Pawlowski [Tue, 20 Jun 2017 04:33:53 +0000 (04:33 +0000)]
Replace BT_ADDR with bd_addr_t in bta_sys related code
am:
c752e135d6
Change-Id: I05466d2676a7f0e097f19420673891ae157d8d39
Jakub Pawlowski [Tue, 20 Jun 2017 04:33:51 +0000 (04:33 +0000)]
Replace BD_ADDR with bt_addr_t in MCE related code
am:
98b1b9498d
Change-Id: Ia895700db35496e2f0b1be7f7eff79aa53de6bd9
Jakub Pawlowski [Tue, 20 Jun 2017 02:49:43 +0000 (02:49 +0000)]
Build fix for AOSP
am:
04801862d0
Change-Id: Ib4a4913308fbfd005dfaa407b8940f9075a2c85d
Jakub Pawlowski [Fri, 16 Jun 2017 22:16:15 +0000 (15:16 -0700)]
Get rid of BD_ADDR
Test: compilation test
Change-Id: I8493485873a81f897fbaef1504076ef18274a8a5
Jakub Pawlowski [Fri, 16 Jun 2017 20:55:52 +0000 (13:55 -0700)]
Get rid of bdcpy, bdcmp and other BD_ADDR helpers
Test: compilation test
Change-Id: I37f17bfb3826b59797373645691c61bfbaefdbfd
Jakub Pawlowski [Fri, 16 Jun 2017 19:52:23 +0000 (12:52 -0700)]
Replace BT_ADDR with bd_addr_t in bta_sys related code
Test: compilation test
Change-Id: Idab6e9c03621c5540b4a3a7fa537dff71a25ce3f
Jakub Pawlowski [Fri, 16 Jun 2017 17:54:34 +0000 (10:54 -0700)]
Replace BD_ADDR with bt_addr_t in MCE related code
Test: compilation test
Change-Id: Icfb69cafa55bcd0f4e0146577deb05bb881672cd
Jakub Pawlowski [Tue, 20 Jun 2017 02:41:06 +0000 (19:41 -0700)]
Build fix for AOSP
Test: compilation test
Change-Id: I66a4854834f0528fad2cf76b5b1d0a48a9038948
Jakub Pawlowski [Tue, 20 Jun 2017 01:23:05 +0000 (01:23 +0000)]
Replace BD_ADDR with bt_bdaddr_t in RFCOMM related code
am:
1979fa31d2
Change-Id: I7e0547cb91deec7c509912efa795a337e1974d3e
Jakub Pawlowski [Tue, 20 Jun 2017 01:19:49 +0000 (01:19 +0000)]
Replace BD_ADDR with bt_bdaddr_t in SDP and A2DP related code
am:
135b7f68e4
Change-Id: I0b233b1c26cfdc2e34a54829f5225051e40ff19f
Jakub Pawlowski [Tue, 20 Jun 2017 01:19:36 +0000 (01:19 +0000)]
Replace BD_ADDR with bt_bdaddr_t in hf client related code
am:
744eeca761
Change-Id: I93d760b2d394d2b85d79011e4d5ffa1d5d58074f
Jakub Pawlowski [Tue, 20 Jun 2017 01:18:04 +0000 (01:18 +0000)]
Replace BD_ADDR with bt_bdaddr_t in JV related code
am:
a09c348200
Change-Id: I6868cae7d9d5850e1111c81350b1c3bed6cf662a
Jakub Pawlowski [Tue, 20 Jun 2017 01:17:50 +0000 (01:17 +0000)]
use bt_bdaddr_t instead of BD_ADDR in PAN related code
am:
a83ac12406
Change-Id: Ied1db09af07d2f3b9fa7da73c3c757acc9c1542d
Jakub Pawlowski [Fri, 16 Jun 2017 17:46:47 +0000 (10:46 -0700)]
Replace BD_ADDR with bt_bdaddr_t in RFCOMM related code
Test: compilation test
Change-Id: I591049f0f4ea9fa60b1b9f0271e1a906a2a06f30
Jakub Pawlowski [Fri, 16 Jun 2017 17:00:46 +0000 (10:00 -0700)]
Replace BD_ADDR with bt_bdaddr_t in SDP and A2DP related code
Test: compilation test
Change-Id: I59a69d56377d38f349def6b24aa5c7d5a3d4f859
Jakub Pawlowski [Tue, 20 Jun 2017 01:17:37 +0000 (01:17 +0000)]
Replace BD_ADDR with bt_bdaddr_t in HL related code
am:
50cf52cf6b
Change-Id: I3aa7a7be02704e7dcce2078f989d156eab65742d
Jakub Pawlowski [Tue, 20 Jun 2017 01:17:22 +0000 (01:17 +0000)]
Use bt_bdaddr_t instead of BD_ADDR in AVDT related code
am:
903c16685e
Change-Id: I2fc7d8e2cc826afa2c210b68d2679f16651aa8bd
Jakub Pawlowski [Tue, 20 Jun 2017 01:17:09 +0000 (01:17 +0000)]
Get rid of no longer necessary bt_bdaddr_t helpers
am:
6da40f9782
Change-Id: Iecdea5cdaad1422b37cd0ab6304ad72591f2a2cb
Jakub Pawlowski [Fri, 16 Jun 2017 16:35:52 +0000 (09:35 -0700)]
Replace BD_ADDR with bt_bdaddr_t in hf client related code
Test: compilation test
Change-Id: Iee6b07b6a919e5d061a04cb3d919166661e673e8
Jakub Pawlowski [Fri, 16 Jun 2017 15:42:05 +0000 (08:42 -0700)]
Replace BD_ADDR with bt_bdaddr_t in JV related code
Test: compilation test
Change-Id: Ie0cf491506ebb898ba968586048d2b58248ba112
Jakub Pawlowski [Thu, 15 Jun 2017 18:53:33 +0000 (11:53 -0700)]
use bt_bdaddr_t instead of BD_ADDR in PAN related code
Test: compilation test
Change-Id: I1fced7529f3d91bf429c179cf4eba5157b35c8fd
Jakub Pawlowski [Thu, 15 Jun 2017 18:10:08 +0000 (11:10 -0700)]
Replace BD_ADDR with bt_bdaddr_t in HL related code
Test: compilation test
Change-Id: Ife04e0839a4a6f61b77a60f49bf44ab5bdacc874
Jakub Pawlowski [Wed, 14 Jun 2017 00:53:54 +0000 (17:53 -0700)]
Use bt_bdaddr_t instead of BD_ADDR in AVDT related code
Test: compilation test
Change-Id: Ibdfd79972d2270303cf1d2e0da26b23d8d5d62d5
Jakub Pawlowski [Thu, 15 Jun 2017 14:16:16 +0000 (07:16 -0700)]
Get rid of no longer necessary bt_bdaddr_t helpers
This are now implemented by the "==" and copy operator
Test: compilation test
Change-Id: I4438c54a9238ad9f3083f7f8a8159d1b7f0f9b32
Pavlin Radoslavov [Tue, 20 Jun 2017 00:45:03 +0000 (00:45 +0000)]
Add a mechanism to avoid using AVDTP RECONFIGURE for blacklisted devices
am:
e91297a4d1
Change-Id: I13ffe7aeebb3ef047a0bcc67ed99130153960195
Pavlin Radoslavov [Mon, 19 Jun 2017 19:44:11 +0000 (12:44 -0700)]
Add a mechanism to avoid using AVDTP RECONFIGURE for blacklisted devices
Some carkits report SUCCESS for AVDTP RECONFIGURE commands when
changing A2DP codec configuration. However, there is no audio coming
from the carkit.
Bug:
37625892
Test: Manual - A2DP Codec reconfiguration while streaming audio
Change-Id: I01f37a2514e490986a20e96ace78c92463403396
Jakub Pawlowski [Fri, 16 Jun 2017 19:00:51 +0000 (19:00 +0000)]
Get rid of last mentions of BD_ADDR from btif. am:
760f967f47
am:
c04c9a1c24
Change-Id: I412fa109306785ed34025604219ffd0c95383215
Jakub Pawlowski [Fri, 16 Jun 2017 18:54:24 +0000 (18:54 +0000)]
Get rid of last mentions of BD_ADDR from btif.
am:
760f967f47
Change-Id: I3f8ba6e54c5ae32208c9f2e3e4eb7d7db481ce08
Jakub Pawlowski [Thu, 15 Jun 2017 21:48:35 +0000 (14:48 -0700)]
Get rid of last mentions of BD_ADDR from btif.
Test: compilation test
Change-Id: I22f6b01b1a69eca96b05319692a2eb82ecc186a8
Avish Shah [Thu, 15 Jun 2017 17:58:28 +0000 (17:58 +0000)]
Merge "Bluetooth 5: Update LE2M implementation through DM (3/3)" am:
a0e18e3982
am:
fd546c85ed
Change-Id: I86f50965478ce180ea3afea9c31078c64b5f2399
Jakub Pawlowski [Thu, 15 Jun 2017 17:58:08 +0000 (17:58 +0000)]
Fix btm_ble_get_acl_remote_addr am:
a6fad9c196
am:
659019dcd2
Change-Id: I5003e9dc368118580d9b12e23508800f027c0aa0
Avish Shah [Thu, 15 Jun 2017 17:53:41 +0000 (17:53 +0000)]
Merge "Bluetooth 5: Update LE2M implementation through DM (3/3)"
am:
a0e18e3982
Change-Id: Id01de29aa9a9b37e6cbbff0cd0a047416b84c5be
Jakub Pawlowski [Thu, 15 Jun 2017 17:53:19 +0000 (17:53 +0000)]
Fix btm_ble_get_acl_remote_addr
am:
a6fad9c196
Change-Id: I97fb9f6ad72a2b7aecbf7bb9c3fdcffcb8d786f9
Treehugger Robot [Thu, 15 Jun 2017 17:50:28 +0000 (17:50 +0000)]
Merge "Bluetooth 5: Update LE2M implementation through DM (3/3)"
Jakub Pawlowski [Thu, 15 Jun 2017 17:18:23 +0000 (17:18 +0000)]
Fix bad comparison in btm_ble_refresh_local_resolvable_private_addr am:
3a30c69ead
am:
5c79608b77
Change-Id: I81358805d5a81f85de21708b1a7b700c6aa5e01a
Jakub Pawlowski [Thu, 15 Jun 2017 17:14:16 +0000 (17:14 +0000)]
Fix bad comparison in btm_ble_refresh_local_resolvable_private_addr
am:
3a30c69ead
Change-Id: Ib7e23f745c467e63b1099a1d922ae6551876c51a
Avish Shah [Thu, 13 Apr 2017 11:45:20 +0000 (17:15 +0530)]
Bluetooth 5: Update LE2M implementation through DM (3/3)
This patch moves LE2M implementation to the DM instead of tied to GATT.
Below are the reasons to make this change:
1) Per link setting usually be done under DM, such as link policy etc.
2) In the future, if LECOC is coming to use in more profile/apps,
we can not rely on GATT API for these. Separate API should be required.
3) we could have multiple logical GATT user on top of the same link.
4) Also this will avoid duplicating all the APIs on GATTC and GATTS.
Bug:
37586939
Test: sl4a PhyTest passed
Change-Id: I7330be85d1bb98a4cc66b69462b01c23c9375362
Jakub Pawlowski [Thu, 15 Jun 2017 15:32:56 +0000 (08:32 -0700)]
Fix btm_ble_get_acl_remote_addr
Second parameter, conn_addr, should be assigned the value. Right now we
only modify the place in memory where the pointer points to.
This bug was introduced in commit
c2276b06572ab6fc1f900fbb1f41087e77d47e2a
Test: compilation test
Change-Id: If52a6b02f4ad0d88a6461a4d76e4f8317dcaac9f
Jakub Pawlowski [Thu, 15 Jun 2017 15:22:24 +0000 (08:22 -0700)]
Fix bad comparison in btm_ble_refresh_local_resolvable_private_addr
This issue was introduced while switching from BD_ADDR to bt_bdaddr_t
Test: Pairing with BLE mouse
Change-Id: I6f6e2386cbd8449bd38d65d1d9c1c5a0032f2156
Ivan Podogov [Wed, 14 Jun 2017 14:59:52 +0000 (14:59 +0000)]
Fix build breakage from change I8d1bd6914aec55bb53495b1d0d5e3d37b86865e6 am:
2e7e691aea
am:
0ec36ada4a
Change-Id: I70f66f7efd581014fe1c8c40cd98a0241e4d861e
Ivan Podogov [Wed, 14 Jun 2017 14:56:21 +0000 (14:56 +0000)]
Fix build breakage from change I8d1bd6914aec55bb53495b1d0d5e3d37b86865e6
am:
2e7e691aea
Change-Id: Id89930a5acdf45cea5bb22c1e25854476326bbd2
Ivan Podogov [Wed, 14 Jun 2017 10:40:36 +0000 (11:40 +0100)]
Fix build breakage from change I8d1bd6914aec55bb53495b1d0d5e3d37b86865e6
Test: manual build
Change-Id: I7d37ee188d2258e3a52c700c7748b53804cb1c0a
Jakub Pawlowski [Wed, 14 Jun 2017 02:03:08 +0000 (02:03 +0000)]
Fix HID crashing on no descriptor
am:
a87ca9a392
Change-Id: I3ce60e5981bf1111b1aa728cd1c65270f88a8f27
Jakub Pawlowski [Wed, 14 Jun 2017 01:07:35 +0000 (01:07 +0000)]
Use bt_bdaddr_t instead of BD_ADDR in HID related code am:
011a619519
am:
924f10e2e0
Change-Id: Ie93a46d86852868000feeb1f85f4b7e0982cea15
Jakub Pawlowski [Wed, 14 Jun 2017 01:03:35 +0000 (01:03 +0000)]
Use bt_bdaddr_t instead of BD_ADDR in HID related code
am:
011a619519
Change-Id: Ib48932d997cad9857c9e974984638068da29f232
Jakub Pawlowski [Fri, 9 Jun 2017 23:00:25 +0000 (16:00 -0700)]
Use bt_bdaddr_t instead of BD_ADDR in HID related code
Test: compilation test, sl4a GattReadTest
Change-Id: I4e91375746fbd966608a830ff71de79be2b99e6c
Jakub Pawlowski [Tue, 13 Jun 2017 23:55:17 +0000 (23:55 +0000)]
Fix HID crashing on no descriptor am:
378f095217
am:
f36f92aefa
Change-Id: I7b0ccee964a5da893e6d1ab206dd159f59dcdafe
Jakub Pawlowski [Tue, 13 Jun 2017 23:55:01 +0000 (23:55 +0000)]
Fix for fugu build am:
029fd8783b
am:
2e6afeb3f5
Change-Id: Ib25a33c43730ad8b3edc44add81ae941143be51b
Jakub Pawlowski [Tue, 13 Jun 2017 23:51:19 +0000 (23:51 +0000)]
Fix HID crashing on no descriptor
am:
378f095217
Change-Id: Idf28228a7f5ef8128baa1171f27be62a913b43c8
Jakub Pawlowski [Tue, 13 Jun 2017 23:51:00 +0000 (23:51 +0000)]
Fix for fugu build
am:
029fd8783b
Change-Id: I1aa8e1ecc0964da835bd3795f99282cd23f3ff13
Jakub Pawlowski [Tue, 13 Jun 2017 21:16:57 +0000 (14:16 -0700)]
Fix HID crashing on no descriptor
Bug:
62461796
Test: compilation test
Change-Id: Ic7b1fcc4b6f3c8680f1810679ed609f2691fa4aa
Jakub Pawlowski [Tue, 13 Jun 2017 21:16:57 +0000 (14:16 -0700)]
Fix HID crashing on no descriptor
Bug:
62461796
Test: compilation test
Change-Id: Ic7b1fcc4b6f3c8680f1810679ed609f2691fa4aa
Jakub Pawlowski [Tue, 13 Jun 2017 23:41:45 +0000 (16:41 -0700)]
Fix for fugu build
Test: compilation with BLE_PRIVACY_SPT=TRUE
Change-Id: I1765ad009368077bb4c0be9673a27a9df428f41f
Jakub Pawlowski [Tue, 13 Jun 2017 21:32:49 +0000 (21:32 +0000)]
Use bt_bdaddr_t instead of BD_ADDR am:
c2276b0657
am:
47db4290c8
Change-Id: Ib4c1de8b99dd1f87a9e733d868f0a9beacdf9530
Jakub Pawlowski [Tue, 13 Jun 2017 21:28:48 +0000 (21:28 +0000)]
Use bt_bdaddr_t instead of BD_ADDR
am:
c2276b0657
Change-Id: I133f28f3434a44fe72c322cd61706589b03ecec2
Jakub Pawlowski [Fri, 9 Jun 2017 23:00:25 +0000 (16:00 -0700)]
Use bt_bdaddr_t instead of BD_ADDR
Test: compilation test, sl4a GattReadTest
Change-Id: I8d1bd6914aec55bb53495b1d0d5e3d37b86865e6
Bailey Forrest [Tue, 13 Jun 2017 21:03:20 +0000 (21:03 +0000)]
Merge "Fix some includes" am:
107579ae93
am:
c2eb752327
Change-Id: I6bec00b825c0f5ea13b6fb67c5d551a8782ff02b
Bailey Forrest [Tue, 13 Jun 2017 20:56:14 +0000 (20:56 +0000)]
Merge "Fix some includes"
am:
107579ae93
Change-Id: I4bdbd6a54e1928856167c570b727b6d28998034d
Treehugger Robot [Tue, 13 Jun 2017 20:36:18 +0000 (20:36 +0000)]
Merge "Fix some includes"
Bailey Forrest [Mon, 12 Jun 2017 23:48:02 +0000 (16:48 -0700)]
Fix some includes
- include fcntl.h for O_WRONLY,O_CREAT,O_TRUNC
- Change sys/stat.h, sys/types.h to use <>
Bug: None
Test: Build
Change-Id: I4ce1ceeba8ffdc6ff8b47ae43fcd8764d259f067
Martin Brabham [Mon, 12 Jun 2017 18:26:49 +0000 (18:26 +0000)]
bta_dm: Stop copying garbage
am:
e92648629c -s ours
Change-Id: Ib789b5106589d4c660bf0ea075ffc4fbfdebf38c
Martin Brabham [Mon, 1 May 2017 23:30:40 +0000 (16:30 -0700)]
bta_dm: Stop copying garbage
After we reach 7 ACL connections we have 7 peer device records.
Once we reach this then we lose a connection and shrink the list we
copy garbage into the last peer device record. This can cause the flag
remove_dev_pending to be set to something > 0 thus true which causes the
stack to remove the device and its bonding information on the next
acl change event.
ACL Connections can happen from any connection (pairing, SDP, etc...)
Bug:
36598959
Test: Manual
Change-Id: Ifbaa4098edba442274ffde183960ef53169988e7
Merged-In: Ifbaa4098edba442274ffde183960ef53169988e7
Jakub Pawlowski [Sat, 10 Jun 2017 01:55:44 +0000 (01:55 +0000)]
Move bt_bdaddr_t operator to global header file am:
a2d3cb2281
am:
0e80de07fd
Change-Id: I478cecb69fb7288a304368b936bff07051706912
Jakub Pawlowski [Sat, 10 Jun 2017 01:53:14 +0000 (01:53 +0000)]
Move bt_bdaddr_t operator to global header file
am:
a2d3cb2281
Change-Id: I1573c4443bdde450e0e70ab38a642e3bb862a479
Jack He [Fri, 9 Jun 2017 23:27:33 +0000 (23:27 +0000)]
eSCO: Limit number of retries after mSBC connection failure
am:
12fb8883d0
Change-Id: I90f4ce530e1f4d11dc609563c3bc9f09478bc901
Jakub Pawlowski [Fri, 9 Jun 2017 21:02:03 +0000 (14:02 -0700)]
Move bt_bdaddr_t operator to global header file
This is to simplify bt_bdaddr_t handling
Test: compilation
Change-Id: I06ac6c2f0402ed13a2c04f86494d3c4fd0165963
Jack He [Wed, 7 Jun 2017 23:44:30 +0000 (16:44 -0700)]
eSCO: Limit number of retries after mSBC connection failure
* When peer device supports mSBC and codec negotiation, Fluoride stack
will try to do the following when establishing a eSCO/SCO connection:
1) Negotiate to mSBC by sending +BCS:2
2) Try establishing eSCO/SCO connection using mSBC T2 settings
3) If that failed, downgrade to mSBC T1 settings and retry
4) If that failed, re-negotiate codec to CVSD, by sending +BCS:1
5) Retry using CVSD S4 (HFP 1.7 and above) or S3 settings
6) If this failed stop trying and report failure to upper stack
* Retry is achieved by:
* Retry is only possible when inuse_codec = BTA_AG_CODEC_MSBC
* Set codec_msbc_settings to BTA_AG_SCO_MSBC_SETTINGS_T1 when T2
failed to connect in step 3 above
* Set codec_fallback to true when T1 failed so that CVSD is used
in step 4 above
* Retry stop is achieved by:
* Set inuse_codec = BTA_AG_CODEC_CVSD
* Set codec_msbc_settings back to BTA_AG_SCO_MSBC_SETTINGS_T2
* Set codec_fallback to false and codec_updated to true so that
the stack is ready for the next application triggerred SCO
connection attempt
* Removed retry_with_sco_only as both Setup Synchronous Connection
Command (0x0028) and Enhanced Setup Synchronous Connection Command
(0x003D) fall back to SCO connection if eSCO is not supported.
See page 858/2772 and 895/2772 of BT4.2 specification document
* Besides both code paths are the same for retry_with_sco_only after
eSCO changes went in
Bug:
62426841
Test: make, HFP regression, testplans/91406
Change-Id: I205311c55e8763c48b6eb43c27f242927384036e
(cherry picked from commit
e82e56bb2a1e5565b73333b60dc6b30936f52e80)
johnshamoon [Fri, 9 Jun 2017 22:12:42 +0000 (22:12 +0000)]
Merge "smp: Fix long SMP_Trace_* log messages" am:
233f7fd203
am:
bad573f2bd
Change-Id: Ife167474f864b6c2b78758657ba948b843c01fa4
jruthe [Fri, 9 Jun 2017 22:12:27 +0000 (22:12 +0000)]
Merge "bta: Update APPL_TRACE_* logs and call parameter" am:
ffee35d068
am:
f0d172b382
Change-Id: I89106aa0503212d113c1bfdb4c9e99205e8afe83
johnshamoon [Fri, 9 Jun 2017 22:09:50 +0000 (22:09 +0000)]
Merge "smp: Fix long SMP_Trace_* log messages"
am:
233f7fd203
Change-Id: I82fd49362c33c23d973767af2005e841d4b3cafb
jruthe [Fri, 9 Jun 2017 22:09:32 +0000 (22:09 +0000)]
Merge "bta: Update APPL_TRACE_* logs and call parameter"
am:
ffee35d068
Change-Id: I526b4dd5ee192647e5f385ad5247c8e567615081
Treehugger Robot [Fri, 9 Jun 2017 22:00:10 +0000 (22:00 +0000)]
Merge "smp: Fix long SMP_Trace_* log messages"
Treehugger Robot [Fri, 9 Jun 2017 21:59:05 +0000 (21:59 +0000)]
Merge "bta: Update APPL_TRACE_* logs and call parameter"
jruthe [Wed, 31 May 2017 20:55:42 +0000 (13:55 -0700)]
bta: Update APPL_TRACE_* logs and call parameter
Also update messages to use __func__ rather than hard-coding
function names in log messages.
Test: Pair two devices
Change-Id: I8d3a9e293c71775caee420b8da6bc3e4385a46dd
johnshamoon [Wed, 31 May 2017 18:32:24 +0000 (11:32 -0700)]
smp: Fix long SMP_Trace_* log messages
Test: Manually pair two devices
Change-Id: Iebf43688220922563c0e1028d9e75a4cae2fc1bd
Jakub Pawlowski [Fri, 9 Jun 2017 05:48:55 +0000 (05:48 +0000)]
Get rid of GATT_TRACE_* logs in favour of base/logging.h am:
d8be0e590a
am:
265ef4c336
Change-Id: If3ac9623f064dac4a73e5afcf51770967332d4b0
Jakub Pawlowski [Fri, 9 Jun 2017 05:46:54 +0000 (05:46 +0000)]
Get rid of GATT_TRACE_* logs in favour of base/logging.h
am:
d8be0e590a
Change-Id: Idbe853cfc87bef4db7b03a3b8fb36f021f67dc6c
Jakub Pawlowski [Fri, 9 Jun 2017 00:04:47 +0000 (17:04 -0700)]
Get rid of GATT_TRACE_* logs in favour of base/logging.h
Change-Id: Id77d313c5bff5e611441599da351a766d0ce5916
Bailey Forrest [Fri, 9 Jun 2017 04:12:47 +0000 (04:12 +0000)]
Merge "Include used STL header files" am:
bc363373f6
am:
2ca22380a5
Change-Id: I6e722bc87f432f9c9fb4149cc71812dc77ba2adf
Bailey Forrest [Fri, 9 Jun 2017 04:10:47 +0000 (04:10 +0000)]
Merge "Include used STL header files"
am:
bc363373f6
Change-Id: Ib56d392f7b88d260f7211d13c8d79d84fe62bd2e
Treehugger Robot [Fri, 9 Jun 2017 04:06:00 +0000 (04:06 +0000)]
Merge "Include used STL header files"
Jack He [Fri, 9 Jun 2017 03:14:43 +0000 (03:14 +0000)]
Merge "eSCO: Limit number of retries after mSBC connection failure" am:
c65112de69
am:
ed3c1d992c
Change-Id: Iad9823143556d20a377f642272400fa66286d74c
Jack He [Fri, 9 Jun 2017 03:12:13 +0000 (03:12 +0000)]
Merge "eSCO: Limit number of retries after mSBC connection failure"
am:
c65112de69
Change-Id: I57bdffaac640741e62078fd2fe206c22ca8f3144
Treehugger Robot [Fri, 9 Jun 2017 03:08:26 +0000 (03:08 +0000)]
Merge "eSCO: Limit number of retries after mSBC connection failure"