OSDN Git Service

android-x86/system-bt.git
9 years agoam 86c8b9cb: am fafa2e20: Open SCO for held call.
Mallikarjuna GB [Wed, 10 Jun 2015 22:46:33 +0000 (22:46 +0000)]
am 86c8b9cb: am fafa2e20: Open SCO for held call.

* commit '86c8b9cbcfbeed728337cc5ba78c26ca1bd32824':
  Open SCO for held call.

9 years agoam f8bbeb3a: am 8885d6f4: Update call state before opening SCO.
Mallikarjuna GB [Wed, 10 Jun 2015 22:46:32 +0000 (22:46 +0000)]
am f8bbeb3a: am 8885d6f4: Update call state before opening SCO.

* commit 'f8bbeb3a4ad824a96ce637b78b0d8a0ae4bb5d38':
  Update call state before opening SCO.

9 years agoam 2411d6fe: am 616e7417: Handle multi party call states
Mallikarjuna GB [Wed, 10 Jun 2015 22:46:32 +0000 (22:46 +0000)]
am 2411d6fe: am 616e7417: Handle multi party call states

* commit '2411d6fe9319bc8e1103a64c51fbc5097698cc40':
  Handle multi party call states

9 years agoam f24e43b4: am 06c0eca5: Update held call state to connected headset
Mallikarjuna GB [Wed, 10 Jun 2015 22:46:31 +0000 (22:46 +0000)]
am f24e43b4: am 06c0eca5: Update held call state to connected headset

* commit 'f24e43b4ceaaec339aa5dec0f27ce8496a2ede9c':
  Update held call state to connected headset

9 years agoam cdd126c6: am eae61663: Replace malloc/calloc/free with osi_malloc/osi_calloc/osi_free
Pavlin Radoslavov [Wed, 10 Jun 2015 22:46:31 +0000 (22:46 +0000)]
am cdd126c6: am eae61663: Replace malloc/calloc/free with osi_malloc/osi_calloc/osi_free

* commit 'cdd126c6fafb36f5d9ecbbbc813fbe186cbbe2f9':
  Replace malloc/calloc/free with osi_malloc/osi_calloc/osi_free

9 years agoam 576e63d6: am cf8fb474: Fix memory corruption due to BLE multi-adv macro
Sunny Kapdi [Wed, 10 Jun 2015 22:46:30 +0000 (22:46 +0000)]
am 576e63d6: am cf8fb474: Fix memory corruption due to BLE multi-adv macro

* commit '576e63d6f2f51ffef61d3954b4d322e8df55793d':
  Fix memory corruption due to BLE multi-adv macro

9 years agoam fc316f0d: am 38798e1b: HID: Handle closing of uhid driver in case failure
Hemant Gupta [Wed, 10 Jun 2015 22:46:29 +0000 (22:46 +0000)]
am fc316f0d: am 38798e1b: HID: Handle closing of uhid driver in case failure

* commit 'fc316f0dc353cadbd93099ef38e94c9c3013de5f':
  HID: Handle closing of uhid driver in case failure

9 years agoam 2d7b5cf2: am 065a3e20: Reset pairing state to idle only for the current device
Srinu Jella [Wed, 10 Jun 2015 22:46:29 +0000 (22:46 +0000)]
am 2d7b5cf2: am 065a3e20: Reset pairing state to idle only for the current device

* commit '2d7b5cf218764c36d4717b9d7bf0adfd0084bdad':
  Reset pairing state to idle only for the current device

9 years agoam 894b0890: am 0933b407: Moved the OSI alarm_shutdown() operations to alarm_cleanup()
Pavlin Radoslavov [Wed, 10 Jun 2015 22:46:28 +0000 (22:46 +0000)]
am 894b0890: am 0933b407: Moved the OSI alarm_shutdown() operations to alarm_cleanup()

* commit '894b08900dc0e42d244b44491503c0d1a8192f12':
  Moved the OSI alarm_shutdown() operations to alarm_cleanup()

