Commit graph

644 commits

Author SHA1 Message Date
Roshan Pius
9a9869a759 wifi: Add keep alive packet sending functionality
Bug: 34233272
Test: Compiles
Change-Id: Ia9b1d24cccf3ec6a09bbb6b6e9d1f4bc13623767
2017-01-11 17:04:31 -08:00
Roshan Pius
af727c0cc8 wifi: Add nd offload functionality
Bug: 34224734
Test: Compiles
Change-Id: I86980cd27ea97216c9431878bb9a922c8942b361
2017-01-11 16:43:38 -08:00
Treehugger Robot
818ffb15a6 Merge "liblog: use log/log.h when utilizing ALOG macros" 2017-01-11 15:22:55 +00:00
Amit Mahajan
2ab1a10678 Use backward compatible enum values.
Test: none
Bug: 32020264
Change-Id: I4a9da7650c959de590ceea84f24a0918f32edbdb
2017-01-10 17:17:07 -08:00
Yifan Hong
891f6a946a Merge "Ran update-makefiles.sh." 2017-01-10 23:55:04 +00:00
Etan Cohen
f825133092 Merge "[AWARE] Update HIDL interface and link to legacy HAL" 2017-01-10 23:24:54 +00:00
Mark Salyzyn
a4842ace39 liblog: use log/log.h when utilizing ALOG macros
Test: compile
Bug: 30465923
Change-Id: I67046a75be057e7905570748a1ed6bfd03c0e1c8
2017-01-10 15:02:14 -08:00
Etan Cohen
f01bcaa9a3 [AWARE] Update HIDL interface and link to legacy HAL
HAL: Refine first cut implementation of HIDL interfaces and bring
up-to-date with changes to HAL.

Server: connect to legacy HAL, convert all structures.

Bug: 32207606
Test: builds
Change-Id: Ice1ba44014aa98cc948c0d0202b4fd18bf875502
2017-01-10 11:53:34 -08:00
Yifan Hong
fead19a979 Ran update-makefiles.sh.
Add vtsc section.

Test: mma
Change-Id: I37c2c4acd1c3b193f1f978dae09a5389d61b9380
2017-01-10 11:18:00 -08:00
Yifan Hong
04e53a1ca2 Add test for putting different types in a struct / union.
Test: hidl_test
Change-Id: Icf1f40b1c92f76a45a3792e8c5d359031ad719bc
2017-01-06 11:06:14 -08:00
Yifan Hong
0270fefc48 Merge "move foocallback to hidl_test" 2017-01-05 19:24:25 +00:00
Treehugger Robot
d5eccf520d Merge "Change list of applications in CardStatus from array to vec." 2017-01-05 17:50:55 +00:00
Martijn Coenen
e8b0161713 Callback elision for HIDL interfaces.
Test: mma, hidl_test
Bug: 31380743
Change-Id: Ic5390d49a9493d1180bdd8a15bc47e891637890e
2017-01-05 08:48:23 +01:00
Treehugger Robot
3131b6fc74 Merge "Return<*> getStatus().isOk() -> isOk()" 2017-01-05 07:12:02 +00:00
Steven Moreland
c67a682e3a Return<*> getStatus().isOk() -> isOk()
Bug: 31348667
Test: compiles
Merged-In: If8d5a23f80dbc04127635b49f1ef77398fc9f8a1

Change-Id: If8d5a23f80dbc04127635b49f1ef77398fc9f8a1
2017-01-04 20:20:23 -08:00
Treehugger Robot
9bfe0894b9 Merge "Add a method to trigger multiple FMQ blocking reads." 2017-01-05 02:37:14 +00:00
Amit Mahajan
347f07b5de Change list of applications in CardStatus from array to vec.
Test: none
Bug: 32020264
Change-Id: I39420333cd07126904f170487de4d45d630e3c26
2017-01-04 16:52:34 -08:00
Hridya Valsaraju
9ba9244e5f Add a method to trigger multiple FMQ blocking reads.
Test: FMQ unit tests
Bug: 33815422
Change-Id: Idcd1fd79232a1b0caa5784e8dd4f3a929f52fded
2017-01-04 16:19:36 -08:00
Yifan Hong
b500bc6189 move foocallback to hidl_test
Fix: 32778024

Test: hidl_test

