Commit graph

1149 commits

Author SHA1 Message Date
Myles Watson
0668f3398e Merge changes Ic4fcbb22,I1be8a18d am: b19f11d09d
am: cb06ecd1d1

Change-Id: I0f0e678e04360dc33f7315bc2ade025ee6adf8de
2017-02-03 18:32:16 +00:00
Myles Watson
fb9a818cdb Bluetooth: Use AsyncFdWatcher for power management am: beb13b45c0
am: 5e3a517d3f

Change-Id: Ie2fba1af830d96bb2b47fff3add1fb47fd4a729e
2017-02-03 18:32:14 +00:00
Myles Watson
b4654fd048 Bluetooth: AsyncFdWatcher: Refactor timeout lock am: eba1312c86
am: c3e3a43238

Change-Id: I490ece7f45135fbf47351bd8bf0cd604d936aba4
2017-02-03 18:32:13 +00:00
Myles Watson
02499ded01 Merge "Bluetooth: Free memory from transmit_cb commands" am: 559ae1585b
am: 2c2cda15b4

Change-Id: Idd72c4aa9a71409f630d310c01442e5abc49b57d
2017-02-03 18:32:03 +00:00
Myles Watson
cb06ecd1d1 Merge changes Ic4fcbb22,I1be8a18d
am: b19f11d09d

Change-Id: I666a015519db1221eaa6f2523b8a11653e5991f2
2017-02-03 18:29:45 +00:00
Myles Watson
5e3a517d3f Bluetooth: Use AsyncFdWatcher for power management
am: beb13b45c0

Change-Id: I6e0c5fa73ee8c3c920dd56dad5e97edcc321020c
2017-02-03 18:29:44 +00:00
Myles Watson
c3e3a43238 Bluetooth: AsyncFdWatcher: Refactor timeout lock
am: eba1312c86

Change-Id: I7941c96144b32482683c9b30c4bd99418db14869
2017-02-03 18:29:43 +00:00
Myles Watson
2c2cda15b4 Merge "Bluetooth: Free memory from transmit_cb commands"
am: 559ae1585b

Change-Id: Ib4224beec441ef48d2a7815344f877150decb7c0
2017-02-03 18:29:33 +00:00
Treehugger Robot
b19f11d09d Merge changes Ic4fcbb22,I1be8a18d
* changes:
  Bluetooth: Use AsyncFdWatcher for power management
  Bluetooth: AsyncFdWatcher: Refactor timeout lock
2017-02-03 18:24:23 +00:00
Treehugger Robot
559ae1585b Merge "Bluetooth: Free memory from transmit_cb commands" 2017-02-03 18:24:09 +00:00
Zhuoyao Zhang
fa531574ab Merge "Support driver/profiler for all hals." am: a0ff9aca7a
am: 2b741f188b

Change-Id: Ie1cc3de7d8c3d3530586d00936146f8f5cda0910
2017-02-03 00:48:07 +00:00
Zhuoyao Zhang
2b741f188b Merge "Support driver/profiler for all hals."
am: a0ff9aca7a

Change-Id: I15c0dfb56548ab7945f2bdb85b7c22a9e5f73075
2017-02-03 00:46:39 +00:00
Zhuoyao Zhang
a0ff9aca7a Merge "Support driver/profiler for all hals." 2017-02-03 00:43:03 +00:00
Myles Watson
beb13b45c0 Bluetooth: Use AsyncFdWatcher for power management
Implement low power mode using timeouts from the interface.

Test: Boots, Bluetooth turns on/off,
      Instrumented bt_vendor library shows power management
      calls.
Change-Id: Ic4fcbb222f24b66c13f3797b14475d278c49fbc6
2017-02-02 22:15:56 +00:00
Myles Watson
eba1312c86 Bluetooth: AsyncFdWatcher: Refactor timeout lock
Allow timeouts to change the timeout.
Add a unit test for this.

Test: Unit tests pass, Bluetooth starts and stops.
Change-Id: I1be8a18dd74a312175ec9c27de37213272650e8e
2017-02-02 22:15:49 +00:00
Myles Watson
4e2e8ec4e0 Bluetooth: Free memory from transmit_cb commands
Test: Bluetooth starts and stops
Change-Id: I540fcc77f9bae0178db325b7014f2b839d4ad77d
2017-02-02 22:15:33 +00:00
Roshan Pius
7a7c31c68c Merge "wifi: Add scanning mac oui setter" am: fc5a779766
am: 2666dcea2e