9 years agoam 99f9feef: am 5febd64b: Disable the OSI allocation tracker.
Pavlin Radoslavov [Wed, 10 Jun 2015 22:46:27 +0000 (22:46 +0000)]
am 99f9feef: am 5febd64b: Disable the OSI allocation tracker.

* commit '99f9feef49ffe432daa763e7f873efd5ce199a0d':
  Disable the OSI allocation tracker.

9 years agoam d6805c7a: am 8fb547c7: Handle pairing timeout during remote name request
Srinu Jella [Wed, 10 Jun 2015 22:46:27 +0000 (22:46 +0000)]
am d6805c7a: am 8fb547c7: Handle pairing timeout during remote name request

* commit 'd6805c7ad2c2029d84d629ec60f14fe7aa0f0325':
  Handle pairing timeout during remote name request

9 years agoam fa68cb73: am 73022dcd: Reduce GATT log verbosity
Andre Eisenbach [Wed, 10 Jun 2015 22:46:26 +0000 (22:46 +0000)]
am fa68cb73: am 73022dcd: Reduce GATT log verbosity

* commit 'fa68cb732cea947a07f241e48b3bd3203e885414':
  Reduce GATT log verbosity

9 years agoam 20e3de7f: am 3c67f057: Avoid null pointer exception for invalid L2CAP channels
Srinu Jella [Wed, 10 Jun 2015 22:46:25 +0000 (22:46 +0000)]
am 20e3de7f: am 3c67f057: Avoid null pointer exception for invalid L2CAP channels

* commit '20e3de7ff438a1ee6823ea631d8d8ee8847d5dae':
  Avoid null pointer exception for invalid L2CAP channels

9 years agoam b02e9ded: am 7dac79e3: (-s ours) Add missing clean_up step for the OSI module.
Pavlin Radoslavov [Wed, 10 Jun 2015 22:46:25 +0000 (22:46 +0000)]
am b02e9ded: am 7dac79e3: (-s ours) Add missing clean_up step for the OSI module.

* commit 'b02e9ded73640c21d190feda7f8ae4799884ccc4':
  Add missing clean_up step for the OSI module.

9 years agoam fafa2e20: Open SCO for held call.
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.

9 years agoam 8885d6f4: Update call state before opening SCO.
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.

9 years agoam 616e7417: Handle multi party call states
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

9 years agoam 06c0eca5: Update held call state to connected headset
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

9 years agoam eae61663: Replace malloc/calloc/free with osi_malloc/osi_calloc/osi_free
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

9 years agoam cf8fb474: Fix memory corruption due to BLE multi-adv macro
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

9 years agoam 38798e1b: HID: Handle closing of uhid driver in case failure
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

9 years agoam 065a3e20: Reset pairing state to idle only for the current device
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

9 years agoam 0933b407: Moved the OSI alarm_shutdown() operations to alarm_cleanup()
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()

9 years agoam 5febd64b: Disable the OSI allocation tracker.
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.

9 years agoam 8fb547c7: Handle pairing timeout during remote name request
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

9 years agoam 73022dcd: Reduce GATT log verbosity
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

9 years agoam 3c67f057: Avoid null pointer exception for invalid L2CAP channels
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

9 years agoam 7dac79e3: (-s ours) Add missing clean_up step for the OSI module.
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.

9 years agoam 01d335c7: am 527c9fe7: Sniff: Use correct sniff configuration for PAN & HS
Hemant Gupta [Wed, 10 Jun 2015 22:27:07 +0000 (22:27 +0000)]
am 01d335c7: am 527c9fe7: Sniff: Use correct sniff configuration for PAN & HS

* commit '01d335c7316380a457af9d58fa42d98039caa28f':
  Sniff: Use correct sniff configuration for PAN & HS

9 years agoam cbcbf624: am b5c8e291: Make secure connections mode configurable
Andre Eisenbach [Wed, 10 Jun 2015 22:27:07 +0000 (22:27 +0000)]
am cbcbf624: am b5c8e291: Make secure connections mode configurable

* commit 'cbcbf624e4616eba1085ba93a144ae633b31f6c1':
  Make secure connections mode configurable

