Commit Graph

20663 Commits

Author SHA1 Message Date
Roshan Pius
d949d9cd1d supplicant(interface): Fix compilation failure am: 9e01c51793 am: 211c3b874c
am: 61e50c20e2

Change-Id: I9e85e615b7c0a98c06922687d419e44d6bc95c65
2016-11-16 19:15:29 +00:00
Roshan Pius
61e50c20e2 supplicant(interface): Fix compilation failure am: 9e01c51793
am: 211c3b874c

Change-Id: I47f6acf290314c7d314dc9ff66864133a7b55fce
2016-11-16 19:09:26 +00:00
Roshan Pius
1922482a5c wifi: Rename failure_reason_util to wifi_status_util
The HIDL interface now returns a |WifiStatus| instance to indicate the
status of any operation. This is replacing the existing asynchronous
delivery of success or failure (using |FailureReason| instance).

Rename the existing util class to |wifi_status_util| and add a couple of
methods to create a |WifiStatus| instance with empty description.

Bug: 32056230
Test: Compiles
Change-Id: I8488f7cd7d6ad6bd7a0c3c82a7ef83299d877d45
2016-11-16 11:05:16 -08:00
Roshan Pius
02caa1b821 wifi(interface): Add status for all methods
Add missing status returns for a few HIDL methods. This is to keep the
interface consistent.

Bug: 32146455
Test: update_makefile.sh
Change-Id: Ia66fe4d00e884e5ce1e1906db77bb5ffdaebffdd
2016-11-16 11:05:16 -08:00
Roshan Pius
e0724f98b0 wifi(interface): Add wifi host debug wake up reason stats
These stats are used to determine if the device is being woken up
frequently by the wlan chipset. The stats structure describe all the
various resons for which the host was woken up by the wlan chipset
(firmware).

Bug: 32221997
Test: ./hardware/interfaces/update-makefiles.sh
Change-Id: Id52915348fef0283affcd834c6f1db5055e54ace
2016-11-16 11:05:16 -08:00
Roshan Pius
fe9ad36cb2 wifi(interface): Add wifi debug packet fate related interface
The packet fate debug mechanism is used to track the state of all the
packets transmitted/received during the association process.

Also,
Add the various debug capabilities in the respective interfaces.
All ring buffer, driver/firmware dump, etc related capabilities are in
IWifiChip object.
The packet fate capability is exposed in IWifiStaIface object.

Bug: 32221997
Test: ./hardware/interfaces/update-makefiles.sh
Change-Id: Ic6bf49d682b70a1cdcd18c69fc25a544921bd548
2016-11-16 11:05:16 -08:00
Roshan Pius
e3a02b07b6 wifi(interface): Add wifi debug ring buffer related interface
The debug ring buffers is a purely debug mechanism to let the driver
report debug info like connection events, power events, etc to the
framework.
The framework used to previously dump out the raw byte stream in
the bugreport and the vendors had some tools to parse out the data.
This is now being changed to provide the framework with the
internal ring buffer structs to ease parsing this data in framework
itself. This will eventually be used in the new wifilogd daemon.

Bug: 32221997
Test: ./hardware/interfaces/update-makefiles.sh
Change-Id: I2c90662cfa9d07ae6fc72198a286338dbaacbfc2
2016-11-16 11:05:16 -08:00
Roshan Pius
5e25466ebf wifi(interface): Move all StaIface types to types.hal
Some of these structs are used in the debug framework and hence needs to
live in types.hal. Add a |Sta| prefix to differentiate them from other
types similar to what is done for Nan and Rtt types.

Bug: 31991459
Test: ./hardware/interfaces/update-makefiles.sh
Change-Id: Idc49b28447609c4334b0a086481c404c06a63fea
2016-11-16 11:05:16 -08:00
Roshan Pius
e03f736ca0 wifi(interface): Fix compilation failure
Changes in the CL:
a) Unions are not allowed in the HIDL generated code that is going to be
used in java.
b) Few RTT constants were defined twice in the legacy rtt.h. One set
as enums, the other set as #define's. Remove the duplicated values in
the HIDL interface.

