Commit graph

1429 commits

Author SHA1 Message Date
Roshan Pius
d476754bc0 wifi: Add support for RSSI monitoring
Bug: 31991459
Test: Compiles
Change-Id: I8794cea12a0d1c727bd0e37123152c8da11eeabf
2016-12-08 17:58:50 -08:00
Roshan Pius
e3f72ff344 wifi: Add method implementations in IWifiRttController
Hookup the legacy HAL functions to the corresponding HIDL methods in
WifiRttController and perform the necessary struct conversions.

Bug: 31991232
Test: Compiles
Change-Id: I7bd8bd7e7af2230699c079f1ad8e0a8b1e496026
2016-12-08 17:58:50 -08:00
Roshan Pius
970f031170 wifi: Add method implementations in IWifiStaIface
Hookup the legacy HAL functions to the corresponding HIDL methods in
WifiStaIface and perform the necessary struct conversions.

Bug: 31991459
Test: Compiles
Change-Id: I8c0b9be2e375dd7147408e41a88de3f1c6f98d08
2016-12-08 17:58:50 -08:00
Roshan Pius
e2d0ab52ea wifi: Add logger method implementations in IWifiChip
Hookup the legacy HAL functions to the corresponding HIDL methods in
WifiChip and perform the necessary struct conversions.

Bug: 32221997
Test: Compiles
Change-Id: I2b0cfd6484c7599e96e9edfcef18ac3148e28307
2016-12-08 17:58:50 -08:00
Roshan Pius
881d1f7823 wifi: Gscan struct conversion changes
Rename |Scan| to |Gscan| because that is the naming we've been using in
WifiLegacyHal.
Also group all the gscan related sturct conversion methods.

Bug: 31991459
Test: Compiles
Change-Id: Ie64bcc032a0058b5b20d0bb701020cdf7bf08890
2016-12-08 17:58:50 -08:00
Roshan Pius
f72df2e186 wifi: Add some more missing struct conversions
Add the remaining struct conversions and the feature set to HIDL
capabilities conversions. The legacy feature set is distributed based on
where the functionality is exposed to IWifiChip & IWifiStaIface HIDL
interfaces.

Bug: 31991459
Bug: 32221997
Test: Compiles
Change-Id: Ifdeac1bd7325b7a0581ec225b025ef0f6980c512
2016-12-08 17:58:50 -08:00
Roshan Pius
824e475cd1 wifi: Remove unused methods in IWifiRttController
These are currently unused in the legacy HAL function table and there
isn't any need for these to be migrated over to HIDL.

Bug: 31991232
Test: Compiles
Change-Id: I50611d1fd5a6ac276e7911ca1920c3d5ee2d5ba6
2016-12-08 17:58:50 -08:00
Roshan Pius
3fae9c82a0 wifi: Add RTT structure conversion methods
While there,
Hide |convertLegacyIeBlobToHidl| from hidl_struct_util.h. There is no
need for any of the HIDL objects to directly use this. They will be used
internally in |convertLegacyScanResultToHidl|.

Bug: 31991232
Test: Compiles
Change-Id: I5702906ea84e3c77fece7be5f9d48ff3ae418c41
2016-12-08 17:58:50 -08:00
Roshan Pius
32d0ca967a wifi: Convert packet fate structures from legacy to HIDL
While there fixed a couple of nits,
1. Correct a typo in one of the packet fate structs in the .hal file.
2. Renamed the scan data flag and added a helper function to convert the
legacy flag to it's equivalent and loop through it.

Bug: 32221997
Test: Compiles
Change-Id: I414a7731054e6400d22d4e6deae9495b48dce461
2016-12-08 17:58:50 -08:00
Roshan Pius
f5f51fd039 wifi: Begin NAN iface methods implementation
Start implementation of the NAN iface HIDL methods by plumbing the HIDL
stubs to the corresponding legacy HAL methods. The incoming HIDL struct
needs to be converted to legacy for the HIDL methods. The legacy HAL
structs needs to be converted to HIDL for callbacks.