9 years agoam 646fbbde: am 579fa2a9: Increase the min LE connection interval to 11.25ms
Prerepa Viswanadham [Wed, 10 Jun 2015 22:27:06 +0000 (22:27 +0000)]
am 646fbbde: am 579fa2a9: Increase the min LE connection interval to 11.25ms

* commit '646fbbdeca37eb61bbab2921cd85ed067e45067f':
  Increase the min LE connection interval to 11.25ms

9 years agoam 3480de65: am 0b469db5: Pairing is prompted with a wrong bd-address
Satya Calloji [Wed, 10 Jun 2015 22:27:05 +0000 (22:27 +0000)]
am 3480de65: am 0b469db5: Pairing is prompted with a wrong bd-address

* commit '3480de65e79a9669fe70c31775ce00af5accc4c3':
  Pairing is prompted with a wrong bd-address

9 years agoam 068bb16c: am c09540f7: Fix problem where multi-adv instances cannot be re-used
Andre Eisenbach [Wed, 10 Jun 2015 22:27:05 +0000 (22:27 +0000)]
am 068bb16c: am c09540f7: Fix problem where multi-adv instances cannot be re-used

* commit '068bb16c6126d5d48f9c934361c878f053eaa045':
  Fix problem where multi-adv instances cannot be re-used

9 years agoam b5da0197: am 4c0e671b: Recitfy condition when removing device from IRK resolving...
Nitin Arora [Wed, 10 Jun 2015 22:27:04 +0000 (22:27 +0000)]
am b5da0197: am 4c0e671b: Recitfy condition when removing device from IRK resolving list

* commit 'b5da01978505f3d5bae9d3b917745a77fe65804e':
  Recitfy condition when removing device from IRK resolving list

9 years agoam 2608bb67: am a021a129: Fix build after cross-key issues broke non privacy enabled...
Andre Eisenbach [Wed, 10 Jun 2015 22:27:03 +0000 (22:27 +0000)]
am 2608bb67: am a021a129: Fix build after cross-key issues broke non privacy enabled builds

* commit '2608bb6761a38d7658138055f8cb34cd67ced30a':
  Fix build after cross-key issues broke non privacy enabled builds

9 years agoam 453a414e: am 2808a249: (-s ours) Fix device/address types and IRK value handling
Satya Calloji [Wed, 10 Jun 2015 22:27:02 +0000 (22:27 +0000)]
am 453a414e: am 2808a249: (-s ours) Fix device/address types and IRK value handling

* commit '453a414e1ccabb770645b04583bf5287648531bf':
  Fix device/address types and IRK value handling

9 years agoam 527c9fe7: Sniff: Use correct sniff configuration for PAN & HS
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

9 years agoam b5c8e291: Make secure connections mode configurable
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

9 years agoam 579fa2a9: Increase the min LE connection interval to 11.25ms
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

9 years agoam 0b469db5: Pairing is prompted with a wrong bd-address
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

9 years agoam c09540f7: Fix problem where multi-adv instances cannot be re-used
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

9 years agoam 4c0e671b: Recitfy condition when removing device from IRK resolving list
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

9 years agoam a021a129: Fix build after cross-key issues broke non privacy enabled builds
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

9 years agoam 2808a249: (-s ours) Fix device/address types and IRK value handling
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

9 years agoam a585fca8: am 51a36d7e: Fixed cross key for LE when paired over BR-EDR
Satya Calloji [Wed, 10 Jun 2015 22:13:11 +0000 (22:13 +0000)]
am a585fca8: am 51a36d7e: Fixed cross key for LE when paired over BR-EDR

* commit 'a585fca8af8c99102305c95096dc86cf67cfc2b9':
  Fixed cross key for LE when paired over BR-EDR

9 years agoam 7d069c10: am 8551d99a: Fix SMP pairing request issue on LE
Satya Calloji [Wed, 10 Jun 2015 22:13:10 +0000 (22:13 +0000)]
am 7d069c10: am 8551d99a: Fix SMP pairing request issue on LE

