Commit graph

499 commits

Author SHA1 Message Date
Steven Moreland
8b6a886d60 Remove HIDL_GENERATED from things written by hand.
am: 33e87b8a76

Change-Id: Ib5c70daafd8d5bfa8454a4a0e05c858a3e9a393a
2016-11-23 01:39:14 +00:00
Steven Moreland
33e87b8a76 Remove HIDL_GENERATED from things written by hand.
find . -name "*.h" -exec sed -i 's/HIDL_GENERATED_\(.*\)_H_/\U\1_H/g' {}
+

They now match what would be generated by -Lc++-impl. This prevents
confusion over whether or not the files are autogenerated.

Test: pass
Change-Id: I2c9d7887f6d6bdaa19a5c4bfcf02ee3d1dbc81d1
2016-11-22 15:34:39 -08:00
Martijn Coenen
14c4d0da66 Use newly introduced hidl_handle.
am: 403161ab73

Change-Id: Ic5344ae123ef0c9b233eb31e6b9cd33be2d809fc
2016-11-22 14:58:35 +00:00
Martijn Coenen
403161ab73 Use newly introduced hidl_handle.
Bug: 32089785
Test: builds
Change-Id: I27c7d3945e1fe390661bf322987011a00fe9b3fe
2016-11-22 12:17:58 +01:00
Roshan Pius
df6cb83d97 Merge changes I7c418811,I0870eae0
am: 88fb149b8e

Change-Id: Ic1b7ccb20296344bb551fc600d3d6e25fe1fe6a6
2016-11-22 01:39:03 +00:00
Roshan Pius
db91ca1794 wifi: Add link layer stats API wrappers in WifiLegacyHal
am: 7cece41299

Change-Id: Id8edce8333faa2860a7deef272858b93c6c8bef6
2016-11-22 01:39:00 +00:00
Roshan Pius
197524b157 wifi: Add gscan API wrappers in WifiLegacyHal
am: 76ff302d57

Change-Id: Ieda0e0ab4b058f342788cf39182c7a2eafafeeba
2016-11-22 01:38:57 +00:00
Treehugger Robot
88fb149b8e Merge changes I7c418811,I0870eae0
* changes:
  wifi: Add link layer stats API wrappers in WifiLegacyHal
  wifi: Add gscan API wrappers in WifiLegacyHal
2016-11-22 01:06:51 +00:00
Ruchi Kandoi
3007940bda Merge "NFC: Add Annotations to the HAL file"
am: 3bca1eef75

Change-Id: I528f0494291c89116a976a8da0c28dd3dc87e6cb
2016-11-21 23:03:59 +00:00
Ruchi Kandoi
3bca1eef75 Merge "NFC: Add Annotations to the HAL file" 2016-11-21 22:53:01 +00:00
Roshan Pius
7cece41299 wifi: Add link layer stats API wrappers in WifiLegacyHal
Adds wrappers over the legacy HAL API for the following:
1. enable/disable link layer stats collection.
2. fetch link layer stats.

Note: Link layer stats structure is quite ugly. The wrapper stucture
declared here (LinkLayerStats) tries to separate out the pointer
elements and ignore the unnecessary variable size elements from them.

Bug: 31991459
Test: Compiles
Change-Id: I7c4188115786542866c7be56cf9f116b3f78e6a3
2016-11-21 10:57:45 -08:00
Roshan Pius
76ff302d57 wifi: Add gscan API wrappers in WifiLegacyHal
The legacy gscan API's were designed to be used in the following
sequence:
a) Start the scan using |wifi_start_gscan|.
b) Scan Events are indicated to the caller via the provided
|on_scan_event| callback.
c) When one of the result events are received, the caller is expected
to retrieve the cached results via |wifi_get_cached_gscan_results|.
There are some extra knobs here to determine if the results need to be
flushed after fetch or not.
d) Any scan failures are also notified via the provided
|on_scan_event| callback.
e) Full scan results are delivered one by one via the provided
|on_full_scan_result| callback.

In our use case step (b) above is always followed by step (c), so these
2 steps have been merged together in the HIDL interface:
a) Start the scan using |IWifiStaIface.startBackgroundScan|.
b) Scan results are now directly delivered via
|IWifiStaIfaceEventCallback.onBackgroundScanResults| callback.
c) Any scan failures will be delivered via
|IWifiStaIfaceEventCallback.onBackgroundScanFailure| callback.
d) Full scan results are delivered one by one via
|IWifiStaIfaceEventCallback.onBackgroundFullScanResult| callback.

Bug: 31991459
Test: Compiles
Change-Id: I0870eae095a667eec1d8de75fe1cc04a1b5a0bd3
2016-11-21 10:57:45 -08:00
Yifan Hong
5ec7f082b2 Split libhidl into base and transport.
am: 63544eacb6