Change-Id: I3d4194b7142d0ec6088dbd2a012f465811d32743
2017-02-02 19:49:55 +00:00
Roshan Pius
2666dcea2e Merge "wifi: Add scanning mac oui setter"
am: fc5a779766

Change-Id: I6531cee9a0b5aeb645f28877919a50b06ee1c6a8
2017-02-02 19:41:24 +00:00
Treehugger Robot
fc5a779766 Merge "wifi: Add scanning mac oui setter" 2017-02-02 19:28:07 +00:00
Zhuoyao Zhang
bd752892b3 Support driver/profiler for all hals.
* Update the make file to generate driver/profiler for hals.

Test: mma
Change-Id: I2a91d913b05beb8e1ecf28a205852f848ef1f5ee
2017-02-01 20:53:21 -08:00
Yuexi Ma
ef6fd71304 vts files for radio hal am: faad7891fb
am: aab4a5b8cf

Change-Id: I06546460624a23dc87b33184e675b8c396fa7492
2017-02-02 01:24:32 +00:00
Yuexi Ma
aab4a5b8cf vts files for radio hal
am: faad7891fb

Change-Id: I20b2ded113957974de68b5ea2544bfc997f5ae81
2017-02-02 01:22:01 +00:00
Yuexi Ma
faad7891fb vts files for radio hal
Merged-In:I8bce0b3ce4874442638e4967b4b88fcd60497729
Test: mma
Change-Id: I8bce0b3ce4874442638e4967b4b88fcd60497729
(cherry picked from commit 689c6fb1b5)
2017-02-01 15:30:07 -08:00
Roshan Pius
795bb81596 wifi: Add scanning mac oui setter
Bug: 34886995
Test: Compiles
Change-Id: I55d4cf55d1832f27de975f97c2e739012ddacc28
2017-02-01 21:57:40 +00:00
Etan Cohen
2ea0959e5c Merge "Wi-Fi/NAN HAL/service fixups" am: 7f1c9647b8
am: cc195e0c67

Change-Id: Ie3a36500aa1901be8a8d9094c45ee6af517e046f
2017-02-01 05:39:23 +00:00
Etan Cohen
cc195e0c67 Merge "Wi-Fi/NAN HAL/service fixups"
am: 7f1c9647b8

Change-Id: I9cf88ab989a4365c15cc3a48aa446e1452e3efe0
2017-02-01 05:37:22 +00:00
Etan Cohen
7f1c9647b8 Merge "Wi-Fi/NAN HAL/service fixups" 2017-02-01 05:33:17 +00:00
Etan Cohen
4bbc209282 Wi-Fi/NAN HAL/service fixups
Fixes related to debugging during integration with
framework. Changes are due to errors in original
definition.

Bug: 32315992
Test: integration (sl4a) tests
Change-Id: I5c427e4d0f8677a611eb6d9abfa641a7f8406e31
2017-01-31 14:39:57 -08:00
Myles Watson
c198d27f06 Bluetooth: Move AsyncFdWatcher tests to the device am: b43a5b2435
am: 150ff7ba06

Change-Id: Ia2dfd18d3c8a44bdcb0edc2877daef686f7362a1
2017-01-31 20:38:15 +00:00
Myles Watson
150ff7ba06 Bluetooth: Move AsyncFdWatcher tests to the device
am: b43a5b2435

Change-Id: I2b2f98eb96e2a0c8583a5177686f9099ee5102cd
2017-01-31 20:35:44 +00:00
Myles Watson
b43a5b2435 Bluetooth: Move AsyncFdWatcher tests to the device
Darwin builds were breaking.

Test: compile, unit tests pass
Change-Id: Ia00f590fe56211e25dff8d3138ebd93a306cf2c6
2017-01-31 12:20:44 -08:00
Myles Watson
406e3c4f24 Bluetooth: Add a timeout in async_fd_watcher am: 7d42dcad6e
am: 92add17f16

Change-Id: I4d3b7421997df9b9647e62294e58bfd783d6635a
2017-01-31 19:29:11 +00:00
Myles Watson
92add17f16 Bluetooth: Add a timeout in async_fd_watcher
am: 7d42dcad6e

Change-Id: I0086b5ca130b11b296d3fe839c1e099ed4044425
2017-01-31 19:26:39 +00:00
Myles Watson
7d42dcad6e Bluetooth: Add a timeout in async_fd_watcher
Add a timeout to the select call and a callback.
Add unit tests for async_fd_watcher.

Test: unit tests pass
Change-Id: I0076fd52e79aac0d2a9fcceb90aae318d5f0757b
2017-01-31 04:32:16 +00:00
Roshan Pius
11239d83f5 Merge "wifi: Fixing Nits" am: 76cf857403
am: 13dedb9197