* commit '7d069c1004353b56374dcf672343104f3eec48f7':
  Fix SMP pairing request issue on LE

9 years agoam 1466b574: am 1f38e92c: Unpair the other transport on a device paired
Satya Calloji [Wed, 10 Jun 2015 22:13:09 +0000 (22:13 +0000)]
am 1466b574: am 1f38e92c: Unpair the other transport on a device paired

* commit '1466b57440ad73f1620981dd4a5fa0ea62ca1d4b':
  Unpair the other transport on a device paired

9 years agoam 0b183c85: am 70b95989: (-s ours) Static address is seen on scanner after unpairing
Satya Calloji [Wed, 10 Jun 2015 22:13:09 +0000 (22:13 +0000)]
am 0b183c85: am 70b95989: (-s ours) Static address is seen on scanner after unpairing

* commit '0b183c855652cc9707ca8b925e7c7a543985495f':
  Static address is seen on scanner after unpairing

9 years agoam e82268f5: am 3e46b830: (-s ours) Fix for chip capability version check
Satya Calloji [Wed, 10 Jun 2015 22:13:08 +0000 (22:13 +0000)]
am e82268f5: am 3e46b830: (-s ours) Fix for chip capability version check

* commit 'e82268f57b84a21930c6c180c27d1d883cc3bc48':
  Fix for chip capability version check

9 years agoam 51a36d7e: Fixed cross key for LE when paired over BR-EDR
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

9 years agoam 8551d99a: Fix SMP pairing request issue on LE
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

9 years agoam 1f38e92c: Unpair the other transport on a device paired
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

9 years agoam 70b95989: (-s ours) Static address is seen on scanner after unpairing
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

9 years agoam 4178719b: am 935324ab: (-s ours) LE low power scan feature
Satya Calloji [Wed, 10 Jun 2015 22:06:25 +0000 (22:06 +0000)]
am 4178719b: am 935324ab: (-s ours) LE low power scan feature

* commit '4178719b192458bbc67044e6ec3b64393a3fa9d4':
  LE low power scan feature

9 years agoam 3e46b830: (-s ours) Fix for chip capability version check
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

9 years agoam d891f535: am 089651a3: Fix allocation for LE scan filter parameters
Nitin Arora [Wed, 10 Jun 2015 21:59:54 +0000 (21:59 +0000)]
am d891f535: am 089651a3: Fix allocation for LE scan filter parameters

* commit 'd891f53535da683820fdc02906383fb2b7c547fb':
  Fix allocation for LE scan filter parameters

9 years agoam ae560b29: am 19e91b0f: (-s ours) Fix for premature BLE RPA timeout
Nitin Arora [Wed, 10 Jun 2015 21:59:53 +0000 (21:59 +0000)]
am ae560b29: am 19e91b0f: (-s ours) Fix for premature BLE RPA timeout

* commit 'ae560b29b04c5f355dfb444f5d09f10eb4b45993':
  Fix for premature BLE RPA timeout

9 years agoam 935324ab: (-s ours) LE low power scan feature
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

9 years agoam ecac6ceb: am 033edab9: Fix GATT connection failure after BT reset
Satya Calloji [Wed, 10 Jun 2015 21:53:46 +0000 (21:53 +0000)]
am ecac6ceb: am 033edab9: Fix GATT connection failure after BT reset

* commit 'ecac6cebaa406e26a755e99f96535ab92bf61408':
  Fix GATT connection failure after BT reset

9 years agoam 0b9e5718: am 7557b674: Use correct structure to read LE connection handle
Nitin Arora [Wed, 10 Jun 2015 21:53:45 +0000 (21:53 +0000)]
am 0b9e5718: am 7557b674: Use correct structure to read LE connection handle

* commit '0b9e5718ed3a1eef8fabe14f176c7b43d2ee31f8':
  Use correct structure to read LE connection handle

9 years agoam 540bfa35: am 03583e8f: Build the shared library with --whole-archive
Zach Johnson [Wed, 10 Jun 2015 21:53:44 +0000 (21:53 +0000)]
am 540bfa35: am 03583e8f: Build the shared library with --whole-archive