Bug: 31991076
Bug: 31991232
Test: mmm -j32 hardware/interfaces/wifi/1.0/
Change-Id: I03db70c7b89c0be53a7754ab8b34a19ad2c6e536
2016-11-16 11:05:16 -08:00
Roshan Pius
18eec81adc wifi(interface): Rtt controller HIDL interface
Bug: 31991232
Test: ./hardware/interfaces/update-makefiles.sh
Change-Id: I53b95e85ee8a71bcb0494420913c9511f87908c0
2016-11-16 11:05:16 -08:00
Roshan Pius
120f94c594 wifi(interface): NAN HIDL interface
Interface is mostly a replication of the wifi_nan.h HAL header file.
1. All the methods are in |IWifiNanIface|.
2. Moved all the callbacks to |IWifiNanIfaceEventCallback.hal|.
2. Moved all the data types to |types.hal|.
3. Changed all the variable size arrays to vecs.

Bug: 31991076
Test: ./hardware/interfaces/update-makefiles.sh
Change-Id: I2af0b0003cf30a0f2bfdcb56b69c492cf831745b
2016-11-16 11:05:16 -08:00
Roshan Pius
18680b7aff wifi(interface): Link layer stats collection
Add HIDL methods for STA iface link layer stats.

While there,
Add the missing gscan API for fetching a list of channels for a given
band.

Bug:31991459
Test: Compiles
Change-Id: I5d448eb823faae4e8f5c25f746cf59e70df454cf
2016-11-16 11:05:16 -08:00
Roshan Pius
a52dc7322d wifi(interface): Make methods synchronous
Having all the HIDL methods asynchronous, makes it hard for the
calling code to keep track of the operation status/result.
There are some operations which will generate asynchronous results (like
bgscan), convert all the other methods to synchronous methods.

The |EventCallback| objects will now just broadcast important events
(needed for other clients to listen for state changes). This will no
longer be used to send responses to every command sent to the HAL.

Bug: 32061909
Test: `./hardware/interfaces/update-makefiles.sh`
Change-Id: Id2433f4c8e028268dd027cdeb239ba4082b157b5
2016-11-16 11:05:16 -08:00
Roshan Pius
1f9073cfcb wifi(interface): Add status for every method
Add a status parameter for every HIDL interface object method which can
possibly become invalid. This should help inform the caller that the
object being used is stale/invalid now.

While there,
Rename |CommandFailureReson| to |FailureReasonCode|.

NOTE: |FailureReason| will continue to indicate any errors during the
processing of the command via the corresponding |onFailure| callback.

Bug: 32056230
Test: Compiles
Change-Id: I2ec5af3075221e483579410f344bcedd6bf17a93
2016-11-16 11:05:16 -08:00
Roshan Pius
7b77747bb5 wifi(interface): Add gscan/apf related API's
Changes in the CL:
1. Add gscan/APF related API's to |IWifiStaIface|.
2. Add a new callback HIDL interface (|IWifiStaIfaceEventCallback)
for all callbacks received from |IWifiStaIface|.

Bug: 31991459
Test: Compiles
Change-Id: Id9f2ded9e20bee393ab53d84efa814d52704cd2c
2016-11-16 11:05:16 -08:00
Roshan Pius
211c3b874c supplicant(interface): Fix compilation failure
am: 9e01c51793

Change-Id: Ib0fa885cb256ca000ca04e3bface3690bbd6f1fc
2016-11-16 19:00:29 +00:00
Roshan Pius
9e01c51793 supplicant(interface): Fix compilation failure
The generated code uses the variable |code| internally.

Bug: 31116047
Test: mmm -j32 hardware/interfaces/wifi/supplicant/1.0/
Change-Id: Ic6d0c9a198a026460f67fa4920b8003a304f6727
2016-11-16 10:29:37 -08:00
Roshan Pius
539c8a4ffd Merge "supplicant(interface): Add support for Hotspot 2.0" am: 06a3daad19 am: 21e39f87e4 am: 1ac211647e
am: 0a8db414fd

Change-Id: I30446cfdce6a2620490fd2d9f02137460a09d10d
2016-11-16 17:55:08 +00:00
Roshan Pius
0a8db414fd Merge "supplicant(interface): Add support for Hotspot 2.0" am: 06a3daad19 am: 21e39f87e4
am: 1ac211647e