This CL only has a couple of methods and some structure conversion.
etan@ will take over the rest.

Bug: 31991076
Test: Compiles
Change-Id: Ide348f4c3318822226bb7de93d091107c7465cd3
2016-12-08 17:58:50 -08:00
Roshan Pius
f8c117d424 Merge changes from topic 'hal_firmware_reload' am: 0b739705d4 am: af2f057ace am: 41bbfca242
am: 0adbabe422

Change-Id: I96bced1a07b48b5b9b1a3e1e55b95c930ec1a17b
2016-12-08 23:57:54 +00:00
Roshan Pius
a42e9f9155 wifi: Implement chip mode combinations am: 52947fbc7e am: 584c488c4f am: 124b4c86aa
am: 7fe102f5b8

Change-Id: I4b809dd011365b776c6c86b12b3f8b704c9721f8
2016-12-08 23:57:52 +00:00
Roshan Pius
8831fedbd0 wifi: Split out initialize and start in WifiLegacyHal am: 97334114c6 am: 4ec4082519 am: 2215004970
am: 10db854064

Change-Id: I126678850dab66850c653b05af5ec275bbd259f8
2016-12-08 23:57:50 +00:00
Roshan Pius
934f4a66fd wifi: Add firmware mode controller am: a26a6e0807 am: 987226de7c am: 97f16b32c7
am: a81da5a566

Change-Id: Ia752675e15a2c484fba6553b7d24c83322ecaba2
2016-12-08 23:57:48 +00:00
Roshan Pius
0adbabe422 Merge changes from topic 'hal_firmware_reload' am: 0b739705d4 am: af2f057ace
am: 41bbfca242

Change-Id: I3ba0bdff04d7f86ca369f3a8175c5714a8ffc94f
2016-12-08 23:53:02 +00:00
Roshan Pius
7fe102f5b8 wifi: Implement chip mode combinations am: 52947fbc7e am: 584c488c4f
am: 124b4c86aa

Change-Id: Ib2689976181b5892417acb6859b43ba0fb5915c5
2016-12-08 23:53:00 +00:00
Roshan Pius
10db854064 wifi: Split out initialize and start in WifiLegacyHal am: 97334114c6 am: 4ec4082519
am: 2215004970

Change-Id: Ice1499849af0b61f3107896cda948ab1a32fc2c6
2016-12-08 23:52:59 +00:00
Roshan Pius
a81da5a566 wifi: Add firmware mode controller am: a26a6e0807 am: 987226de7c
am: 97f16b32c7

Change-Id: I09a3d6e3df6077b79ed7f4da3f77547cac939880
2016-12-08 23:52:57 +00:00
Roshan Pius
41bbfca242 Merge changes from topic 'hal_firmware_reload' am: 0b739705d4
am: af2f057ace

Change-Id: I7370f6f2b98c3087c2bd4b4ad3e56f8dbecc40c9
2016-12-08 23:47:03 +00:00
Roshan Pius
124b4c86aa wifi: Implement chip mode combinations am: 52947fbc7e
am: 584c488c4f

Change-Id: Iba879a339377076dbb5805a1f001cff015af218a
2016-12-08 23:47:02 +00:00
Roshan Pius
2215004970 wifi: Split out initialize and start in WifiLegacyHal am: 97334114c6
am: 4ec4082519

Change-Id: I2c5b7da85f9c29f2da915cff71811e7685d45a6a
2016-12-08 23:47:01 +00:00
Roshan Pius
97f16b32c7 wifi: Add firmware mode controller am: a26a6e0807
am: 987226de7c

Change-Id: Iaa8bbd727c356da243da8117ed00d630b1d97bd7
2016-12-08 23:46:57 +00:00
Roshan Pius
af2f057ace Merge changes from topic 'hal_firmware_reload'
am: 0b739705d4

Change-Id: I0c8327f5649e96f5005856c18e416f8896c3ec9d
2016-12-08 23:42:31 +00:00
Roshan Pius
584c488c4f wifi: Implement chip mode combinations
am: 52947fbc7e

