OSDN Git Service
Andre Eisenbach [Thu, 11 Jun 2015 04:04:38 +0000 (21:04 -0700)]
Fix mnc-dev <-> master merge errors
Change-Id: If4d56229de7d47289560a12205feb7e33ac6fcf5
Arman Uguray [Thu, 11 Jun 2015 02:31:34 +0000 (02:31 +0000)]
am
625ec341: gn-build: Fix GN build after the merges
* commit '
625ec34106a70d9299c68593279a0d9c77bfd87f':
gn-build: Fix GN build after the merges
Andre Eisenbach [Thu, 11 Jun 2015 02:31:33 +0000 (02:31 +0000)]
am
ab813119: (-s ours) Fix more BLE_INCLUDED == FALSE build breakage
* commit '
ab813119d61a3ca8ac8ecb5239b73bf77e2c05bb':
Fix more BLE_INCLUDED == FALSE build breakage
Dan Albert [Thu, 11 Jun 2015 02:15:49 +0000 (02:15 +0000)]
am
087d1acc: Add missing include.
* commit '
087d1acc3f41829e9ce982e6172260d35527e85e':
Add missing include.
Arman Uguray [Wed, 10 Jun 2015 23:21:12 +0000 (16:21 -0700)]
gn-build: Fix GN build after the merges
This CL fixes the GN build after the recent merges to aosp/master.
Change-Id: I0c9d8178986165d5a4a67261532e8a08b6923d22
Andre Eisenbach [Wed, 10 Jun 2015 23:37:05 +0000 (16:37 -0700)]
Fix more BLE_INCLUDED == FALSE build breakage
Change-Id: I2da6dcdaced78d3a3bce6002fc3885c7480fba82
Dan Albert [Tue, 9 Jun 2015 23:53:45 +0000 (16:53 -0700)]
Add missing include.
osi_malloc was never included, so it was implicitly defined as
returning an integer (thank you, C). Clang caught the int to pointer
conversion error.
Change-Id: I0d8a3363d92cb72a22780d049a53e193d2e50ec5
Andre Eisenbach [Wed, 10 Jun 2015 22:47:55 +0000 (22:47 +0000)]
am
53ef6df3: Check transport before subscribing for service changes
* commit '
53ef6df3e40846528a561f762515d1e628077c19':
Check transport before subscribing for service changes
Hemant Gupta [Wed, 10 Jun 2015 22:47:54 +0000 (22:47 +0000)]
am
2a527108: Add proper checks for PAN & BNEP in BD stack
* commit '
2a527108d22861aa4091143c740e09235b3692c5':
Add proper checks for PAN & BNEP in BD stack
Mallikarjuna GB [Wed, 10 Jun 2015 22:47:54 +0000 (22:47 +0000)]
am
4633fb8d: Fix issues in A2dp, Avrcp, HF and AG reported by static analysis tool
* commit '
4633fb8d4b0376474f6d38c58ee5ee563a392ef5':
Fix issues in A2dp, Avrcp, HF and AG reported by static analysis tool
Anubhav Gupta [Wed, 10 Jun 2015 22:47:53 +0000 (22:47 +0000)]
am
335c2087: Ignore STOP command if A2DP stream is suspended
* commit '
335c208713b3c9eadcc301acac947b2f96e31da6':
Ignore STOP command if A2DP stream is suspended
Anubhav Gupta [Wed, 10 Jun 2015 22:47:52 +0000 (22:47 +0000)]
am
5e45edb7: Remove check for stream type in a2dp hal_callbacks.
* commit '
5e45edb7f50497436d00423327c55707588211eb':
Remove check for stream type in a2dp hal_callbacks.
Mallikarjuna GB [Wed, 10 Jun 2015 22:47:51 +0000 (22:47 +0000)]
am
fc0a9f61: Clear remote BD address information.
* commit '
fc0a9f6157e612b757a0b6ff3139da20cab2db91':
Clear remote BD address information.
Mallikarjuna GB [Wed, 10 Jun 2015 22:47:50 +0000 (22:47 +0000)]
am
c1c26aae: Don\'t stop sniff timer before checking for service ID entry
* commit '
c1c26aae2708cb74d2aa3e70b5168e0172731c49':
Don't stop sniff timer before checking for service ID entry
Mallikarjuna GB [Wed, 10 Jun 2015 22:47:49 +0000 (22:47 +0000)]
am
b3997013: Don\'t initiate sniff in sniff mode
* commit '
b399701373c8829e5d0f85041e7f7542418d7773':
Don't initiate sniff in sniff mode
Mallikarjuna GB [Wed, 10 Jun 2015 22:47:49 +0000 (22:47 +0000)]
am
45d4c3e3: Updated ATD string parsing
* commit '
45d4c3e316315b35cdfc6026bd1fc6b47d27c271':
Updated ATD string parsing
Mallikarjuna GB [Wed, 10 Jun 2015 22:47:48 +0000 (22:47 +0000)]
am
e6f4ed85: Stop AG collision timer.
* commit '
e6f4ed85b19c49a3577b2c2842bb6ca20452ceb8':
Stop AG collision timer.
Mallikarjuna GB [Wed, 10 Jun 2015 22:47:46 +0000 (22:47 +0000)]
am
b0765000: Return ERROR for invalid CHLD command arguments
* commit '
b0765000f362bd48fbf48fd4625a9b3ad825ee14':
Return ERROR for invalid CHLD command arguments
Anubhav Gupta [Wed, 10 Jun 2015 22:47:45 +0000 (22:47 +0000)]
am
c3aa28eb: Reject second AVRCP connection.
* commit '
c3aa28eb96782e966d3b044eb9edeeedaa95bd39':
Reject second AVRCP connection.
Anubhav Gupta [Wed, 10 Jun 2015 22:47:44 +0000 (22:47 +0000)]
am
b9851818: Disable SCMST feature for A2DP Sink
* commit '
b9851818bfce9f8d4ac2fb16c1f6cf23cb76f17a':
Disable SCMST feature for A2DP Sink
Mallikarjuna GB [Wed, 10 Jun 2015 22:47:43 +0000 (22:47 +0000)]
am
9b6dfa44: Restarting PM timer for AG while reading OR writing
* commit '
9b6dfa44d027e093d38ea7b1a402f0b0c00b6e28':
Restarting PM timer for AG while reading OR writing
Mallikarjuna GB [Wed, 10 Jun 2015 22:47:42 +0000 (22:47 +0000)]
am
b92ab7d8: Initialize btif_max_hf_clients with proper value
* commit '
b92ab7d8d5154b9539cf3a5355a0adc1d736773a':
Initialize btif_max_hf_clients with proper value
Anubhav Gupta [Wed, 10 Jun 2015 22:47:42 +0000 (22:47 +0000)]
am
9c264e92: Set the proper authentication level for AvOpen
* commit '
9c264e92305f84a5e8a92bc859812def0ce71792':
Set the proper authentication level for AvOpen
Mallikarjuna GB [Wed, 10 Jun 2015 22:47:41 +0000 (22:47 +0000)]
am
6b359689: Don\'t open SCO for 2nd MO call if a call is active
* commit '
6b359689a482fae92f26aae6252fddfc296aaabf':
Don't open SCO for 2nd MO call if a call is active
Mallikarjuna GB [Wed, 10 Jun 2015 22:47:40 +0000 (22:47 +0000)]
am
4f51fc36: Don\'t close SCO for MO calls
* commit '
4f51fc3650873535d20e4cf00da68d723c1378b6':
Don't close SCO for MO calls
Mallikarjuna GB [Wed, 10 Jun 2015 22:47:39 +0000 (22:47 +0000)]
am
684d1364: (-s ours) SCO connection should happen after SLC.
* commit '
684d136447a93311a7ebd2e6daf931b77e802120':
SCO connection should happen after SLC.
Andre Eisenbach [Wed, 10 Jun 2015 22:42:02 +0000 (22:42 +0000)]
am
c1c02ce5: Fix compile error in bta_ag_sco.c
* commit '
c1c02ce58f8513ab1c6ab3010be4867c22b3b5c6':
Fix compile error in bta_ag_sco.c
Mallikarjuna GB [Wed, 10 Jun 2015 22:42:02 +0000 (22:42 +0000)]
am
8f4fb27a: (-s ours) Create listen SCO for HS1 if HS2 disconnects during SCO xfer
* commit '
8f4fb27a66a83cc65eb7923b6912d0aaba279a8b':
Create listen SCO for HS1 if HS2 disconnects during SCO xfer
Mallikarjuna GB [Wed, 10 Jun 2015 22:36:04 +0000 (22:36 +0000)]
am
39b9f827: Don\'t open SCO on state change for multi party call on DUT.
* commit '
39b9f827e1f9f0599070928465f84b69c4d5dfc0':
Don't open SCO on state change for multi party call on DUT.
Mallikarjuna GB [Wed, 10 Jun 2015 22:36:04 +0000 (22:36 +0000)]
am
9900b499: Reset sniff subrating while in SCO
* commit '
9900b49968297aa15872a9b7ef3a258ecf48cf1b':
Reset sniff subrating while in SCO
Mallikarjuna GB [Wed, 10 Jun 2015 22:36:03 +0000 (22:36 +0000)]
am
fafa2e20: Open SCO for held call.
* commit '
fafa2e20a8b56ab8320adebce2c6dc93d01801c5':
Open SCO for held call.
Mallikarjuna GB [Wed, 10 Jun 2015 22:36:02 +0000 (22:36 +0000)]
am
8885d6f4: Update call state before opening SCO.
* commit '
8885d6f4ea0aca5e97a5f405434d4494c5e41b85':
Update call state before opening SCO.
Mallikarjuna GB [Wed, 10 Jun 2015 22:36:01 +0000 (22:36 +0000)]
am
616e7417: Handle multi party call states
* commit '
616e7417c9520db24adf20b7c0aaf967ce6e106d':
Handle multi party call states
Mallikarjuna GB [Wed, 10 Jun 2015 22:35:59 +0000 (22:35 +0000)]
am
06c0eca5: Update held call state to connected headset
* commit '
06c0eca504910115020b86676fae60bb171b7a47':
Update held call state to connected headset
Pavlin Radoslavov [Wed, 10 Jun 2015 22:35:58 +0000 (22:35 +0000)]
am
eae61663: Replace malloc/calloc/free with osi_malloc/osi_calloc/osi_free
* commit '
eae61663a5c44f2a5757ae3df80cbc3b97fa6d60':
Replace malloc/calloc/free with osi_malloc/osi_calloc/osi_free
Sunny Kapdi [Wed, 10 Jun 2015 22:35:57 +0000 (22:35 +0000)]
am
cf8fb474: Fix memory corruption due to BLE multi-adv macro
* commit '
cf8fb474b12660ee799ded5b60e4654c8f3ffe13':
Fix memory corruption due to BLE multi-adv macro
Hemant Gupta [Wed, 10 Jun 2015 22:35:56 +0000 (22:35 +0000)]
am
38798e1b: HID: Handle closing of uhid driver in case failure
* commit '
38798e1b7cc7873aa849c3c7c58902f713d909be':
HID: Handle closing of uhid driver in case failure
Srinu Jella [Wed, 10 Jun 2015 22:35:54 +0000 (22:35 +0000)]
am
065a3e20: Reset pairing state to idle only for the current device
* commit '
065a3e209f5dae24bc7c21bf2659e9ccef23ebf1':
Reset pairing state to idle only for the current device
Pavlin Radoslavov [Wed, 10 Jun 2015 22:35:53 +0000 (22:35 +0000)]
am
0933b407: Moved the OSI alarm_shutdown() operations to alarm_cleanup()
* commit '
0933b4075e16589a073e85d8230677238b29b780':
Moved the OSI alarm_shutdown() operations to alarm_cleanup()
Pavlin Radoslavov [Wed, 10 Jun 2015 22:35:52 +0000 (22:35 +0000)]
am
5febd64b: Disable the OSI allocation tracker.
* commit '
5febd64b95260672d41964337377fb312ea2c07b':
Disable the OSI allocation tracker.
Srinu Jella [Wed, 10 Jun 2015 22:35:51 +0000 (22:35 +0000)]
am
8fb547c7: Handle pairing timeout during remote name request
* commit '
8fb547c7313644044c3d4ce38d68a2ad80f2d6c8':
Handle pairing timeout during remote name request
Andre Eisenbach [Wed, 10 Jun 2015 22:35:51 +0000 (22:35 +0000)]
am
73022dcd: Reduce GATT log verbosity
* commit '
73022dcde0411cb5a5684aaa78554c698916d4af':
Reduce GATT log verbosity
Srinu Jella [Wed, 10 Jun 2015 22:35:50 +0000 (22:35 +0000)]
am
3c67f057: Avoid null pointer exception for invalid L2CAP channels
* commit '
3c67f057825cafc1476559fdd15874db72deb217':
Avoid null pointer exception for invalid L2CAP channels
Pavlin Radoslavov [Wed, 10 Jun 2015 22:35:49 +0000 (22:35 +0000)]
am
7dac79e3: (-s ours) Add missing clean_up step for the OSI module.
* commit '
7dac79e3614a7956637b7dd294cf9f38afcf09f4':
Add missing clean_up step for the OSI module.
Hemant Gupta [Wed, 10 Jun 2015 22:16:53 +0000 (22:16 +0000)]
am
527c9fe7: Sniff: Use correct sniff configuration for PAN & HS
* commit '
527c9fe7f49c171713e227610ed8829eaa2dac05':
Sniff: Use correct sniff configuration for PAN & HS
Andre Eisenbach [Wed, 10 Jun 2015 22:16:44 +0000 (22:16 +0000)]
am
b5c8e291: Make secure connections mode configurable
* commit '
b5c8e291dcac7d45e4788a10ade8200d67e44786':
Make secure connections mode configurable
Prerepa Viswanadham [Wed, 10 Jun 2015 22:16:42 +0000 (22:16 +0000)]
am
579fa2a9: Increase the min LE connection interval to 11.25ms
* commit '
579fa2a950f21f3e5808a2d060afebbf5e8f0732':
Increase the min LE connection interval to 11.25ms
Satya Calloji [Wed, 10 Jun 2015 22:16:41 +0000 (22:16 +0000)]
am
0b469db5: Pairing is prompted with a wrong bd-address
* commit '
0b469db5e4991a1de0250fbeaca16ebd82f9470b':
Pairing is prompted with a wrong bd-address
Andre Eisenbach [Wed, 10 Jun 2015 22:16:40 +0000 (22:16 +0000)]
am
c09540f7: Fix problem where multi-adv instances cannot be re-used
* commit '
c09540f7f5dc712fda7e2179602514c0738092b6':
Fix problem where multi-adv instances cannot be re-used
Nitin Arora [Wed, 10 Jun 2015 22:16:38 +0000 (22:16 +0000)]
am
4c0e671b: Recitfy condition when removing device from IRK resolving list
* commit '
4c0e671b9a57504747a542544038ebb1abf296e4':
Recitfy condition when removing device from IRK resolving list
Andre Eisenbach [Wed, 10 Jun 2015 22:16:37 +0000 (22:16 +0000)]
am
a021a129: Fix build after cross-key issues broke non privacy enabled builds
* commit '
a021a12987c4257d137437c6de9438b3344c6f6b':
Fix build after cross-key issues broke non privacy enabled builds
Satya Calloji [Wed, 10 Jun 2015 22:16:36 +0000 (22:16 +0000)]
am
2808a249: (-s ours) Fix device/address types and IRK value handling
* commit '
2808a249c7fc1230eb8955481f94ea0e083165e4':
Fix device/address types and IRK value handling
Satya Calloji [Wed, 10 Jun 2015 22:10:14 +0000 (22:10 +0000)]
am
51a36d7e: Fixed cross key for LE when paired over BR-EDR
* commit '
51a36d7e1771bf0622898e6d1fc928028c400aaf':
Fixed cross key for LE when paired over BR-EDR
Satya Calloji [Wed, 10 Jun 2015 22:10:12 +0000 (22:10 +0000)]
am
8551d99a: Fix SMP pairing request issue on LE
* commit '
8551d99ac3947c36b867f84dd6ba3776e0aeb3a4':
Fix SMP pairing request issue on LE
Satya Calloji [Wed, 10 Jun 2015 22:10:11 +0000 (22:10 +0000)]
am
1f38e92c: Unpair the other transport on a device paired
* commit '
1f38e92c7045e92b6b9d7f31bf85ceb585733885':
Unpair the other transport on a device paired
Satya Calloji [Wed, 10 Jun 2015 22:10:10 +0000 (22:10 +0000)]
am
70b95989: (-s ours) Static address is seen on scanner after unpairing
* commit '
70b9598970e5b18ba53c282319e68faea6eb5681':
Static address is seen on scanner after unpairing
Satya Calloji [Wed, 10 Jun 2015 22:04:23 +0000 (22:04 +0000)]
am
3e46b830: (-s ours) Fix for chip capability version check
* commit '
3e46b83098196782328c339f5fe8021dc52172fc':
Fix for chip capability version check
Satya Calloji [Wed, 10 Jun 2015 21:58:31 +0000 (21:58 +0000)]
am
935324ab: (-s ours) LE low power scan feature
* commit '
935324abbe8706307297f09cf79bbcd4efb73367':
LE low power scan feature
Nitin Arora [Wed, 10 Jun 2015 21:51:50 +0000 (21:51 +0000)]
am
089651a3: Fix allocation for LE scan filter parameters
* commit '
089651a314c73f21964457d5d1b2d188e2243574':
Fix allocation for LE scan filter parameters
Nitin Arora [Wed, 10 Jun 2015 21:51:48 +0000 (21:51 +0000)]
am
19e91b0f: (-s ours) Fix for premature BLE RPA timeout
* commit '
19e91b0fe546478f6fb6572c8af7a5faa7559498':
Fix for premature BLE RPA timeout
Satya Calloji [Wed, 10 Jun 2015 21:44:34 +0000 (21:44 +0000)]
am
033edab9: Fix GATT connection failure after BT reset
* commit '
033edab9780481ca743d1f14cc893dc533c3c3f2':
Fix GATT connection failure after BT reset
Nitin Arora [Wed, 10 Jun 2015 21:44:33 +0000 (21:44 +0000)]
am
7557b674: Use correct structure to read LE connection handle
* commit '
7557b67434226e4baeee87ba86a7b85d1687de9a':
Use correct structure to read LE connection handle
Zach Johnson [Wed, 10 Jun 2015 21:44:32 +0000 (21:44 +0000)]
am
03583e8f: Build the shared library with --whole-archive
* commit '
03583e8f3161836f2bef56f59a6f7bb2db25e61f':
Build the shared library with --whole-archive
Satya Calloji [Wed, 10 Jun 2015 21:44:31 +0000 (21:44 +0000)]
am
350b0b0d: Fix for IRK and IR key write issue
* commit '
350b0b0d148ca9bf7cbf20018b47286165fa86e8':
Fix for IRK and IR key write issue
Andre Eisenbach [Wed, 10 Jun 2015 21:44:29 +0000 (21:44 +0000)]
am
fc9c9981: Re-enabled enhanced inquiry scan
* commit '
fc9c99817a6f3a951e3fc1ccdc48ebd2a54824a7':
Re-enabled enhanced inquiry scan
Chih-Hung Hsieh [Wed, 10 Jun 2015 21:44:28 +0000 (21:44 +0000)]
am
73378f5f: Fix format-security warning found by clang/llvm.
* commit '
73378f5fad7b2fc348073c313b226d0e1d5cfc12':
Fix format-security warning found by clang/llvm.
Andre Eisenbach [Wed, 10 Jun 2015 21:44:27 +0000 (21:44 +0000)]
am
8f1a16b1: Fix string template in connection event debug log
* commit '
8f1a16b13f8d11da9e783a64e1d38e8b20c10d6c':
Fix string template in connection event debug log
Andre Eisenbach [Wed, 10 Jun 2015 21:44:25 +0000 (21:44 +0000)]
am
40412562: (-s ours) Include osi_module reference in module_init funcion
* commit '
40412562707ee3f1fa104c4332bc6247880040a3':
Include osi_module reference in module_init funcion
Zach Johnson [Wed, 10 Jun 2015 21:37:20 +0000 (21:37 +0000)]
am
c6a1c261: (-s ours) Fix AlarmTestHarness so alarm tests pass again
* commit '
c6a1c261b87f194b298df01f002292d9e937ec75':
Fix AlarmTestHarness so alarm tests pass again
Andre Eisenbach [Fri, 29 May 2015 21:05:30 +0000 (14:05 -0700)]
Check transport before subscribing for service changes
Don't subscribe to the service changed characteristic if SMP pairing
was a result of cross-key pairing.
Change-Id: Ieb4901e82060e2fa2d9d0e909e384de5f6890222
Author: Chaojing Sun <cjsun@broadcom.com>
Bug:
20894154
Hemant Gupta [Wed, 15 Oct 2014 14:29:23 +0000 (19:59 +0530)]
Add proper checks for PAN & BNEP in BD stack
This patch fixes issues for PAN & BNEP in BD stack identified
by static analysis tool.
Change-Id: I29417dae982abb5cef11379f8d03baad11ffde8b
Mallikarjuna GB [Fri, 7 Nov 2014 11:22:25 +0000 (16:52 +0530)]
Fix issues in A2dp, Avrcp, HF and AG reported by static analysis tool
- Fixes to validate Array Index Value and Null Pointer
Dereference reported by static analysis tool.
Change-Id: Id1492315f68378fdcfa517bd0a5cacefc8ebfddb
Anubhav Gupta [Mon, 17 Nov 2014 01:02:45 +0000 (17:02 -0800)]
Ignore STOP command if A2DP stream is suspended
Ignore STOP command if A2DP stream is already suspended.
Some carkits send STOP command before VOIP call initiation
but don't send PLAY when call ends which hinders DUT to resume
audio playback after call termination.
Change-Id: I41cc1fc6f4b6cfaa1560d729baa0ca27f6dfe8c8
Anubhav Gupta [Tue, 7 Oct 2014 12:58:19 +0000 (18:28 +0530)]
Remove check for stream type in a2dp hal_callbacks.
Stream type is invalid till signalling channel
connection establishment is completed. Do not
check stream type while calling HAL callback.
Change-Id: I69fb19636f3e9bb72202c450dcef9e7bc2e53731
Mallikarjuna GB [Mon, 22 Sep 2014 04:30:36 +0000 (10:00 +0530)]
Clear remote BD address information.
This change makes sure that when RFCOMM
connection fails for HFP, AG control block
clears the remote bd address. This will prevent
the misuse of remote bd address.
Change-Id: I9b14cfe7ae18e72f0972704ac3aa5e915f70ddb3
Andre Eisenbach [Wed, 10 Jun 2015 21:29:26 +0000 (21:29 +0000)]
am
cae219fe: (-s ours) Shutdown alarm callbacks on stack disable; added OSI module
* commit '
cae219fe70124f1fc39cd7a78c239c4870422d5d':
Shutdown alarm callbacks on stack disable; added OSI module
Mallikarjuna GB [Fri, 22 May 2015 09:44:25 +0000 (15:14 +0530)]
Don't stop sniff timer before checking for service ID entry
- Avoid stopping sniff timer before checking for service
ID entry for which bta_sys_conn_close is called since if
entry is not present we return without re-starting timer
and ACL doesn't go into sniff.
Change-Id: I063da8e58e067ade5d646debf086bb443066106c
Mallikarjuna GB [Thu, 21 May 2015 13:37:30 +0000 (19:07 +0530)]
Don't initiate sniff in sniff mode
This change makes sure that AG does not retry
to intiate sniff if device is already in remote
initiated sniff mode.
Change-Id: I77a0c4c0aaf2e93e3168f49998fe22a971d46212
Mallikarjuna GB [Thu, 21 May 2015 13:47:06 +0000 (19:17 +0530)]
Updated ATD string parsing
This change makes sure that the Dial string
parsing accepts 'pause' and 'wait' characters
too.
Change-Id: Ie56b355199a3d4292d0ee9913852292147ccf55f
Mallikarjuna GB [Wed, 22 Oct 2014 13:56:41 +0000 (19:26 +0530)]
Stop AG collision timer.
This change makes sure to stop collision
timer of AG when cleanup is happening
while BT turn off.
Change-Id: Ia877f98ba3136ec3278cbec5ab0d7ef2abfc6ed5
Mallikarjuna GB [Thu, 21 May 2015 13:32:39 +0000 (19:02 +0530)]
Return ERROR for invalid CHLD command arguments
Return ERROR for invalid chld commands like "AT+CHLD=!"
or "AT+CHLD=0a" etc. In such cases, held call was getting
terminated.
Change-Id: I93d159b20da7086fac3374ce2e163d1309680045
Anubhav Gupta [Thu, 13 Mar 2014 13:46:29 +0000 (19:16 +0530)]
Reject second AVRCP connection.
This change rejects the RC connection from
second device if the DUT is already connected
to RC of first device.
This addresses the problem of improper closure
of Uinput device on disconnection of Avrcp
to make sure Avrcp passthrough commands work
as desired.
Change-Id: If2e39cd90575baffd0e4442b8e7cd2a91eebdf56
Anubhav Gupta [Thu, 19 Jun 2014 11:20:11 +0000 (16:50 +0530)]
Disable SCMST feature for A2DP Sink
Do not send SCMST enabled in GetCapabilities
for A2dp sink role.
Change-Id: I2bff7e04d852c6d3c8c1b7e1c41ae50ef3ff0543
Mallikarjuna GB [Fri, 22 May 2015 08:31:19 +0000 (14:01 +0530)]
Restarting PM timer for AG while reading OR writing
- Once AG receives any data(eg. AT commands) from
remote device(HF) and sending the response to remote
device, PM(Bluedroid power Manager) timer should be restarted
(stop & start) for AG.
- Increased the sniff timer value to 7 seconds for AV & AG
profiles to avoid sniff related IOT issues.
Change-Id: I8c1b79d272391b3fa34b193477a34d561f4c508d
Mallikarjuna GB [Thu, 21 May 2015 08:54:05 +0000 (14:24 +0530)]
Initialize btif_max_hf_clients with proper value
btif_max_hf_clients which is an unsigned 16bit integer is
initialized with -1(0xFFFF) in btif_hf.c. Later on, when
application calls init with max_hf_clients as 1, btif_max_hf_clients
will be set to 1. But, before this happens, context switch happened
from application context to btif context with btif_max_hf_clients as -1.
In the btif context, BTA_AgRegister gets called in for loop for 0xFFFF
times. We are running out of scbs due to this.
Initialize btif_max_hf_clients with 1. Assign it to max_hf_clients
before context switch happens.
Change-Id: Ibde1bebbab2eb64442027164236f1d82e4269d23
Anubhav Gupta [Mon, 14 Jul 2014 13:23:37 +0000 (18:53 +0530)]
Set the proper authentication level for AvOpen
During Avopen security was made none hence A2DP
connection was happening without bonding when
DUT is paired with DUT and then pairing entry
is deleted from remote and then only A2dp is
tried to be reconnected from DUT. A2dp appears
to be connected in this usecase but the device
entry is shown in available devices list instead
of paired one.
Changes made from No security to SEC Authenticate
Change-Id: I7fc39fe8acef874f0031c9b78d4269a62b94e4b0
Mallikarjuna GB [Fri, 19 Sep 2014 14:57:17 +0000 (20:27 +0530)]
Don't open SCO for 2nd MO call if a call is active
When user dials a 2nd call, do not open SCO if 1st call was
active on DUT earpiece or speaker.
Change-Id: I974f5bcf917e6972705e60cf1da195eae23f885a
Mallikarjuna GB [Tue, 28 Oct 2014 17:43:51 +0000 (23:13 +0530)]
Don't close SCO for MO calls
This change removes condition to disconnect SCO
when MO call process is started.
Change-Id: I2af4ab82c097c7d9ce1bc892bdf40cc09ff6d97e
Mudumba Ananth [Wed, 10 Jun 2015 21:21:51 +0000 (21:21 +0000)]
am
f4f744f7: Fix BT PAN crash by re-ordering callback initialization
* commit '
f4f744f7a9812e2dfd306382eab80c2caf25db37':
Fix BT PAN crash by re-ordering callback initialization
Mallikarjuna GB [Wed, 8 Oct 2014 08:31:16 +0000 (14:01 +0530)]
SCO connection should happen after SLC.
This change makes sure that SCO audio
connection request is not processed until
HFP SLC connection is done.
Change-Id: Ia2fcad49882deaaf049ae190d90442e5ca7ad71b
Andre Eisenbach [Thu, 4 Jun 2015 18:43:57 +0000 (11:43 -0700)]
Fix compile error in bta_ag_sco.c
Change-Id: I8839ba732560a31a5e8a2351ea4bfb16999cf5ea
Mallikarjuna GB [Thu, 21 May 2015 14:34:46 +0000 (20:04 +0530)]
Create listen SCO for HS1 if HS2 disconnects during SCO xfer
During SCO transfer process from HS1 to HS2, firstly active SCO for
HS1 is disconnected. However, if suddenly HS2 disconnects even
before SCO transfer is complete, listen SCO for HS1 is not created.
This causes further incoming SCO connections from HS1 to be rejected.
The change creates listen SCO for HS1 and moves SCO state properly
to LISTEN.
Change-Id: I0993c1ba1c24b3b7e9c243d179a913d7a0c40446
Mallikarjuna GB [Thu, 21 May 2015 14:20:27 +0000 (19:50 +0530)]
Don't open SCO on state change for multi party call on DUT.
When multi party calls(1 active, 1 held) are ongoing on phone
speaker and any of these call drops, do not open SCO for
other call since user expects call to still remain on phone
speaker.
Change-Id: I9079c809ac665fc1c6e890302e37d23a12f8d4f4
Mallikarjuna GB [Thu, 21 May 2015 13:11:03 +0000 (18:41 +0530)]
Reset sniff subrating while in SCO
Sniff subrating should not be used when link is
in SCO connection. Since the subrating value is
higher, the link would take more time to process
ACL data while in SCO connection causing unwanted
results like delay in SCO disconnects.
Change-Id: I7b964faa397624b65e0158209b8743efe13a6075
Mallikarjuna GB [Sat, 30 May 2015 17:25:18 +0000 (22:55 +0530)]
Open SCO for held call.
Use case:
1. Connect to headset/carkit
2. Make an outgoing call from AG
3. Turn off BT on AG
4. Hold the call from AG
5. Turn on BT on AG (No SCO link is established here)
6. Unhold call from AG (still no SCO link is established)
Failure:
No SCO connection established when held call is there
during headset connection.
Root cause:
SCO is not initiated when SLC is done during held call.
Fix:
AG opens SCO connection when HF connected while in call and
the call was in held state.
Change-Id: I63d7655d26ddbf68cbf94c745df745cffa917b5e
Mallikarjuna GB [Fri, 28 Nov 2014 04:51:15 +0000 (10:21 +0530)]
Update call state before opening SCO.
This change makes sure to update the current
call state before opening SCO connection when
incoming call is answered. Some car kits are
strict in checking this sequence and go in
bad state if not done this way.
Change-Id: Ie744dc26c02d897eaf016ee73022bfc2a0db067e
Mallikarjuna GB [Fri, 22 May 2015 06:26:48 +0000 (11:56 +0530)]
Handle multi party call states
UseCase:
1. Set up Bluetooth connection between phone and remote device.
2. Disconnect BT link by turning off remote device.
3. Start Mo call from phone.
4. Receive MT call from far end.
5. Turn on remote device.
6. BT connection gets established successfully, but audio
doesn't get transferred to headset.
Failure:
Call audio not routed to BT HS. SCO not established.
Root cause:
When a HS connects while in an active call and 2nd call
(incoming/outgoing/alerting) setup ongoing, incorrect post SLC
call setup updates might cause HS to get confused as phone had
already updated correct call states in CIND response during SLC.
This may cause HS to behave abnormally like delayed response to
BCS as seen with jabra wave +.
Fix:
Avoid sending incorrect call updates post SLC since we already
have sent correct updates during SLC as reponse to CIND.
Change-Id: I53e57baf7cca782af6f374a043667971c66a956d
Mallikarjuna GB [Thu, 21 May 2015 12:28:12 +0000 (17:58 +0530)]
Update held call state to connected headset
In a three way call scenario, when an active
call is dropped by remote, the single held call
state is not updated to the connected headset.
This change will make sure that it is updated
properly.
Change-Id: I558602e791279d510edb23989b125cd8f7a7ebde
Pavlin Radoslavov [Tue, 2 Jun 2015 20:54:58 +0000 (13:54 -0700)]
Replace malloc/calloc/free with osi_malloc/osi_calloc/osi_free
There were several leftover places that were still using
malloc/calloc/free .
Those are replaced to use osi_malloc/osi_calloc/osi_free like
majority of the rest of the code.
Note: There are few remaining places that are still using
malloc/calloc/free:
* Some of the unit tests
* audio_a2dp_hw/audio_a2dp_hw.c
It is used as part of the audio.a2dp.default.so library,
and the bluetooth.default.so library
Its usage of malloc/calloc/free should be refactored
independently.
Change-Id: Iafbed996e5f1ae8eb1343fb2acfadf32e515e419
Sunny Kapdi [Tue, 2 Jun 2015 05:21:28 +0000 (22:21 -0700)]
Fix memory corruption due to BLE multi-adv macro
INST_ID_IDX_MAX macro was not protected with parenthesis, resulting
in incorrect calculation of the size needed to allocate memory for
the client_if map.
Change-Id: Ib3591f4f9ac7288f2191e9078a71aab431ca7130