Change-Id: I89c89b13f8d775faed33f5c90807206ab75e1631
2016-11-16 17:47:38 +00:00
Roshan Pius
1ac211647e Merge "supplicant(interface): Add support for Hotspot 2.0" am: 06a3daad19
am: 21e39f87e4

Change-Id: Ie1aa347d5e9cccd20d6f0666b81f2dbdf7619bf3
2016-11-16 17:40:07 +00:00
Roshan Pius
21e39f87e4 Merge "supplicant(interface): Add support for Hotspot 2.0"
am: 06a3daad19

Change-Id: I6784df7d3dcc34483f4b7c681d64d4d4e76c9fc0
2016-11-16 17:32:37 +00:00
Roshan Pius
06a3daad19 Merge "supplicant(interface): Add support for Hotspot 2.0" 2016-11-16 17:24:13 +00:00
TreeHugger Robot
5f871daa24 Merge "NFC: Update vts files to include the Annotations." 2016-11-16 03:46:01 +00:00
Sasha Levitskiy
52640ee9e1 Fingerprint: Treble: Fix compatibility in the interface description
Bug: 31973669
Test: Human functionality test
Change-Id: I7e3ef8eb9fbcd88a1a22e2e8bbae71756e079862
Signed-off-by: Sasha Levitskiy <sanek@google.com>
2016-11-15 17:04:51 -08:00
Ruchi Kandoi
1a6aacfca2 NFC: Update vts files to include the Annotations.
Bug: 32124874
Test: Compiles
Change-Id: I9b323350d2ab9e9acedd4ef85a27daeb5f671bd4
Singed-off-by: Ruchi Kandoi<kandoiruchi@google.com>
2016-11-15 15:15:10 -08:00
Steven Moreland
035ce20c08 Merge "Ran update-makefiles.sh" 2016-11-15 17:31:18 +00:00
Mikhail Naganov
7041094c82 Merge "Implement audio devices and streams HAL delegating to legacy HAL" 2016-11-15 17:01:50 +00:00
Mikhail Naganov
1054829502 Implement audio devices and streams HAL delegating to legacy HAL
Changes made to the .hal definition:

  - introduce Effect ID returned by the IEffectsFactory that
    needs to be passed to IStream.{add|remove}Effect; otherwise
    it's impossible to retrieve the underlying HAL effect handle;

  - change "bus address" in DeviceAddress to "string" type;

  - fix signature of some methods w.r.t. returning Result;

  - remove unused "struct AudioPatch".

Bug: 30222631
Test: make
Change-Id: Icb51729ef57bb2a5b0b78609735e7481bc04f95c
2016-11-15 08:52:39 -08:00
TreeHugger Robot
04c37ada23 Merge "Add layered image support to gralloc1 hal." 2016-11-15 05:15:00 +00:00
Donghyun Cho
c6fe6cf3f6 tv.cec: Handle an unused argument warning
Bug: 32748972
Test: mmm hardware/interfaces/tv/cec/1.0/default
Change-Id: I67cb1c7bbc3b6355a274054cf0dc389182c80b9c
2016-11-15 11:38:39 +09:00
Ashutosh Joshi
7650c8697e Merge "Initial commit for the HIDL Context Hub HAL" 2016-11-15 02:00:44 +00:00
Ashutosh Joshi
6104b27d6a Initial commit for the HIDL Context Hub HAL
Initial commit for the context hub Hal. At this point it is
largely a refactoring of the older HAL with some new abstractions.

Test: Make completes successfully
Change-Id: Ieac4b20403e6e0b3966a4f5570fbbba7151e783b
2016-11-14 16:19:38 -08:00
Mikhail Naganov
f6c03bfc74 Merge "Add simple target-side VTS test for IEffectFactory.hal" 2016-11-14 19:35:50 +00:00
Mikhail Naganov
bf39317f37 Add simple target-side VTS test for IEffectFactory.hal
Bug: 32022706
Change-Id: Id8a5a3ba8d48967beba0ef2e232624ebc185e5c6
Test: build & run test
2016-11-14 09:41:03 -08:00
Ryan Campbell
ae50c96929 Merge "VTS driver files for memtrack HAL." 2016-11-14 17:22:35 +00:00
Steven Moreland
2c68cc4457 Ran update-makefiles.sh
Test: pass
Change-Id: Ia9d14d29ce9f5dc4688cc177bf747c7f11223b2b
2016-11-11 17:21:31 -08:00
TreeHugger Robot
35d1511b87 Merge "Fix up result type for bit-wise or of enum values" 2016-11-11 23:47:40 +00:00
Scott Randolph
fbd346636f Fix up result type for bit-wise or of enum values
When combining enum values with bit-wise operators, the result is no
longer of the enum type, so we need to cast it back.