Change-Id: I18e8ed2a8183fa88396d6b3cf8be133edc263f1e
2016-12-08 23:42:30 +00:00
Roshan Pius
4ec4082519 wifi: Split out initialize and start in WifiLegacyHal
am: 97334114c6

Change-Id: If3bde7e3796f147f9da47b92e7d49b81252e300f
2016-12-08 23:42:29 +00:00
Roshan Pius
987226de7c wifi: Add firmware mode controller
am: a26a6e0807

Change-Id: I2b8cfeb08f88024157c945ec7a8b92c19ce296a0
2016-12-08 23:42:27 +00:00
Treehugger Robot
0b739705d4 Merge changes from topic 'hal_firmware_reload'
* changes:
  wifi: Implement chip mode combinations
  wifi: Split out initialize and  start in WifiLegacyHal
  wifi: Add firmware mode controller
2016-12-08 23:36:26 +00:00
Connor O'Brien
afe3f2cb55 Merge "Boot HAL target-side test" 2016-12-08 21:39:12 +00:00
Elliott Hughes
d0f553bd86 Merge "Remove unused hardware/interfaces tests dependency on libtestUtil." am: 827e038651 am: f279b5d2cd am: 6d2e524f46
am: 3621ecd51c

Change-Id: Icc540a3f1d0ba427ffe55d6e0f0c39f738cba97f
2016-12-08 18:46:38 +00:00
Elliott Hughes
3621ecd51c Merge "Remove unused hardware/interfaces tests dependency on libtestUtil." am: 827e038651 am: f279b5d2cd
am: 6d2e524f46

Change-Id: If1a415d8b1e07c77363191b563fcd98ed7a67e01
2016-12-08 17:37:24 +00:00
Elliott Hughes
6d2e524f46 Merge "Remove unused hardware/interfaces tests dependency on libtestUtil." am: 827e038651
am: f279b5d2cd

Change-Id: Idfd89ccb1bb33b3a4e5482d90bcde429e5d08a08
2016-12-08 17:32:02 +00:00
Elliott Hughes
f279b5d2cd Merge "Remove unused hardware/interfaces tests dependency on libtestUtil."
am: 827e038651

Change-Id: I4f786487624c45ce1b2c03e39743fa9db3650426
2016-12-08 17:28:33 +00:00
Elliott Hughes
827e038651 Merge "Remove unused hardware/interfaces tests dependency on libtestUtil." 2016-12-08 17:21:53 +00:00
Connor O'Brien
100b491d2d Boot HAL target-side test
Test: make vts; vts-tradefed run -m HalBootHidlTargetTest
Bug: 32022514
Change-Id: I65606790cc3b2f93d6706b70fad21c172635e0c7
Signed-off-by: Connor O'Brien <connoro@google.com>
2016-12-07 19:04:58 -08:00
TreeHugger Robot
54da2f1a55 Merge "Update dependencies for vibrator vts." 2016-12-08 02:49:32 +00:00
TreeHugger Robot
593f0f9315 Merge "Implementing per-property access control" 2016-12-08 01:26:16 +00:00
Yifan Hong
d2532c4822 Update dependencies for vibrator vts.
It uses the implicit cast in libhidlbase.

Test: compiles with CL 308798 on AOSP.
Change-Id: I1e026cae56ff5e394df7313f09715c0cf5fc28e0
2016-12-07 17:12:54 -08:00
Sanket Padawe
a4d8fdd1a5 Add missing function to telephony HIDL interface. am: 1a7eae777b am: 7a6e99c103 am: 8ed49368f7
am: f32d2db7bf

Change-Id: Ibcad263b2a968123bba17adf416a2d53b1cf2b87
2016-12-08 01:11:28 +00:00
Mikhail Naganov
13f43f4afe audiohal: Do not log if EINVAL is received from get_presentation_position
This happens often, and it's normal. Avoid logging it down as this
causes logspam.

