OSDN Git Service
Roshan Pius [Thu, 8 Dec 2016 19:08:14 +0000 (11:08 -0800)]
supplicant(interface): Minor fixes in P2P iface
Fixing couple of issues found in the interface during implementation.
1. WpsProvisionMethod::KEYPAD is not used in wpa_supplicant core. It is
only used inside Android framework. So, remove them.
2. Added |setDisallowedFrequencies| method.
3. Changed the pin type to string from vector of bytes because that is
used by Android framework and wpa_supplicant.
Bug:
31497295
Test: Compiles
Change-Id: I69db530e23c2d3af907c3a5c824cf8291cf12c35
Roshan Pius [Tue, 6 Dec 2016 18:12:59 +0000 (10:12 -0800)]
wifi: Reset internal callback pointers on failure
If these are not reset, any subsequent calls will not be processed
because the callback pointers are set.
Bug:
33379596
Test: Compiles
Change-Id: Ia44385fc185b7cf262366af7b0e0e62c32a0d9a0
Roshan Pius [Tue, 6 Dec 2016 18:04:05 +0000 (10:04 -0800)]
wifi: Add support for RSSI monitoring
Bug:
31991459
Test: Compiles
Change-Id: I8794cea12a0d1c727bd0e37123152c8da11eeabf
Roshan Pius [Tue, 6 Dec 2016 00:18:43 +0000 (16:18 -0800)]
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
Roshan Pius [Mon, 5 Dec 2016 23:25:51 +0000 (15:25 -0800)]
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
Roshan Pius [Mon, 5 Dec 2016 23:24:20 +0000 (15:24 -0800)]
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
Roshan Pius [Mon, 5 Dec 2016 23:37:00 +0000 (15:37 -0800)]
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
Roshan Pius [Sun, 4 Dec 2016 18:49:38 +0000 (10:49 -0800)]
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
Roshan Pius [Fri, 2 Dec 2016 23:01:06 +0000 (15:01 -0800)]
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
Roshan Pius [Fri, 2 Dec 2016 22:49:41 +0000 (14:49 -0800)]
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
Roshan Pius [Fri, 2 Dec 2016 19:21:19 +0000 (11:21 -0800)]
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
Roshan Pius [Thu, 1 Dec 2016 21:54:24 +0000 (13:54 -0800)]
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
Treehugger Robot [Thu, 8 Dec 2016 23:36:24 +0000 (23:36 +0000)]
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
Elliott Hughes [Thu, 8 Dec 2016 17:21:53 +0000 (17:21 +0000)]
Merge "Remove unused hardware/interfaces tests dependency on libtestUtil."
Roshan Pius [Fri, 18 Nov 2016 19:38:07 +0000 (11:38 -0800)]
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
Roshan Pius [Fri, 18 Nov 2016 22:07:54 +0000 (14:07 -0800)]
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
Roshan Pius [Thu, 17 Nov 2016 22:55:58 +0000 (14:55 -0800)]
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
Sanket Padawe [Wed, 7 Dec 2016 22:40:03 +0000 (14:40 -0800)]
Add missing function to telephony HIDL interface.
+ fix some comments as per specs.
Test: No test
Bug:
32020264
Change-Id: If8e83a7465e608e28f7e149025da5ede30924602
Elliott Hughes [Wed, 7 Dec 2016 21:11:45 +0000 (13:11 -0800)]
Remove unused hardware/interfaces tests dependency on libtestUtil.
Bug: N/A
Test: builds
Change-Id: Ic0beba4a8ac19c4883bf49e330b23e4e6f64985a
Yifan Hong [Tue, 6 Dec 2016 01:54:55 +0000 (01:54 +0000)]
Add test for bitset/mask type.
am:
e7ce822b96
Change-Id: I178f54900b0a80bc44ca146380ab68ae7cf9f0cf
Yifan Hong [Mon, 5 Dec 2016 20:34:42 +0000 (12:34 -0800)]
Add test for bitset/mask type.
Test: hidl_test
Change-Id: I8bcd304184ff6b7794a9d0b5d3999f071604471d
Yifan Hong [Sat, 3 Dec 2016 23:10:19 +0000 (23:10 +0000)]
Update to use the correct logging library.
am:
961e625526
Change-Id: Ide52fc12de77ccef050e915461ebca9cba68f34e
Yifan Hong [Sat, 3 Dec 2016 23:10:16 +0000 (23:10 +0000)]
Fix tests for using IBase instead of IBinder.
am:
1d747311b3
Change-Id: I764464e76a00dca05bf3cd058deb38bfe4f686d1
Yifan Hong [Sat, 3 Dec 2016 23:10:14 +0000 (23:10 +0000)]
Use IBase instead of IBinder for interface keyword.
am:
ebcc3328e8
Change-Id: I3edcf00ad5963e3b12605269dedebac4159464f6
Yifan Hong [Sat, 3 Dec 2016 23:10:12 +0000 (23:10 +0000)]
Update makefiles for hidlizing IBase.
am:
e19e582bd5
Change-Id: Ibd6371d8c1e4ad1396321b91cc2e9c93226a2b2d
Yifan Hong [Fri, 2 Dec 2016 19:37:59 +0000 (11:37 -0800)]
Update to use the correct logging library.
Test: compiles
Change-Id: I00467b964fd56e6379cddde26152e413f2f00379
Yifan Hong [Mon, 28 Nov 2016 22:50:15 +0000 (14:50 -0800)]
Fix tests for using IBase instead of IBinder.
Echoed interfaces cannot be casted properly, because
interfaceChain cannot be called. So the given vector
of interfaces is re-wrapped. This is temporary; when
b/
33173166 is fixed, this change should be reverted.
Test: hidl_test
Generates: b/
33173166
Change-Id: I12166f69cf04abf7485dc2455ad731b87c80b3d1
Yifan Hong [Tue, 29 Nov 2016 00:09:46 +0000 (16:09 -0800)]
Use IBase instead of IBinder for interface keyword.
Test: hidl_test
Change-Id: Id51d1957f311d1025dac57d40d4dd5c24d328a6c
Yifan Hong [Tue, 29 Nov 2016 00:09:37 +0000 (16:09 -0800)]
Update makefiles for hidlizing IBase.
A new dependency android.hidl.base@1.0 is added for
all projects.
Also updated Android.mk for NFC hal (for java constants)
Test: mma
Change-Id: Ia70d0eb0d74de06475a339698386d383d491a43a
Martijn Coenen [Fri, 2 Dec 2016 20:42:30 +0000 (20:42 +0000)]
Merge "Test interface for hidlized IMemory."
am:
2ed821d5fe
Change-Id: I827340d4d1112f5c0050d16862774e7705d4eed7
Roshan Pius [Fri, 2 Dec 2016 20:42:19 +0000 (20:42 +0000)]
Merge "wifi: Don't include legacy hal header in wifi_status_util"
am:
786c00d72e
Change-Id: I8ebc7e3b05f95f54a048f56db3cf6c5b5791bab9
Treehugger Robot [Fri, 2 Dec 2016 20:33:12 +0000 (20:33 +0000)]
Merge "Test interface for hidlized IMemory."
Roshan Pius [Fri, 2 Dec 2016 20:29:01 +0000 (20:29 +0000)]
Merge "wifi: Don't include legacy hal header in wifi_status_util"
Roshan Pius [Fri, 2 Dec 2016 18:44:41 +0000 (18:44 +0000)]
Merge "wifi: Add utility for struct conversions"
am:
3ff50102ed
Change-Id: I926b46bdeb5616c1ffd56dcac5b8a3ed8ccac60e
Treehugger Robot [Fri, 2 Dec 2016 18:21:44 +0000 (18:21 +0000)]
Merge "wifi: Add utility for struct conversions"
Martijn Coenen [Thu, 1 Dec 2016 14:47:29 +0000 (15:47 +0100)]
Test interface for hidlized IMemory.
Test: hidl_test
Change-Id: I9d6260092bf58406905e543065319bc1f4db119f
Roshan Pius [Thu, 1 Dec 2016 21:47:41 +0000 (13:47 -0800)]
wifi: Don't include legacy hal header in wifi_status_util
This was missed from the cleanup when we moved the libhardware_legacy
header inside the legacy_hal:: namespace.
Bug:
33274910
Test: Compiles
Change-Id: I233f5478733427c739d30bf41f20f120a4c4199a
Roshan Pius [Tue, 22 Nov 2016 21:02:01 +0000 (13:02 -0800)]
wifi: Add utility for struct conversions
Add a new utility file (hidl_struct_util) which would contain helper
functions to convert legacy HAL structures to HIDL structures and vice
versa.
Added utility functions to convert:
1. Background scan params from HIDL to legacy.
2. Scan Result from legacy to HIDL.
3. Cached Scan results from legacy to HIDL.
4. Link layer stats from legacy to HIDL.
Bug:
31991459
Test: Compiles
Change-Id: I48a49b43d425f8cc3059241c4bd652b2346f2381
Yifan Hong [Fri, 2 Dec 2016 07:51:31 +0000 (07:51 +0000)]
Merge "Update to use the correct logging library."
am:
48f6298fa3
Change-Id: I983476d9d35eb6d795cb804142532b25f3a8d9dd
Treehugger Robot [Fri, 2 Dec 2016 07:40:56 +0000 (07:40 +0000)]
Merge "Update to use the correct logging library."
Yifan Hong [Thu, 1 Dec 2016 23:58:37 +0000 (15:58 -0800)]
Update to use the correct logging library.
Test: compiles
Change-Id: Ia5030c4d7ef95c5878c6b320d5bc30041023728f
Steven Moreland [Thu, 1 Dec 2016 21:08:39 +0000 (21:08 +0000)]
Merge "Revert "Use get instead of implicit cast on Return<*>.""
am:
5329acb61f
Change-Id: I86a2469e37c515129e8b679e241800f44ccabc27
Treehugger Robot [Thu, 1 Dec 2016 20:55:37 +0000 (20:55 +0000)]
Merge "Revert "Use get instead of implicit cast on Return<*>.""
Steven Moreland [Thu, 1 Dec 2016 17:19:36 +0000 (17:19 +0000)]
Merge "Always specify underlying enum type."
am:
832f1a7978
Change-Id: Iaf8887dcea15c498b3fc2530d349cdff6c1d51d6
Treehugger Robot [Thu, 1 Dec 2016 17:15:54 +0000 (17:15 +0000)]
Merge "Always specify underlying enum type."
Steven Moreland [Thu, 1 Dec 2016 05:56:21 +0000 (05:56 +0000)]
Revert "Use get instead of implicit cast on Return<*>."
This reverts commit
dc5f84f993ddf6d47803ab9f48c269b3e6ac11d7.
Change-Id: Ib81f732d1e0b822a5f53cbc7ed8a13e146ad8b7a
Steven Moreland [Thu, 1 Dec 2016 01:33:09 +0000 (01:33 +0000)]
Merge "Wifi: don't require C++11."
am:
13be232d7b
Change-Id: Ib8b8aeea631b46ddd4310e1c32dd71f092fd6c9e
Treehugger Robot [Thu, 1 Dec 2016 01:25:42 +0000 (01:25 +0000)]
Merge "Wifi: don't require C++11."
Steven Moreland [Wed, 30 Nov 2016 19:47:49 +0000 (11:47 -0800)]
Wifi: don't require C++11.
C++14 has been officially supported in the build system for a while now.
(see b/
32019064).
Test: pass
Change-Id: I328b0bcf9e5c32e209e4efc1ac5b96afdb542a5a
Ruchi Kandoi [Wed, 30 Nov 2016 20:51:11 +0000 (20:51 +0000)]
Merge "NFC: Add @exports to generate nfc-base.h headers."
am:
cca3e97d63
Change-Id: Ic2b511275b4ada5049428811357bdd3ecf323841
Ruchi Kandoi [Wed, 30 Nov 2016 20:45:03 +0000 (20:45 +0000)]
Merge "NFC: Add @exports to generate nfc-base.h headers."
Yifan Hong [Wed, 30 Nov 2016 20:40:52 +0000 (20:40 +0000)]
Merge "Update to use the correct library for logging."
am:
f5e1ac67ed
Change-Id: Idbd600f20212143ddced9c7723cb28b414afa349
Yifan Hong [Wed, 30 Nov 2016 20:31:25 +0000 (20:31 +0000)]
Merge "Update to use the correct library for logging."
Steven Moreland [Tue, 29 Nov 2016 22:07:27 +0000 (14:07 -0800)]
Always specify underlying enum type.
Bug:
33197891
Test: compiles
Change-Id: I3d4822ea9a665708302d3bd1460425fddf1dcda9
Yifan Hong [Mon, 28 Nov 2016 23:59:24 +0000 (15:59 -0800)]
Update to use the correct library for logging.
Generates: b/
33193497
Test: mma
Change-Id: Ib8bfc4d2f1d68947099e4756f661ed06689ffd62
Roshan Pius [Tue, 29 Nov 2016 18:04:14 +0000 (18:04 +0000)]
Merge changes I304a5d9d,Ied19d9ec,Ie6c03aee
am:
9f518064de
Change-Id: Id45ea1662cbc1b3b7c367cd17017b42b9ed8a856
Roshan Pius [Tue, 29 Nov 2016 18:04:13 +0000 (18:04 +0000)]
wifi: Add NAN API wrappers in WifiLegacyHal
am:
2301209a9a
Change-Id: I906138784eab26f35a55546f614de6f378a2ec64
Roshan Pius [Tue, 29 Nov 2016 18:04:12 +0000 (18:04 +0000)]
wifi: Add RTT API wrappers in WifiLegacyHal
am:
d8e915ab99
Change-Id: I1f8067fb8e2f4a86f9c555e2564cac7dd0c0196f
Roshan Pius [Tue, 29 Nov 2016 18:04:11 +0000 (18:04 +0000)]
wifi: Add logger/debug API wrappers in WifiLegacyHal
am:
8714a3e103
Change-Id: I81a9b38916f0c1f92ca45fc9825bf0f025fda7b1
Treehugger Robot [Tue, 29 Nov 2016 17:55:36 +0000 (17:55 +0000)]
Merge changes I304a5d9d,Ied19d9ec,Ie6c03aee
* changes:
wifi: Add NAN API wrappers in WifiLegacyHal
wifi: Add RTT API wrappers in WifiLegacyHal
wifi: Add logger/debug API wrappers in WifiLegacyHal
Ruchi Kandoi [Tue, 22 Nov 2016 23:17:44 +0000 (15:17 -0800)]
NFC: Add @exports to generate nfc-base.h headers.
Test: Generates headers using hidl-gen
Bug:
32748647
Change-Id: I20bf4329a7fbad1096798db060a2ea5be695c62e
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
Ruchi Kandoi [Tue, 29 Nov 2016 01:34:09 +0000 (01:34 +0000)]
Nfc: Change return types for Nfc hal to specified type.
am:
51068e0bd3
Change-Id: I46ba181e80ee2c16cfda07da6e1b3975f1e09717
Ruchi Kandoi [Fri, 18 Nov 2016 22:11:33 +0000 (14:11 -0800)]
Nfc: Change return types for Nfc hal to specified type.
Test: Compiles and test passes
Bug:
32998929
Change-Id: I6787b90e5e745b32c7a5a951203496cc614fdc10
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
Roshan Pius [Fri, 28 Oct 2016 18:27:40 +0000 (11:27 -0700)]
wifi: Add NAN API wrappers in WifiLegacyHal
NAN API's are inherently asynchronous. So, add a function for registering
the various callbacks and add wrappers for all other NAN API's.
Bug:
31991076
Test: Compiles
Change-Id: I304a5d9d41b684f0778e0ace3601380153068e12
Roshan Pius [Fri, 28 Oct 2016 18:23:11 +0000 (11:23 -0700)]
wifi: Add RTT API wrappers in WifiLegacyHal
These are just wrapper methods over the legacy RTT related HAL API's.
Note: Some of the RTT related API's have been intentionally left off
because they're no longer used.
Bug:
31991232
Test: Compiles
Change-Id: Ied19d9ec1d4347ead0c40ab3683a1a0bae704f90
Roshan Pius [Fri, 28 Oct 2016 17:43:51 +0000 (10:43 -0700)]
wifi: Add logger/debug API wrappers in WifiLegacyHal
Legacy HAL wrappers for the following debug functions:
1. Wake reason stats
2. Packet fate
3. Supported feature set
4. Ring buffer.
Bug:
32221997
Test: Compiles
Change-Id: Ie6c03aeefb0b6e711419cfa5451cddbeb3069cd0
Steven Moreland [Mon, 28 Nov 2016 21:37:55 +0000 (21:37 +0000)]
Use get instead of implicit cast on Return<*>.
am:
dc5f84f993
Change-Id: I5bb0b8a4ca3a565768c7f03d640134d3a3a16dd4
Steven Moreland [Tue, 22 Nov 2016 22:16:37 +0000 (14:16 -0800)]
Use get instead of implicit cast on Return<*>.
Bug:
31348667
Test: hidl_test
Change-Id: Icc22f440077feeff1119ca7b2b44fab684b453db
Steven Moreland [Fri, 25 Nov 2016 18:18:50 +0000 (18:18 +0000)]
Merge "Update makefiles for logging."
am:
2fe5762cae
Change-Id: I2f85a37a4cb7178aecd48eb63ca6fa7e7d715917
Treehugger Robot [Thu, 24 Nov 2016 16:41:20 +0000 (16:41 +0000)]
Merge "Update makefiles for logging."
Steven Moreland [Wed, 23 Nov 2016 01:39:14 +0000 (01:39 +0000)]
Remove HIDL_GENERATED from things written by hand.
am:
33e87b8a76
Change-Id: Ib5c70daafd8d5bfa8454a4a0e05c858a3e9a393a
Steven Moreland [Tue, 22 Nov 2016 23:34:39 +0000 (15:34 -0800)]
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
Martijn Coenen [Tue, 22 Nov 2016 14:58:35 +0000 (14:58 +0000)]
Use newly introduced hidl_handle.
am:
403161ab73
Change-Id: Ic5344ae123ef0c9b233eb31e6b9cd33be2d809fc
Martijn Coenen [Fri, 18 Nov 2016 14:29:32 +0000 (15:29 +0100)]
Use newly introduced hidl_handle.
Bug:
32089785
Test: builds
Change-Id: I27c7d3945e1fe390661bf322987011a00fe9b3fe
Roshan Pius [Tue, 22 Nov 2016 01:39:03 +0000 (01:39 +0000)]
Merge changes I7c418811,I0870eae0
am:
88fb149b8e
Change-Id: Ic1b7ccb20296344bb551fc600d3d6e25fe1fe6a6
Roshan Pius [Tue, 22 Nov 2016 01:39:00 +0000 (01:39 +0000)]
wifi: Add link layer stats API wrappers in WifiLegacyHal
am:
7cece41299
Change-Id: Id8edce8333faa2860a7deef272858b93c6c8bef6
Roshan Pius [Tue, 22 Nov 2016 01:38:57 +0000 (01:38 +0000)]
wifi: Add gscan API wrappers in WifiLegacyHal
am:
76ff302d57
Change-Id: Ieda0e0ab4b058f342788cf39182c7a2eafafeeba
Treehugger Robot [Tue, 22 Nov 2016 01:06:50 +0000 (01:06 +0000)]
Merge changes I7c418811,I0870eae0
* changes:
wifi: Add link layer stats API wrappers in WifiLegacyHal
wifi: Add gscan API wrappers in WifiLegacyHal
Steven Moreland [Tue, 22 Nov 2016 00:19:57 +0000 (16:19 -0800)]
Update makefiles for logging.
Bug:
32943424
Test: hidl_test
Change-Id: I86dc81935912861073497c07696378895a25f9ee
Ruchi Kandoi [Mon, 21 Nov 2016 23:03:59 +0000 (23:03 +0000)]
Merge "NFC: Add Annotations to the HAL file"
am:
3bca1eef75
Change-Id: I528f0494291c89116a976a8da0c28dd3dc87e6cb
Ruchi Kandoi [Mon, 21 Nov 2016 22:53:01 +0000 (22:53 +0000)]
Merge "NFC: Add Annotations to the HAL file"
Roshan Pius [Fri, 28 Oct 2016 17:38:21 +0000 (10:38 -0700)]
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
Roshan Pius [Fri, 28 Oct 2016 17:33:34 +0000 (10:33 -0700)]
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
Yifan Hong [Fri, 18 Nov 2016 23:14:31 +0000 (23:14 +0000)]
Split libhidl into base and transport.
am:
63544eacb6
Change-Id: I97974e9bbe99c93591c0a4e85ff75a43c7e63983
Yifan Hong [Wed, 16 Nov 2016 22:17:58 +0000 (14:17 -0800)]
Split libhidl into base and transport.
Bug:
32756130
Test: mma
Change-Id: Id21cf23abe2910f26bb7895511862443b93dc112
Martijn Coenen [Fri, 18 Nov 2016 08:08:20 +0000 (08:08 +0000)]
Merge "Cast hidl_pointer<T> to void*."
am:
6033952ff1
Change-Id: Ic0bdb5eab4f0a38c3b93042aad4ec14856f05de5
Martijn Coenen [Fri, 18 Nov 2016 08:03:38 +0000 (08:03 +0000)]
Merge "Cast hidl_pointer<T> to void*."
Sanket Padawe [Fri, 18 Nov 2016 01:42:19 +0000 (01:42 +0000)]
Merge "Add a missing RIL request in iRadio.hal"
am:
d5e70d7f63
Change-Id: I57f2b156ab7131bff083acc49ee628942ac2f53e
Sanket Padawe [Fri, 18 Nov 2016 01:33:10 +0000 (01:33 +0000)]
Merge "Add a missing RIL request in iRadio.hal"
Roshan Pius [Fri, 18 Nov 2016 01:18:19 +0000 (01:18 +0000)]
wifi: Add APF/feature-set wrappers in WifiLegacyHal
am:
0a47c187b9
Change-Id: Idaa8f4932d44cde5ba4a69919e3833027782281c
Roshan Pius [Fri, 18 Nov 2016 01:18:18 +0000 (01:18 +0000)]
wifi: Move legacy hal types to a new namespace (2/2)
am:
6cedc97e95
Change-Id: I7c999625fb5a39d2568f39189905a67f9366d078
Roshan Pius [Fri, 18 Nov 2016 01:18:17 +0000 (01:18 +0000)]
wifi: Move legacy hal types to a new namespace (1/2)
am:
955542e9a2
Change-Id: I83e0e783077d2e3dd8103d494192c2652665977c
Sanket Padawe [Thu, 17 Nov 2016 23:28:31 +0000 (15:28 -0800)]
Add a missing RIL request in iRadio.hal
Test: no test
Bug:
32020264
Change-Id: I5b1584e5451c4c04e0a2902791140c4e7bd95549
Roshan Pius [Fri, 28 Oct 2016 17:23:00 +0000 (10:23 -0700)]
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
Martijn Coenen [Thu, 17 Nov 2016 14:12:18 +0000 (15:12 +0100)]
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
Roshan Pius [Thu, 17 Nov 2016 02:43:37 +0000 (02:43 +0000)]
wifi: Changes to WifiLegacy Hal
am:
511cc493e3
Change-Id: I2b78178e06ba7dbc0929ac8e0dc2c2a40443dfe6
Roshan Pius [Thu, 17 Nov 2016 00:57:06 +0000 (00:57 +0000)]
wifi: Remove passthrough mode
am:
23f9f30344
Change-Id: I54fe1971eb19c9e8e756f001424d28fe72189f0c
Roshan Pius [Thu, 17 Nov 2016 00:57:05 +0000 (00:57 +0000)]
wifi: Stub implementation of WifiNanIface methods
am:
0c92d446a2
Change-Id: I8be74c7b452e1a2fc36e86a55e1d8e749b3cdb70
Roshan Pius [Thu, 17 Nov 2016 00:57:03 +0000 (00:57 +0000)]
wifi: Stub implementation of WifiRttController methods
am:
7913f5e49d
Change-Id: I45a075986e47dd3ed6feb5735c1fc8e396bf3ad0
Roshan Pius [Thu, 17 Nov 2016 00:57:02 +0000 (00:57 +0000)]
wifi: Stub implementation of WifiStaIface methods
am:
a04ba3fcb8
Change-Id: Ie61978114eb86f11e3e8f56e15a6d4293bbf4c88