* commit '540bfa3535195f327ad451e5b96c6cda9a92914b':
  Build the shared library with --whole-archive

9 years agoam b483a7d8: am 350b0b0d: Fix for IRK and IR key write issue
Satya Calloji [Wed, 10 Jun 2015 21:53:43 +0000 (21:53 +0000)]
am b483a7d8: am 350b0b0d: Fix for IRK and IR key write issue

* commit 'b483a7d8cda2af469816a58adaf7209a324f5ace':
  Fix for IRK and IR key write issue

9 years agoam 442555c6: am fc9c9981: Re-enabled enhanced inquiry scan
Andre Eisenbach [Wed, 10 Jun 2015 21:53:43 +0000 (21:53 +0000)]
am 442555c6: am fc9c9981: Re-enabled enhanced inquiry scan

* commit '442555c655c561b7a3aded3f99f6fc01cc0a7c57':
  Re-enabled enhanced inquiry scan

9 years agoam 4239f464: am 73378f5f: Fix format-security warning found by clang/llvm.
Chih-Hung Hsieh [Wed, 10 Jun 2015 21:53:42 +0000 (21:53 +0000)]
am 4239f464: am 73378f5f: Fix format-security warning found by clang/llvm.

* commit '4239f46452e9beff155bc3a4f6cf6c64abe01df2':
  Fix format-security warning found by clang/llvm.

9 years agoam a554457c: am 8f1a16b1: Fix string template in connection event debug log
Andre Eisenbach [Wed, 10 Jun 2015 21:53:41 +0000 (21:53 +0000)]
am a554457c: am 8f1a16b1: Fix string template in connection event debug log

* commit 'a554457cedd16a69b81bfd96faf632e811758072':
  Fix string template in connection event debug log

9 years agoam 626d8e74: am 40412562: (-s ours) Include osi_module reference in module_init funcion
Andre Eisenbach [Wed, 10 Jun 2015 21:53:40 +0000 (21:53 +0000)]
am 626d8e74: am 40412562: (-s ours) Include osi_module reference in module_init funcion

* commit '626d8e744e4da2278e11f0ea9904ab358bd3a235':
  Include osi_module reference in module_init funcion

9 years agoam 089651a3: Fix allocation for LE scan filter parameters
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

9 years agoam 19e91b0f: (-s ours) Fix for premature BLE RPA timeout
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

9 years agoam 5f9a7b5d: am c6a1c261: (-s ours) Fix AlarmTestHarness so alarm tests pass again
Zach Johnson [Wed, 10 Jun 2015 21:45:48 +0000 (21:45 +0000)]
am 5f9a7b5d: am c6a1c261: (-s ours) Fix AlarmTestHarness so alarm tests pass again

* commit '5f9a7b5d18c70e0a27fc0f0bd7177094ac86fdb6':
  Fix AlarmTestHarness so alarm tests pass again

9 years agoam 033edab9: Fix GATT connection failure after BT reset
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

9 years agoam 7557b674: Use correct structure to read LE connection handle
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

9 years agoam 03583e8f: Build the shared library with --whole-archive
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

9 years agoam 350b0b0d: Fix for IRK and IR key write issue
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

9 years agoam fc9c9981: Re-enabled enhanced inquiry scan
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

9 years agoam 73378f5f: Fix format-security warning found by clang/llvm.
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.

9 years agoam 8f1a16b1: Fix string template in connection event debug log
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

9 years agoam 40412562: (-s ours) Include osi_module reference in module_init funcion
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

9 years agoam c6a1c261: (-s ours) Fix AlarmTestHarness so alarm tests pass again
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

9 years agoam 39e1e675: am cae219fe: (-s ours) Shutdown alarm callbacks on stack disable; added...
Andre Eisenbach [Wed, 10 Jun 2015 21:37:17 +0000 (21:37 +0000)]
am 39e1e675: am cae219fe: (-s ours) Shutdown alarm callbacks on stack disable; added OSI module