Change-Id: I97974e9bbe99c93591c0a4e85ff75a43c7e63983
2016-11-18 23:14:31 +00:00
Yifan Hong
63544eacb6 Split libhidl into base and transport.
Bug: 32756130

Test: mma
Change-Id: Id21cf23abe2910f26bb7895511862443b93dc112
2016-11-18 09:52:57 -08:00
Martijn Coenen
fbedd83ffe Merge "Cast hidl_pointer<T> to void*."
am: 6033952ff1

Change-Id: Ic0bdb5eab4f0a38c3b93042aad4ec14856f05de5
2016-11-18 08:08:20 +00:00
Martijn Coenen
6033952ff1 Merge "Cast hidl_pointer<T> to void*." 2016-11-18 08:03:39 +00:00
Sanket Padawe
63567654fb Merge "Add a missing RIL request in iRadio.hal"
am: d5e70d7f63

Change-Id: I57f2b156ab7131bff083acc49ee628942ac2f53e
2016-11-18 01:42:19 +00:00
Sanket Padawe
d5e70d7f63 Merge "Add a missing RIL request in iRadio.hal" 2016-11-18 01:33:10 +00:00
Roshan Pius
ed39ab0b55 wifi: Add APF/feature-set wrappers in WifiLegacyHal
am: 0a47c187b9

Change-Id: Idaa8f4932d44cde5ba4a69919e3833027782281c
2016-11-18 01:18:19 +00:00
Roshan Pius
b883f2f23b wifi: Move legacy hal types to a new namespace (2/2)
am: 6cedc97e95

Change-Id: I7c999625fb5a39d2568f39189905a67f9366d078
2016-11-18 01:18:18 +00:00
Roshan Pius
795999b489 wifi: Move legacy hal types to a new namespace (1/2)
am: 955542e9a2

Change-Id: I83e0e783077d2e3dd8103d494192c2652665977c
2016-11-18 01:18:17 +00:00
Sanket Padawe
f6e345ac01 Add a missing RIL request in iRadio.hal
Test: no test

Bug: 32020264
Change-Id: I5b1584e5451c4c04e0a2902791140c4e7bd95549
2016-11-17 15:28:31 -08:00
Roshan Pius
0a47c187b9 wifi: Add APF/feature-set wrappers in WifiLegacyHal
Add wrappers for retrieving the feature set supported by the device &
APF functionality.

Bug: 31991459
Test: Compiles
Change-Id: I34b8896a21e34f688374750faefd589eca2a4de1
2016-11-17 08:09:10 -08:00
Martijn Coenen
65c86c08a1 Cast hidl_pointer<T> to void*.
hidl_pointer<T> can only allow one implicit conversion
operator, and native_handle_t* is the one that makes
most sense. Hence, this requires an explicit cast.

Bug: 32089785
Test: builds
Change-Id: Ie952ee2e4f0c20fa33f793403d51f3d550257310
2016-11-17 15:29:36 +01:00
Roshan Pius
d09ad0c3d6 wifi: Changes to WifiLegacy Hal
am: 511cc493e3

Change-Id: I2b78178e06ba7dbc0929ac8e0dc2c2a40443dfe6
2016-11-17 02:43:37 +00:00
Roshan Pius
23baa7c2a8 wifi: Remove passthrough mode
am: 23f9f30344

Change-Id: I54fe1971eb19c9e8e756f001424d28fe72189f0c
2016-11-17 00:57:06 +00:00
Roshan Pius
9fe32608f5 wifi: Stub implementation of WifiNanIface methods
am: 0c92d446a2

Change-Id: I8be74c7b452e1a2fc36e86a55e1d8e749b3cdb70
2016-11-17 00:57:05 +00:00
Roshan Pius
ee5137a3d1 wifi: Stub implementation of WifiRttController methods
am: 7913f5e49d

Change-Id: I45a075986e47dd3ed6feb5735c1fc8e396bf3ad0
2016-11-17 00:57:03 +00:00
Roshan Pius
e65ad43046 wifi: Stub implementation of WifiStaIface methods
am: a04ba3fcb8

Change-Id: Ie61978114eb86f11e3e8f56e15a6d4293bbf4c88
2016-11-17 00:57:02 +00:00
Roshan Pius
3e8793aadf wifi: Stub implementation of WifiChip methods
am: 7d08d7a16d

Change-Id: If81d1003542b4131448c11df5a3e7c00a6c00fab
2016-11-17 00:57:01 +00:00
Roshan Pius
dd5c2b8990 wifi: Use hidl_return_util functions in Iface/Rtt
am: 907d4a234d