Change-Id: Icec3bd23c30dea635c315ec3b98f3a72447e840a
2017-01-04 13:39:13 -08:00
Treehugger Robot
044e84cc8a Merge "Minor changes to telephony error codes in types.hal" 2017-01-03 22:39:21 +00:00
Enrico Granata
11dc298105 Merge "Make update-makefiles.sh exit if any of the hidl invocations fail" 2017-01-03 18:54:05 +00:00
Hridya Valsaraju
61666e16bb Merge "Templatize MQDescriptor" 2017-01-03 18:17:09 +00:00
Sanket Padawe
c13c371b45 Minor changes to telephony error codes in types.hal
Test: Basic build test.
Change-Id: I26227551794729d6643ec63d4a39bc0090240a52
2017-01-02 23:45:22 -08:00
Martijn Coenen
4faa7f5b27 Fix wifi/bluetooth threadpool usage.
Bug: 31226656
Test: mma, hidl_test
Change-Id: I3f30f32392714ed653498828172165e511f847e7
2016-12-30 11:24:18 +01:00
Hridya Valsaraju
f70884cf4b Templatize MQDescriptor
Bug: 33948735
Test: FMQ unit tests and benchmarks

Merged-In: I5c3beff2c6a69e151e0cb11af299956638cc441b
Change-Id: I5c3beff2c6a69e151e0cb11af299956638cc441b
2016-12-29 22:33:40 -08:00
Myles Watson
6a7d622264 bluetooth: Find the device's Bluetooth address
Test: bluetooth_hidl_hal_test
Change-Id: I5353aaef3f8c5db75e424a8e1b242b08d5a96c6e
2016-12-30 01:35:04 +00:00
Amit Mahajan
d7c7e641ef Minor fixes in IRadioIndication.hal
Test: none
Bug: 32020264
Change-Id: Ib8540a444c4b98ff033a8e2c519dd25e9b853c57
2016-12-29 15:32:09 -08:00
Treehugger Robot
4ba8b469d7 Merge "Clean up some fields and APIs in telephony HIDL interface." 2016-12-29 22:28:46 +00:00
Andre Eisenbach
89ba5284e3 Add default Bluetooth HAL implementation
Also added initial target-side functional test.

Test: bluetooth_hidl_hal_test
Bug: 31972505
Change-Id: I1f574a5b2b53d7fbf65dbb4e1aaa5f8b6c5a9448
2016-12-29 19:17:28 +00:00
Sanket Padawe
865834e4d4 Clean up some fields and APIs in telephony HIDL interface.
Bug: 32020264
Test: Basic build test.
Change-Id: I1493d5b26ef678be14e71db7d6f93a9bfad52980
2016-12-28 16:04:10 -08:00
Martijn Coenen
73f99f6e1f Add test method to IBaz.
For testing death recipients.

Test: mma, hidl_test_java
Bug: 31632518
Change-Id: Ib359c790f68132484fbcd1a5522f45b99d1131f8
2016-12-28 17:44:15 +00:00
Amit Mahajan
fff290faa0 Minor updates to ISap hal.
Test: none
Bug: 32020264
Change-Id: I1cfb21cb4e30e71de6418aaaa9e13d8b2746d7b7
2016-12-27 10:44:59 -08:00
Enrico Granata
51f94235b9 Make update-makefiles.sh exit if any of the hidl invocations fail
This makes it easier for the user to discover that one (or more) of
their source files contain errors

Test: ran the script
Change-Id: Ibdb1f363d934605f47ca7df0d56bb387a47f7482
2016-12-22 21:59:26 +00:00
Treehugger Robot
ac7f1d21e8 Merge "Add a method to test EventFlag configuration and usage" 2016-12-22 21:55:07 +00:00
Hridya Valsaraju
710e4a3f0d Add a method to test EventFlag configuration and usage
Bug: 31223612 33295104

Test: FMQ unit tests.

Change-Id: Idbddd38730edd0ec14c37d3cb5e67f78705c3d4a
2016-12-21 14:16:10 -08:00
Yifan Hong
eb0db2c920 Merge "Add test for Java GC for binder objects." 2016-12-21 18:17:19 +00:00
Connor O'Brien
9b37defc5d Merge "Remove length arg from transmit() in IR HAL" 2016-12-20 18:28:47 +00:00
Yifan Hong
d9389bb3d5 Add test for Java GC for binder objects.
Test: hidl_test_java

Bug: 33042939
Change-Id: I87d9de63834c617a568f7d1795c901fdd4c6f8e0
2016-12-19 18:17:33 -08:00
Treehugger Robot
0849baccc4 Merge "wifi(vts): Add framework for gtests" 2016-12-20 01:07:32 +00:00
Connor O'Brien
7a4e7eb250 Remove length arg from transmit() in IR HAL
The length argument is not necessary since the pattern is
passed to transmit() as a hidl_vec, so remove it.