* commit '39e1e675a5e90b13ff969d8bb54a7cd6ed19b52a':
  Shutdown alarm callbacks on stack disable; added OSI module

9 years agoam 197bd73b: am f4f744f7: Fix BT PAN crash by re-ordering callback initialization
Mudumba Ananth [Wed, 10 Jun 2015 21:32:12 +0000 (21:32 +0000)]
am 197bd73b: am f4f744f7: Fix BT PAN crash by re-ordering callback initialization

* commit '197bd73b976349c1a64e6cae5c2bfe437271716f':
  Fix BT PAN crash by re-ordering callback initialization

9 years agoam cae219fe: (-s ours) Shutdown alarm callbacks on stack disable; added OSI module
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

9 years agoam f4f744f7: Fix BT PAN crash by re-ordering callback initialization
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

9 years agoOpen SCO for held call.
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

9 years agoUpdate call state before opening SCO.
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

9 years agoHandle multi party call states
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

9 years agoUpdate held call state to connected headset
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

9 years agoReplace malloc/calloc/free with osi_malloc/osi_calloc/osi_free
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

9 years agoFix memory corruption due to BLE multi-adv macro
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

9 years agoHID: Handle closing of uhid driver in case failure
Hemant Gupta [Wed, 19 Nov 2014 13:39:54 +0000 (19:09 +0530)]
HID: Handle closing of uhid driver in case failure

This patch handles closure of the uhid driver in case of following:
- Due to concurrency of disconnection from a conencted device
  and an incoming connection request from another device, the error
  code for the ACL disconnection becomes HCI_ERR_HOST_REJECT_SECURITY
  in the stack.
- On reception of disconnection with that error codes, the uhid driver
  was not closed from the btif layer leading to issues in reconnection
  with same device that got disconnected.

Change-Id: I13c83757051850cc631aa1c24a036a2e1a4d0087

9 years agoReset pairing state to idle only for the current device
Srinu Jella [Thu, 13 Nov 2014 11:52:28 +0000 (17:22 +0530)]
Reset pairing state to idle only for the current device

Reset the pair state during auth complete for the BD_ADDR of the pairing
device only. The authentication complete event may come for profile level
authetication also. In such cases, if device already in paired state,
there is no need to reset the pairing state.

Change-Id: Id0ef9127895177527a6d4559ad873aa1c62a56bb

9 years agoMoved the OSI alarm_shutdown() operations to alarm_cleanup()
Pavlin Radoslavov [Mon, 1 Jun 2015 23:08:18 +0000 (16:08 -0700)]
Moved the OSI alarm_shutdown() operations to alarm_cleanup()

Also, removed the OSI module's start_up and shut_down steps,
because now they are no-op.

Bug: 21558791
Change-Id: I24259b327f399af57c37937111158baa9704f644

9 years agoDisable the OSI allocation tracker.
Pavlin Radoslavov [Mon, 1 Jun 2015 18:42:39 +0000 (11:42 -0700)]
Disable the OSI allocation tracker.

Temporary disable the allocation tracker initialization
(even for BLUEDROID_DEBUG) when initializing Bluetooth.
This is a short-term workaround solution for several issues related to
the usage of the allocation tracker.

* Inconsistent usage of osi_malloc()/osi_calloc() and osi_free()
  - Within some of the Bluetooth-related unit tests we have two copies
    of the same libosi library: one copy statically linked against the
    unit test, and another dlopen() at runtime as part of bluetooth.default.so
    Each of those copy has its own static variables.
  - For the dlopen() copy we do call allocation_tracker_init(), while for the
    static copy within the unit test we don't call allocation_tracker_init()
  - Occasionally, there is a  memory allocation via osi_calloc()
    within the dlopen()-ed library, and then it is osi_free()-ed
    within the statically linked library.
 Such (mis)usage creates issues in two ways: (1) free()-ing incorrect
 pointer, and (2) the osi hash_map() in the dlopen()-ed library still considers
 the osi-tracked memory as allocated.
 NOTE: (1) could trigger random crashes, while (2) is the reason the unit
 test triggers an assert