Change-Id: I224f3edf8aefe3e47e1604b457e5aa57b9c7a301
2016-11-17 00:57:00 +00:00
Roshan Pius
7022158220 wifi: Use hidl_return_util functions in WifiChip
am: 3c86852a2e

Change-Id: I69b20794be77270122718960ce8771ce1f451d40
2016-11-17 00:56:59 +00:00
Roshan Pius
1ab8395a21 wifi: Helper functions for invoking hidl cont callbacks
am: 5647665827

Change-Id: Id86ad2d1bf0a711622a5c1300437b027d08790d3
2016-11-17 00:56:58 +00:00
Roshan Pius
815e61624f wifi: Make methods deliver status synchronously (3/3)
am: 734fea0d98

Change-Id: I749781becee892317f741ca561ee825546870163
2016-11-17 00:56:57 +00:00
Roshan Pius
dbfb6017fb wifi: Make methods deliver status synchronously (2/3)
am: 5c05546fc9

Change-Id: Icd12fff4544ffadd62cd8a040a37a6542b829695
2016-11-17 00:56:56 +00:00
Roshan Pius
40dac08a47 wifi: Make methods deliver status synchronously (1/3)
am: 503582ed94

Change-Id: I868296a715c673937a1ce17100b392ef02b3d196
2016-11-17 00:56:55 +00:00
Roshan Pius
5aaf00608a wifi: Rename failure_reason_util to wifi_status_util
am: 1922482a5c

Change-Id: I32955402c44c8d4f6a961241d412efaeba508374
2016-11-17 00:56:53 +00:00
Roshan Pius
bedd03bc48 wifi(interface): Add status for all methods
am: 02caa1b821

Change-Id: I96bd199b2d739d5371b9f0cd761440df7cdc6eb3
2016-11-17 00:56:52 +00:00
Roshan Pius
3dd396eb5e wifi(interface): Add wifi host debug wake up reason stats
am: e0724f98b0

Change-Id: Ife791e5b1ca8046713a202e49b0a426b2c9abcae
2016-11-17 00:56:49 +00:00
Roshan Pius
17fe2cc0e4 wifi(interface): Add wifi debug packet fate related interface
am: fe9ad36cb2

Change-Id: I63b0ff50906590a4af3b1854c89cd47ea12506cb
2016-11-17 00:56:48 +00:00
Roshan Pius
ae8029852e wifi(interface): Add wifi debug ring buffer related interface
am: e3a02b07b6

Change-Id: I1cac68e450cc87b8674ca00120964bf9dfcc0a9f
2016-11-17 00:56:47 +00:00
Roshan Pius
c4b36d8100 wifi(interface): Move all StaIface types to types.hal
am: 5e25466ebf

Change-Id: I2815c82897e31ea35fd6d0ae3e2e3feb20e750b6
2016-11-17 00:56:46 +00:00
Roshan Pius
55aee95115 wifi(interface): Fix compilation failure
am: e03f736ca0

Change-Id: I687c4da68d93a7657991eb92cecb3f4e4c4d4986
2016-11-17 00:56:45 +00:00
Roshan Pius
4c0a4e5ae4 wifi(interface): Rtt controller HIDL interface
am: 18eec81adc

Change-Id: Idb2a967fe289216ad5e37a4f04ac15be7a97c215
2016-11-17 00:56:44 +00:00
Roshan Pius
ea3058f9c1 wifi(interface): NAN HIDL interface
am: 120f94c594

Change-Id: I22788dd6cd85b18c06c7bca7de53e5c1fabf5d1f
2016-11-17 00:56:43 +00:00
Roshan Pius
d195f76d21 wifi(interface): Link layer stats collection
am: 18680b7aff

Change-Id: Id21f5179208d3b5671541747894fdd875d43d8f0
2016-11-17 00:56:42 +00:00
Roshan Pius
0f0a37f375 wifi(interface): Make methods synchronous
am: a52dc7322d

Change-Id: Iee14349de899301b1b8b7ee8b1b0e24d61f5ac2c
2016-11-17 00:56:41 +00:00
Roshan Pius
556482ab99 wifi(interface): Add status for every method
am: 1f9073cfcb

Change-Id: Ic839dad94f04d974f49f67ffd125ac302a9b4fea
2016-11-17 00:56:40 +00:00
Roshan Pius
1f212a6566 wifi(interface): Add gscan/apf related API's
am: 7b77747bb5

Change-Id: Ib5efe1acd06649e65c88a3721e455725b2206778
2016-11-17 00:56:38 +00:00
Roshan Pius
6cedc97e95 wifi: Move legacy hal types to a new namespace (2/2)
Changes in HIDL interface obejcts to use the new namespace for legacy
HAL.

Bug: 32242225
Test: Compiles
Change-Id: I7d0e9cee8656bd779a24d9eaede415317dceaf9b
2016-11-16 14:57:08 -08:00