Test: Built and called new transmit() function.
Merged-in: I4bee4557c2cca6562a43df5e22a7d6b846f20bb4
Change-Id: I4bee4557c2cca6562a43df5e22a7d6b846f20bb4
Signed-off-by: Connor O'Brien <connoro@google.com>
2016-12-19 16:30:02 -08:00
Yifan Hong
f5f75be7b6 Merge "Test for echoed interfaces." 2016-12-19 22:32:57 +00:00
Roshan Pius
1ae4cbbb82 wifi(vts): Add framework for gtests
These tests don't do much currently other than assert that we can
configure the chip in the required modes and create all the iface
objects.
The |wifi_hidl_test_utils| contains all helper functions that will be
shared across the different test fixtures.

Bug: 33459306
Test: adb root && adb remount && adb push
out/target/product/angler/data/nativetest/wifi_hidl_test/wifi_hidl_test
/data/ && adb shell /data/wifi_hidl_test

Change-Id: Iaea8e264ab1ef9113f375d7f56acab851aff21aa
2016-12-16 18:06:39 -08:00
Roshan Pius
e663f83a91 supplicant(interface): Remove unused params
Theese params in flushService & configureExtListen are unused.

Bug: 33705000
Test: Compiles
Change-Id: I38ff75af32951274100d1d60a5fdfa6aa101cb50
2016-12-16 16:03:09 -08:00
Yifan Hong
87cc71c9fa Test for echoed interfaces.
Test: hidl_test

Bug: 33173166

Change-Id: I0b8b8553b7d3f7b1800d0970a9fc17d01084dfcf
2016-12-16 15:49:39 -08:00
Roshan Pius
a2d369dd03 wifi: Add remaining capability flags from legacy HAL
While there,
1. Remove the _SUPPORTED flag from all the capabailities to make it
consistent.
2. Correct the docstring for |create*Iface|.

Bug: 33673826
Test: Compiles
Change-Id: I26f6de3d681dec133b51ba5dd7f21a29c92ea238
2016-12-16 14:08:30 -08:00
Roshan Pius
48185b2a2d wifi: Debug ring buffer data collection
Implementation of the debug ring buffer data collection mechanism.
Changed the interface to pass the raw bytes sent by the driver. This
will be captured as is into the bugreport.

Note: Please see the associated bug on why this data is not being parsed.

Also,
Fixed a bug in the legacy HAL API for retrieving ring buffer status.

Bug: 33638159
Test: Compiles
Change-Id: I9d8f400142b1be4fbf8c85679e8a52d6af17b09e
2016-12-16 14:08:00 -08:00
Roshan Pius
2c06a3f8c8 wifi: Add chip level callbacks
The following new notifications are added:
1. onChipReconfigureFailre - Invoked if there is an error during
configuration.
2. onIfaceAdded - Invoked on addition of an iface.
3. onIfaceRemoved - Invoked on removal of an iface.

Bug: 33679304
Bug: 33038823
Test: Gtests
Change-Id: Id3fa19420d1e1e8d209ec88a1fbd36a64afb5252
2016-12-16 13:06:39 -08:00
Roshan Pius
adc87cbab9 WifiLegacyHal: Add missing ring buffer callback dereg
Still figuring out how to send this data over the HIDL callback. Adding
this missing wrapper in legacy hal for now.

Bug:33638159
Test: Compiles
Change-Id: Ifce06a796d54e10c582b9896425899a45162a45f
2016-12-16 13:06:39 -08:00
Roshan Pius
203cb031df wifi: Add support for alert handler
This is a debug mechanism provided for vendors to inform the framework
about the occurence of any fatal events.

Bug: 33620898
Test: Compiles
Change-Id: Ib6ac322131796792f66f87237a62eb8f5a013433
2016-12-16 13:06:34 -08:00
Roshan Pius
26801cb4ce wifi: Port over O features to HIDL
Porting over the 3 new features added to legacy HAL for O to HIDL
interface:
1. Firmware roaming control.
2. Scan randomizations support.
3. Probe IE whitelisting for privacy enhancements.

Bug:32638647
Test: Compiles
Change-Id: Ia4666e3824186bbcfb8599b337eee7c81f256503
2016-12-15 21:49:30 -08:00