Test: local compile
Change-Id: I3697d37b612f0e29aabb46a6a958ca4ef0fed64f
2016-11-11 12:43:08 -08:00
Craig Donner
0b00adf391 Add layered image support to gralloc1 hal.
Bug: 31686534
Test: manual
Change-Id: I6442413072cef2a19abd3aacddf964ca1f4e7481
2016-11-11 11:35:06 -08:00
TreeHugger Robot
1c3718b0cd Merge changes from topic 'health-hal'
* changes:
  health: add default health HAL service implementation
  health: add health HAL and it's default implementation.
2016-11-11 18:57:42 +00:00
Sandeep Patil
3e1d94cfe7 health: add default health HAL service implementation
Test: Tested with stub HAL on angler
Bug: b/32754732

Change-Id: I54a5ac536e1f34cf2498972653aef702cd926b2a
Signed-off-by: Sandeep Patil <sspatil@google.com>
2016-11-11 09:28:27 -08:00
Sandeep Patil
c7a5ff736a health: add health HAL and it's default implementation.
The default Health HAL implementation continues to depend on
libhealthd.<target> BOARD_HAL_STATIC_LIBRARY in order to make
sure healthd continues to work.

New device specific Health HAL implentations don't need to
compile with healthd STATIC_HAL.

Test: Tested healthd with and without the static hal implementation
on Angler.

BUG: b/32724915

Change-Id: I25d439f24a4178666614faf196423ffc8ccafafb
Signed-off-by: Sandeep Patil <sspatil@google.com>
2016-11-11 09:28:23 -08:00
Ryan Campbell
eb8a796edd VTS driver files for memtrack HAL.
Test: manual
Change-Id: If2e7c5a60248b345b499c7d32ae68b23be7f0923
2016-11-11 08:09:20 -08:00
Ryan Campbell
3b3b9251fa Merge "VTS driver files for boot control HAL." 2016-11-11 16:03:15 +00:00
Roshan Pius
b76dbbef4f supplicant(interface): Add support for Hotspot 2.0
HIDL interface to
a) Initiate ANQP queries & icon queries for hotspot 2.0
b) Add callbacks for the reception of WNM frames (hotspot
remediation, deauth imminent notice).

Bug: 31116047
Test: ./hardware/interfaces/update-makefiles.sh
Change-Id: Ib3353f04b493f50c6415d1f3475efa957d921540
2016-11-10 15:16:28 -08:00
Keun Soo Yim
7a5faa2555 Merge "VTS driver files for Power HAL." 2016-11-10 22:10:40 +00:00
Connor O'Brien
200182f457 Merge "Run boot HAL service as root" am: 72882f05ec am: 22cb80d62f am: 4b07604643
am: fa7c7a6ef0

Change-Id: Ifac828ed213bf70d187052bbbc43e53189fd23e1
2016-11-10 20:59:55 +00:00
Connor O'Brien
fa7c7a6ef0 Merge "Run boot HAL service as root" am: 72882f05ec am: 22cb80d62f
am: 4b07604643

Change-Id: Ia77142a69651aff283847271a455c561096285ca
2016-11-10 20:53:55 +00:00
Connor O'Brien
4b07604643 Merge "Run boot HAL service as root" am: 72882f05ec
am: 22cb80d62f

Change-Id: Ia1d82f89d3374fbc2b92aedda78b930123a00351
2016-11-10 20:47:26 +00:00
Connor O'Brien
22cb80d62f Merge "Run boot HAL service as root"
am: 72882f05ec

Change-Id: I524ad08c38268fb37d51a1006b72c263bf9b2cd5
2016-11-10 20:40:54 +00:00