Bug: 33353073
Change-Id: Ia3b1b8af61bdf83e9bcde0e5bed0285af037df45
Test: cause the system to play some sounds (e.g. UI clicks), watch logcat
2016-12-07 17:08:04 -08:00
Sanket Padawe
f32d2db7bf Add missing function to telephony HIDL interface. am: 1a7eae777b am: 7a6e99c103
am: 8ed49368f7

Change-Id: If58ee464623c141e03705cfc78440c63c0b05557
2016-12-08 01:07:36 +00:00
Sanket Padawe
8ed49368f7 Add missing function to telephony HIDL interface. am: 1a7eae777b
am: 7a6e99c103

Change-Id: I16582b36a74c880cfd9e88e2fd4cc75fbe17d7e3
2016-12-08 01:03:36 +00:00
Sanket Padawe
7a6e99c103 Add missing function to telephony HIDL interface.
am: 1a7eae777b

Change-Id: I19055b0f2559b4d7c6bb718e53ba7cbad2ac9f0d
2016-12-08 01:00:06 +00:00
TreeHugger Robot
50dec2faa4 Merge "Vehicle hal driver in vts" 2016-12-08 00:29:29 +00:00
Roshan Pius
52947fbc7e wifi: Implement chip mode combinations
This is pretty hardcoded for now. We expose 2 chip modes:
1. STA mode: 1 STA and 1 P2P or NAN iface.
2. AP mode: 1 AP iface.

Implement the chip mode configuration related HIDL methods in
WifiChip and integrate WifiModeController. These is some change in the
order of calls invoked within the implementation to accomodate the
firmware reload:
a. Since the legacy HAL needs to reinitialized after
firmware reload, we can no longer do this in IWifi.start().
So, we'll defer this to IWifiChip.configureChip() now.
b. Refactor IWifi.startInternal() and IWifi.stopInternal() to pull
out the actual implementation into a separate helper functions and
let it invoke the required callbacks.

Bug: 31997422
Bug: 32018162
Test: Compiles
Change-Id: I461687d7ee92398bc47321e1baca609db65c7991
2016-12-07 15:42:08 -08:00
Mikhail Naganov
728037943d Merge "Audio HAL: extensions for new SoC features" 2016-12-07 23:40:14 +00:00
Roshan Pius
97334114c6 wifi: Split out initialize and start in WifiLegacyHal
We need to separate these because we need to invoke start() after every
firmware mode change (chip reconfigure).

While there,
1. Make InterfaceTool a member of the class.
2. Make the stop() symmetric with start(). i.e interface is set
down on stop immediately instead of waiting for the thread to stop.

Bug: 31997422
Test: Compiles
Change-Id: I202afcc70571188dc076a841249761bc97fcf817
2016-12-07 15:38:24 -08:00
Roshan Pius
a26a6e0807 wifi: Add firmware mode controller
This module will make the necessary calls to reconfigure the
driver/firmware in the required state.
The module assumes that the sysfs paths needed to be accessed has been
chowned to "wifi" at bootup in the device's .rc file.

Bug: 32018162
Test: Compiles
Change-Id: I827c5eb6b5b4a3810e912d4164dbc8ff0ef4d30c
2016-12-07 15:35:14 -08:00
Sanket Padawe
1a7eae777b Add missing function to telephony HIDL interface.
+ fix some comments as per specs.

Test: No test
Bug: 32020264
Change-Id: If8e83a7465e608e28f7e149025da5ede30924602
2016-12-07 14:40:03 -08:00
Yuexi Ma
f031e44533 Vehicle hal driver in vts
Test: make vts
Change-Id: Ib0b022e257fedebdf8bf952f7ea82479a4b45dad
2016-12-07 21:45:22 +00:00
Elliott Hughes
2d224c8026 Remove unused hardware/interfaces tests dependency on libtestUtil.
Bug: N/A
Test: builds
Change-Id: Ic0beba4a8ac19c4883bf49e330b23e4e6f64985a
2016-12-07 13:11:45 -08:00