* Avoid potential issues that could result from the fact that calling
  allocation_tracker_init() is not mandatory; i.e., the same
  issue described above could be triggered if osi_malloc()/osi_callod()
  was called before the call to allocation_tracker_init()

* There is still code that uses malloc(3)/calloc(3) and free(3) instead
  of osi_malloc()/osi_calloc() and osi_free()

Also, add missing pthread_mutex_lock()/pthread_mutex_unlock() guards,
and fix the allocation_tracker_uninit() implementation so it works
properly even if void allocation_tracker_init() wasn't called.

Bug: 21561735
Change-Id: Ic83d6cd40af1189c4ee9c1dbfd0ad8e4666e1502

9 years agoam 9cdd8f16: am 1bd76059: (-s ours) Bluetooth native dumpsys logging support (2/5)
Andre Eisenbach [Wed, 10 Jun 2015 21:10:34 +0000 (21:10 +0000)]
am 9cdd8f16: am 1bd76059: (-s ours) Bluetooth native dumpsys logging support (2/5)

* commit '9cdd8f16499e1020d72139b48b66c10f64fbc8d9':
  Bluetooth native dumpsys logging support (2/5)

9 years agoam 864293d0: am 4e3e372a: Only register key types with uinput that we can actually map
Andre Eisenbach [Wed, 10 Jun 2015 21:10:33 +0000 (21:10 +0000)]
am 864293d0: am 4e3e372a: Only register key types with uinput that we can actually map

* commit '864293d024511fcb73d047be1e304c632e936c75':
  Only register key types with uinput that we can actually map

9 years agoam 89a87710: am 4be4396c: Elimininate unnecessary calls for releasing the wake lock.
Pavlin Radoslavov [Wed, 10 Jun 2015 21:10:33 +0000 (21:10 +0000)]
am 89a87710: am 4be4396c: Elimininate unnecessary calls for releasing the wake lock.

* commit '89a87710f99209d688fd406b19cd8e513539d661':
  Elimininate unnecessary calls for releasing the wake lock.

9 years agoam c26d8c79: am 4905f8fc: Handle lack of service better
David Stevens [Wed, 10 Jun 2015 21:10:32 +0000 (21:10 +0000)]
am c26d8c79: am 4905f8fc: Handle lack of service better

* commit 'c26d8c7922a9cade385d558dab7b201427270627':
  Handle lack of service better

9 years agoHandle pairing timeout during remote name request
Srinu Jella [Wed, 8 Oct 2014 11:06:43 +0000 (16:36 +0530)]
Handle pairing timeout during remote name request

If a remote name request is in progress and a pairing timeout is
triggered, the host needs to post the bond failure to the UI and
needs to reset the pairing cb state, otherwise the UI will be stuck
in pairing mode and scanning won't work until Bluetooth is cycled
OFF->ON.

Change-Id: I76d9a83b1db7236db51617da998b5857b0de39f0

9 years agoReduce GATT log verbosity
Andre Eisenbach [Thu, 28 May 2015 18:16:52 +0000 (11:16 -0700)]
Reduce GATT log verbosity

Change-Id: I55e6ec1afdd8a13f4401809ef89ef2d80efb7f66

9 years agoam 1bd76059: (-s ours) Bluetooth native dumpsys logging support (2/5)
Andre Eisenbach [Wed, 10 Jun 2015 21:06:13 +0000 (21:06 +0000)]
am 1bd76059: (-s ours) Bluetooth native dumpsys logging support (2/5)

* commit '1bd76059e72b7a0d54f6b325882f6eccd311f874':
  Bluetooth native dumpsys logging support (2/5)

9 years agoAvoid null pointer exception for invalid L2CAP channels
Srinu Jella [Fri, 30 May 2014 15:45:01 +0000 (21:15 +0530)]
Avoid null pointer exception for invalid L2CAP channels

Change-Id: I8ac40e9cfe6dd015f40c6f493727e123a0d247e6