Change-Id: I56c8b1d21466e1cc8efe7fc9a73a7bd80c952065
2017-01-31 01:12:32 +00:00
Roshan Pius
13dedb9197 Merge "wifi: Fixing Nits"
am: 76cf857403

Change-Id: I4cfc3ba7771106a4efb801d5a9d40b4ae2cd4088
2017-01-31 01:10:36 +00:00
Treehugger Robot
76cf857403 Merge "wifi: Fixing Nits" 2017-01-31 01:05:51 +00:00
Myles Watson
0c2f2e6cfc Bluetooth: Make Send() send a complete packet am: df765eab60
am: 1daf027d94

Change-Id: I6af485cb009c69d53e59dd72f2b9723f9c28f856
2017-01-31 00:46:59 +00:00
Myles Watson
1daf027d94 Bluetooth: Make Send() send a complete packet
am: df765eab60

Change-Id: I742da2de02c1205ced2c9c62a28dba22d9060520
2017-01-31 00:44:29 +00:00
Myles Watson
df765eab60 Bluetooth: Make Send() send a complete packet
Add the packet type to Send() so that it is called once per packet.

Test: Bluetooth starts/stops and scans
Change-Id: I2ef9c5f9a85d3227d4ff181b6a6931f239f75049
2017-01-31 00:36:48 +00:00
Myles Watson
1a9a9321bc Bluetooth: Check for waiting HAL callbacks am: a7d33b3636
am: 00802c2adb

Change-Id: Ic6f63235c8f2d946a4447392664c5a56bb667b99
2017-01-31 00:35:41 +00:00
Myles Watson
8c74ee070f Bluetooth: Use fixed-size preambles am: 71390182c6
am: a6b8e5af81

Change-Id: I128cc310c47198de6ad0ee5629c3b99592355d19
2017-01-31 00:35:40 +00:00
Myles Watson
ce7ca8910c Bluetooth: Clean up some messages am: 8ffcbc7797
am: 257a7d9874

Change-Id: Ib828685b64d701faf93422bfca8452f3c9c9fdc9
2017-01-31 00:35:29 +00:00
Myles Watson
00802c2adb Bluetooth: Check for waiting HAL callbacks
am: a7d33b3636

Change-Id: Id68578c65b30f92c010ec266e04d2f0a21a9d6a8
2017-01-31 00:33:11 +00:00
Myles Watson
a6b8e5af81 Bluetooth: Use fixed-size preambles
am: 71390182c6

Change-Id: I764ed03fcefd7d9f224962d01669001cb6f4d73b
2017-01-31 00:33:10 +00:00
Myles Watson
257a7d9874 Bluetooth: Clean up some messages
am: 8ffcbc7797

Change-Id: I77827f09ee695fc71c87350919a54b13d2a8158f
2017-01-31 00:32:58 +00:00
Roshan Pius
32fc12ea4f wifi: Fixing Nits
Changes in the CL to fix bugs found while integrating
with framework:
1. Added IWifiApIface.setCountryCode()
Bug: 34682168
2. Fixed documentation nits in .hal files.
Bug: 34468218
3. Changed roaming state enum values.
Bug: 34715231
4. Added log for EBUSY in legacyErrorToString()
Bug: 34715469
5. Remove "-Wno-unused parameter" from Android.mk
Bug: 34611289
6. Remove the erroneous |onFailure| callback invocation in wifi.cpp.
7. Add null terminations to strings passed to legacy HAL API's
8. Remove unused |IWifiStaIface.stopDebugPacketFateMonitoring|.

Test: Compiles
Change-Id: If3a3e2f360a378c59dc56b8bbe3a0c6d400b3bd8
2017-01-30 15:12:31 -08:00
Myles Watson
a7d33b3636 Bluetooth: Check for waiting HAL callbacks
Test: Bluetooth boots, turns on/off
Change-Id: Iad2f359a78c9acbf0fe44740ed0813de462ce57c
2017-01-30 19:29:25 +00:00
Myles Watson
71390182c6 Bluetooth: Use fixed-size preambles
Test: Bluetooth turns on/off finds devices in Settings
Change-Id: Id640f3dbde3f53b31ce62eccf59bbc8d25130388
2017-01-30 19:27:40 +00:00
Myles Watson
8ffcbc7797 Bluetooth: Clean up some messages
Use Info for low-frequency messages.
Print hex for characters.

Test: Bluetooth turns on/off
Change-Id: If1fe20a71287cc91c2a7225488e5d44c7ee4ecee
2017-01-30 19:19:17 +00:00