Commit graph

585 commits

Author SHA1 Message Date
Sundong Ahn
79e801cb18 Change dependency library
am: 94293086f8

Change-Id: I3b024890195dad8fa3435a4ff493adbddb63ef20
2017-08-02 16:56:46 +00:00
Sundong Ahn
94293086f8 Change dependency library
hwbinder.jar will be used instead of framework.jar on build-time, but
on runtime framework.jar will be used.

This is to cut the circular dependency when using configstore from
Android framework.

Bug: 35771640
Test: no test.
Change-Id: I04cab676c91d2ea423f5e2c1b2b9efa15e522f37
2017-08-01 11:24:01 +09:00
Sohani Rao
8ba37279e9 Merge "Wifi Offload HAL: Improve VTS tests for scanConfig" into oc-dr1-dev am: cf43256fa9
am: c17e286b9f

Change-Id: Ibe4b8bf50a9be59530416b809ea4f6a36cccbe47
2017-07-31 20:03:03 +00:00
Sohani Rao
ff16a48057 Merge "Wifi Offload HAL: Improve VTS tests for scanConfig" into oc-dr1-dev
am: cf43256fa9

Change-Id: I4c6a33f61d9278edc8640564bb151a347f69c17f
2017-07-31 19:59:30 +00:00
Sohani Rao
c17e286b9f Merge "Wifi Offload HAL: Improve VTS tests for scanConfig" into oc-dr1-dev
am: cf43256fa9

Change-Id: I6dc1e8402c30a15f53273d059231b33d958eee4e
2017-07-31 19:59:29 +00:00
TreeHugger Robot
cf43256fa9 Merge "Wifi Offload HAL: Improve VTS tests for scanConfig" into oc-dr1-dev 2017-07-31 19:52:44 +00:00
Steven Moreland
07b399b6ec Merge "Update HIDL makefiles." am: 49dad304a5 am: 68a25d22e3 am: 27e608f01c
am: a1a7a39695

Change-Id: I4eb55db8907fcccdaa605b26c3bbf3549cbc3e7e
2017-07-31 19:43:30 +00:00
Steven Moreland
a1a7a39695 Merge "Update HIDL makefiles." am: 49dad304a5 am: 68a25d22e3
am: 27e608f01c

Change-Id: I1d9c2c1d1b15f865890f3c11310abd4096497ff5
2017-07-31 19:40:02 +00:00
Steven Moreland
27e608f01c Merge "Update HIDL makefiles." am: 49dad304a5
am: 68a25d22e3

Change-Id: I98400033b6e49696bc27930153a6747665235a98
2017-07-31 19:36:37 +00:00
Steven Moreland
68a25d22e3 Merge "Update HIDL makefiles."
am: 49dad304a5

Change-Id: I29f1de44312f589ba6e1df9498809cbb31315a2b
2017-07-31 19:33:34 +00:00
Roshan Pius
e85d6ce693 Merge "wifi(hidl): Modify the SAR power levels interface" into oc-dr1-dev am: dda74bcf77
am: 80d7976194

Change-Id: I2108c1e58bfd68245037c1b98d63077ab195e520
2017-07-28 02:59:20 +00:00
Roshan Pius
82396e9e1b Merge "wifi(hidl): Modify the SAR power levels interface" into oc-dr1-dev
am: dda74bcf77

Change-Id: I504fe9096b855c6270c50c1e46b4e5ee26b9ea67
2017-07-28 02:51:57 +00:00
Roshan Pius
735ff43197 wifi(hidl): Modify the SAR power levels interface
Modifying the interface used to lower the tx power level for meeting SAR
requirements based on recommendation from the nexus hardware team. The
previous interface passed in a single power value in dBm for meeting SAR
requirements. However, the SAR requirements are more complex than that.
Based on the connection mode (802.11 a,b,g,n,ac) and the number of
streams that are active (MIMO), the SAR power levels are very
different. Using the previous interface would mean that we will have to
use the lowest power level among all the connection modes to meet the SAR
requirements. This would however result in us lowering the power much
more than needed (~2 dBm) for many connection modes.
Instead, we're switching to a more generic interface where the framework
informs the wifi chip that we're entering a special tx power mode scenario
(today, there is only 1 for voice call). The chip can then lookup the
extensive table of power levels for different connection modes which are
pre-populated by the OEM's in the BDF file to set the power level (depending
on the scenario framework sends and the active connection mode).

Bug: 62437848
Test: Manual tests
Change-Id: I5ee3f0d2c130958dbeb352e3b5ad9407f432624f
2017-07-27 14:05:03 -07:00
Sohani Rao
15ed448e49 Wifi Offload HAL: Improve VTS tests for scanConfig
Configure scans with test parameters from the Offload HAL service.

Bug: 36865676
Test: VTS tests
Change-Id: Iec5a3e837f9a2e2cf285b079a4630ff273727679
2017-07-26 11:29:37 -07:00
Steven Moreland
7206708528 Update HIDL makefiles.
Allow them to be static.

This is required for a couple of reasons:
- enabling HIDL passthrough in recovery
- enabling VTS tests to be static blobs

Bug: 32920003
Bug: 64040096
Test: update-all-google-makefiles.sh
Change-Id: I1b2401fb273ab80819e3870aa71fe742269674ba
2017-07-26 10:14:57 -07:00
Roshan Pius
d796137703 supplicant(vts): Remove start/stop framework
am: 80599435bd

Change-Id: Icb8204bee8bd24de30eab5e25f6ed26f1eca53c2
2017-07-25 06:44:52 +00:00
Roshan Pius
80599435bd supplicant(vts): Remove start/stop framework
This is already done by the test harness on the host side. So, no need
to invoke this from within the gtest.

Bug: 63914399
Test: `make vts -j30 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 &&
vts-tradefed run commandAndExit vts --skip-all-system-status-check
--primary-abi-only --skip-preconditions --module
VtsHalWifiSupplicantV1_0Target -l INFO`

Change-Id: I43edc03492bf5e03f9a4236265c43baa5efcd61d
(cherry picked from commit 145cce98b5)
Merged-Id: I43edc03492bf5e03f9a4236265c43baa5efcd61d
2017-07-25 04:36:00 +00:00
Roshan Pius
8d3ce3e6b9 Merge "supplicant(vts): Remove start/stop framework" into oc-dr1-dev
am: 28b744d2d9

Change-Id: I71a7dd0aa0e6de879b4ae3ac3fc5fb3fdaca36df
2017-07-24 23:16:21 +00:00
Roshan Pius
28b744d2d9 Merge "supplicant(vts): Remove start/stop framework" into oc-dr1-dev 2017-07-24 23:07:54 +00:00
Roshan Pius
145cce98b5 supplicant(vts): Remove start/stop framework
This is already done by the test harness on the host side. So, no need
to invoke this from within the gtest.

Bug: 63914399
Test: `make vts -j30 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 &&
vts-tradefed run commandAndExit vts --skip-all-system-status-check
--primary-abi-only --skip-preconditions --module
VtsHalWifiSupplicantV1_0Target -l INFO`

Change-Id: I43edc03492bf5e03f9a4236265c43baa5efcd61d
2017-07-24 14:13:48 -07:00
TreeHugger Robot
5115ed5268 Merge "wifi: Add owners" into oc-mr1-dev 2017-07-21 02:54:15 +00:00
Roshan Pius
1d047a7539 wifi: Add owners
Change-Id: If5a9a7da36b86f968bd32768d61e5d181573d30a
2017-07-20 14:39:29 -07:00
Etan Cohen
f26f9266c3 [HAL] Invalidate chip before shutting down legacy HAL
Change the order of shutdown to invalidate chips before
shutting down the legacy HAL. Allows pre-shutdown commands
to be sent down.

Bug: 63704506
Test: NAN tests passing
Test: full regression suite
Change-Id: I03d237d732b4e3482b1e1639848342dfdde9fcb7
2017-07-20 14:04:07 +00:00
Etan Cohen
a0c6d7d5c6 [HAL] Invalidate chip before shutting down legacy HAL
Change the order of shutdown to invalidate chips before
shutting down the legacy HAL. Allows pre-shutdown commands
to be sent down.

Bug: 63704506
Test: NAN tests passing
Test: full regression suite
Change-Id: I03d237d732b4e3482b1e1639848342dfdde9fcb7
2017-07-19 19:31:12 +00:00
TreeHugger Robot
b3ea84438b Merge "wifi: Add the missing RTT capabilities" into oc-dr1-dev 2017-07-18 23:04:26 +00:00
Etan Cohen
b14c7560f7 [VTS][NAN] Restore NAN test: configure for device support
Restore NAN test and use configuration which determines test
result based on whether or not the platform supports NAN.

Bug: 63131342
Test: NAN-supporting devices: pass (the NAN tests)
Test: Non-NAN-supporting device: pass
Change-Id: I6600abc531d4eb1dea6c501f6a39ef37051cb923
2017-07-18 10:52:10 -07:00
Keun Soo Yim
e034df0640 Accept a command line arg (nan_on) in wifi vts
Test: make vts -j30 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 &&
vts-tradefed run commandAndExit vts --skip-all-system-status-check
--primary-abi-only --skip-preconditions --module VtsHalWifiV1_0Host -l
INFO

Test: VtsHalWifiV1_0TargetTest
Test: VtsHalWifiV1_0TargetTest -N
Test: VtsHalWifiV1_0TargetTest --nan_on
Test: VtsHalWifiV1_0TargetTest -f (fails)
Test: VtsHalWifiV1_0TargetTest --gtest_filter=foo
Test: VtsHalWifiV1_0TargetTest --gtest_filter=foo -N
Test: VtsHalWifiV1_0TargetTest -N --gtest_filter=foo

Bug: 63131342

Change-Id: I359ac7238496e64c7ace1e14e797d4fcfc8cc0e4
2017-07-18 10:38:42 -07:00
Roshan Pius
08df76ec0d wifi: Add the missing RTT capabilities
These feature flags are defined in the legacy HAL, but were not exposed in the HIDL
interface.

Updated the hash in current.txt using 'hidl-gen -L hash -r
android.hardware.wifi@1.1:hardware/interfaces -r
android.hardware:hardware/interfaces -r
android.hidl:system/libhidl/transport
android.hardware.wifi@1.1::IWifiChip'

Bug: 63545934
Test: Manual testing
Change-Id: Ia196e0fc1c5e305210ec95eb8a54b1a1204ebf20
2017-07-17 13:21:23 -07:00
Roshan Pius
77d9eea1da supplicant(vts): Remove dependency on libwifi_hal
libwifi_hal is a vendor component, so these are not allowed to be used
in the VTS tests. Use the vendor HAL for the required initializations
instead since that is the flow used by framework anyway (setup the wifi
chip using vendor hal and then use wpa_supplicant for connections).

Bug: 63704014
Bug: 33241851
Test: make vts -j30 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 &&
vts-tradefed run commandAndExit vts --skip-all-system-status-check
--primary-abi-only --skip-preconditions --module
VtsHalWifiSupplicantV1_0Target -l INFO

Change-Id: I396d8311253e2b2493f9bb901731937019d30164
2017-07-14 19:25:32 +00:00
Roshan Pius
8184d210d2 wifi(implementation): Set/Reset TX power limit
Hookup the HIDL method calls to the respective newly added legacy
HAL functions for setting/resetting TX power limits for SAR
requirements.

Bug: 62437848
Test: VTS test fails because of a bug in Qcom implementation. Working
with Qcom to fix their implementation.
Change-Id: Ia619f5558e44d44fd77d037e72dfc1f6863b51e0
2017-07-11 14:03:06 -07:00
Roshan Pius
dbd83ef585 wifi(implementation): Create 1.1 interface package
1. Move the implementation in 1.0/default to 1.1/default.
2. Move all of the implementation to
android::hardware::V1_1::implementation namespace.
3. All of the header files include the android::hardware::V1_0 namespace
so that it can access the types from 1.0 package. ("using namespace" is
against Google style guide though :().
The other option to prefix each 1.0 type with the namespace name.
For example: V1_0::WifiStatus.
4. Added the implementation of the new 1.1 method
IWifiChip.setTxPowerLimit().
4. The executable name and the .rc still has 1.0 name in it to avoid
changing all the device.mk files.

TODO: Hookup to the new legacy HAL API.

Bug: 62437848
Test: mmm -j128 hardware/interfaces/wifi/1.1/default/
Test: Device boots up and able to connect to wifi networks.
Test: New VTS tests passes
Change-Id: Ib36282939e70b064f246041a03d8870f5cb6410e
2017-07-06 19:44:33 +00:00
Roshan Pius
ee3daf9ab6 wifi(interface): Create 1.1 interface package
Extend the wifi HAL to add a new method in IWifiChip. This new method is
used for setting the TX power limit for meeting SAR requirements.

Bug: 62437848
Test: ./hardware/interfaces/update-makefiles.sh
Test: mmm -j32 hardware/interfaces/wifi/1.1
Change-Id: I8320a64812339f15cd88636505de0dfda18f0ebf
2017-07-06 09:19:25 -07:00
Etan Cohen
c9836f95a1 [AWARE] Pass through full structure for end NDP command
The end NDP command is the only NAN HAL command which uses
a dynamically sized command structure. The original code
stripped out the non-static portions of the command - losing
the information. Modify the dynamically allocate at a lower
level of the shim.

Bug: 62569797
Test: integration tests now proceeding past failure point
Change-Id: I1732923aed64d7ec11649f0bad1731ab5bca13a0
2017-06-30 17:51:22 -07:00
TreeHugger Robot
934946a48c Merge "Offload HAL HIDL: Add return values to synchronous calls" into oc-dr1-dev 2017-06-22 17:40:02 +00:00
Etan Cohen
c4d9f87f66 [AWARE] Actually shut-down functionality when destroying NAN iface
Destroying the interface doesn't actually execute any functions on
the legacy HAL - i.e. on the HAL side. This may leave state around -
a problem when next "re-enabling" the interface as well as possibly
a power issue.

Add code to actually disable Aware and to destroy interfaces. There
is no need to check on current status since calls will simply fail
quietly if there's nothing to disable and nothing to destroy.

Bug: 62632805
Test: integration non-concurrence test cases NonConcurrencyTest
Change-Id: I11e5bd6f3ed47f6d709ff360c9f4adf5f40234a5
2017-06-15 08:59:51 -07:00
Sohani Rao
452ed3039c Offload HAL HIDL: Add return values to synchronous calls
Enhance the HIDL interface to return values indicating the status of the
operation requested by the API.

Bug: 32842314
Test: VTS
Change-Id: I9a75e2524c0256d5da405d5b1b5919d5342deebf
2017-06-08 13:45:29 -07:00
Etan Cohen
a7a059ebbf [AWARE] Fix validity check on PMK + export PASSPHRASE lengths
Bug: 62376042
Test: unit tests + integrated (sl4a) tests
Change-Id: I4c0e19a21a268fe7f2d38e82f3743ac5a8e2c6cb
2017-06-07 20:54:31 +00:00
Steven Moreland
f04fdeb83e Update internal makefiles.
These makefiles are not in dev topic branches
or AOSP currently so they were not updated. This
update adds hidl-generated-module defaults.

Test: pass
Change-Id: Ie52c54877d795bf5358aa600e6d1a13a4f166d25
2017-06-05 17:47:36 -07:00
Etan Cohen
0a2ef0302e [WIFI] Remove dependency on vendor-specific library
The libcld80211 is vendor-specific. Remove from dependecy list.

(cherry-pick of commit aa281aa266)

Bug: 37901207
Test: builds and runs
Merged-In: If251002c2dd7a0e30ca18620edd905a63217f28a
Change-Id: If251002c2dd7a0e30ca18620edd905a63217f28a
2017-05-31 11:15:31 -07:00
Roshan Pius
6bb0f4d240 Merge "wifi(vts): Add retry for HAL start" into oc-dev am: 4197ba0208
am: 647d7a8aec

Change-Id: I43f2d5f90c8e5bba71753cdb8587f5fd59233e30
2017-05-23 00:54:47 +00:00
Roshan Pius
647d7a8aec Merge "wifi(vts): Add retry for HAL start" into oc-dev
am: 4197ba0208

Change-Id: I6552049f92cafa2544bd5d24e806f5dd45ea9627
2017-05-23 00:45:05 +00:00
Roshan Pius
c802e09390 wifi(vts): Add retry for HAL start
Port of the retry logic added in HalDeviceManager for temporary IWifi.start()
failures when invoked immediately after IWifi.stop().

Bug: 38342536
Test: Run VTS tests
Change-Id: Ie58a08c45979bafa0c61fa1c8536a2c0a0cd8ed9
2017-05-22 15:29:03 -07:00
Steven Moreland
aeef430de6 Merge "Update makefiles." am: 9119d4ccd1 am: 242b2288d7 am: c6da54569f
am: 67b9ae7d9c

Change-Id: I8462abc85f4f87840c4cee13361290e42746ce82
2017-05-20 00:22:03 +00:00
Steven Moreland
67b9ae7d9c Merge "Update makefiles." am: 9119d4ccd1 am: 242b2288d7
am: c6da54569f

Change-Id: Ib7f7a9cdb64985d545443edac5bb8e9c169fc592
2017-05-20 00:19:40 +00:00
Treehugger Robot
9119d4ccd1 Merge "Update makefiles." 2017-05-20 00:05:51 +00:00
Steven Moreland
e4d318948a Update makefiles.
Adds default configuration to all hals.

Test: pass
Merged-In: Icdf6b56df82c4b7b7de815e7febea9a07ab96856
Change-Id: Icdf6b56df82c4b7b7de815e7febea9a07ab96856
2017-05-19 15:53:53 -07:00
Etan Cohen
b45e3db44d Merge "[WIFI] Remove dependency on vendor-specific library" am: 294340e1d4 am: ee9e5b843a
am: 664584f74e

Change-Id: Ie99267431e980e008b3b27b1f93a58377d94e648
2017-05-19 16:07:18 +00:00
Etan Cohen
294340e1d4 Merge "[WIFI] Remove dependency on vendor-specific library" 2017-05-19 15:52:21 +00:00
Steven Moreland
06c85d986a Update makefiles.
Adds default configuration to all hals.

Test: pass
Change-Id: Icdf6b56df82c4b7b7de815e7febea9a07ab96856
2017-05-18 16:14:16 -07:00
Steven Moreland
320b5134b5 Update makefiles.
Note cleanspec required because of b/38205169 (genrule
doesn't delete output files before building, so when
removing some, they get stale).

Test: power vts test compiles
Change-Id: Ie7ef0fc3d943a75fe898238cf861fb7f99f4146b
Fixes: 35813011
2017-05-12 13:09:49 -07:00
Steven Moreland
01329bc539 Update makefiles for c++-sources and c++-headers. am: cb360c60d8 am: 4bd4e7fb3b am: 127b116fe5
am: 8e89a43590

Change-Id: I35950a57e220cdbe7672d5e814230fb73c154fac
2017-05-10 03:13:43 +00:00
Steven Moreland
8716f3063e Update makefiles for c++-sources and c++-headers.
Test: pass
Bug: 38174080
Merged-In: I683455736eed35e6ced24e2763c2bdb5fb6c9601
Change-Id: I683455736eed35e6ced24e2763c2bdb5fb6c9601
2017-05-09 19:58:45 -07:00
Steven Moreland
8e89a43590 Update makefiles for c++-sources and c++-headers. am: cb360c60d8 am: 4bd4e7fb3b
am: 127b116fe5

Change-Id: I3a2aa76acef0f0d1455bfad775e87e8089d357e8
2017-05-10 02:58:00 +00:00
Steven Moreland
cb360c60d8 Update makefiles for c++-sources and c++-headers.
Test: pass
Bug: 38174080
Change-Id: I683455736eed35e6ced24e2763c2bdb5fb6c9601
2017-05-09 14:34:19 -07:00
Etan Cohen
d810874948 [WIFI] Remove dependency on vendor-specific library
The libcld80211 is vendor-specific. Remove from dependecy list.

(cherry-pick of commit aa281aa266)

Bug: 37901207
Test: builds and runs
Merged-In: If251002c2dd7a0e30ca18620edd905a63217f28a
Change-Id: If251002c2dd7a0e30ca18620edd905a63217f28a
2017-05-09 13:55:36 -07:00
TreeHugger Robot
a677e93223 Merge "[AWARE] Passphrase limit check used incorrect limit" 2017-05-09 20:13:46 +00:00
Etan Cohen
fed081c7a5 [AWARE] Passphrase limit check used incorrect limit
Passphrase has a lower and upper limit. The uppper limit check
was using the incorrect (lower) limit value.

Bug: 38164425
Test: builds & CtsVerifier test passes
Change-Id: I8a58f46a9558f828f8ccfda07935fcf62285f8c3
2017-05-09 12:15:08 -07:00
Etan Cohen
6a4b943f25 Merge "[WIFI] Remove dependency on vendor-specific library" 2017-05-08 17:53:41 +00:00
Ningyuan Wang
9dfaf8852a Merge "Expect SUCCESS for tdls vts tests" into oc-dev am: 525e0ecb1a
am: 4149387a43

Change-Id: I7ac432309de61dc72869847b085f3b2b08bf318b
2017-05-05 17:52:02 +00:00
Ningyuan Wang
4149387a43 Merge "Expect SUCCESS for tdls vts tests" into oc-dev
am: 525e0ecb1a

Change-Id: Icdc6c2349baea024f5944d1ba04a914a6871dd7a
2017-05-05 17:43:42 +00:00
Ningyuan Wang
525e0ecb1a Merge "Expect SUCCESS for tdls vts tests" into oc-dev 2017-05-05 17:34:37 +00:00
Etan Cohen
aa281aa266 [WIFI] Remove dependency on vendor-specific library
The libcld80211 is vendor-specific. Remove from dependecy list.

Bug: 37901207
Test: builds and runs
Change-Id: If251002c2dd7a0e30ca18620edd905a63217f28a
2017-05-03 09:12:50 -07:00
Steven Moreland
2cd0d42d72 Remove redundant dependencies
android.hidl.base@1.0 and android.hidl.manager@1.0 are built into libhidltransport.

Test: links
Bug: 33276472
Change-Id: I08aaad80f7e2fc262aa3a8b66fe932e8133a928d
2017-05-02 10:17:28 -07:00
Steven Moreland
090d6b15c4 Merge "Remove redundant dependencies" am: 62769b7196 am: 170e2e85a2 am: 5fba1db1d2
am: f90189a79f

Change-Id: I6ccecef314c8cd591108a0c739580eda2178425e
2017-05-01 23:53:56 +00:00
Steven Moreland
f90189a79f Merge "Remove redundant dependencies" am: 62769b7196 am: 170e2e85a2
am: 5fba1db1d2

Change-Id: I661fff75d140b4359af055a0f08f08ef33c889c3
2017-05-01 23:37:04 +00:00
Steven Moreland
ee1d248ae2 Remove redundant dependencies
android.hidl.base@1.0 and android.hidlmanager@1.0 are built into libhidltransport.

Test: links
Bug: 33276472
Change-Id: I424371932af129bba9d58dcf8652c64297f35f05
2017-05-01 09:47:58 -07:00
Ningyuan Wang
8c2fd98dea Merge "Fix RssiMonitoring VTS tests" into oc-dev am: 5c604fc1d4
am: c3191c6c84

Change-Id: I9f41f2db9b511c49f6bcf6d813b59d26e747687c
2017-04-29 20:54:03 +00:00
Ningyuan Wang
c3191c6c84 Merge "Fix RssiMonitoring VTS tests" into oc-dev
am: 5c604fc1d4

Change-Id: I2dd80498e6c3aa3ad05656229acfd04b7f937337
2017-04-29 20:49:34 +00:00
TreeHugger Robot
5c604fc1d4 Merge "Fix RssiMonitoring VTS tests" into oc-dev 2017-04-29 20:44:28 +00:00
Etan Cohen
e041501864 Merge "[HIDL][AWARE] Check for and fix corrupted char[] from legacy HAL" 2017-04-28 00:37:46 +00:00
Ningyuan Wang
3d9b0176dc Expect SUCCESS for tdls vts tests
Bug: 37710535
Test: compile, run tdls tests
Change-Id: I19c1e2b6726839391febce826ac087ccee7e7717
2017-04-27 16:44:49 -07:00
Steven Moreland
b05c3ae71a Merge "Link libwifi-system-iface instead" 2017-04-27 21:58:19 +00:00
Wei Wang
da18591c23 Merge "Clean up after RTT operations finished. (1/2)" into oc-dev am: 1c6cb69c37
am: 59772b92c8

Change-Id: I2dca6891828a3b28bc1ba06787ad3e7d6169650e
2017-04-27 18:56:06 +00:00
Wei Wang
59772b92c8 Merge "Clean up after RTT operations finished. (1/2)" into oc-dev
am: 1c6cb69c37

Change-Id: I9aa375f1950c6749e9c855a9edb50d6314249c07
2017-04-27 18:45:55 +00:00
Wei Wang
1c6cb69c37 Merge "Clean up after RTT operations finished. (1/2)" into oc-dev 2017-04-27 18:36:51 +00:00
Etan Cohen
bbc0f09786 [HIDL][AWARE] Check for and fix corrupted char[] from legacy HAL
Check that char[] from legacy HAL are:
- Null terminated
- ASCII (truncate up-to first non-ASCII)

Bug: 37704662
Test: integration (sl4a) tests passing (up-to other issues)
Change-Id: I84cf09923594b3a5c0dfa5267edd844fb375c595
2017-04-27 08:31:16 -07:00
Randy Pan
4f130f7ce7 Revert "Add capabilities for wifi_hal_legacy" am: b666cdae0f
am: 8b60a757ac

Change-Id: I40e08f5c56c34c85929aaf2404c92d05738ca407
2017-04-27 03:53:48 +00:00
Randy Pan
8b60a757ac Revert "Add capabilities for wifi_hal_legacy"
am: b666cdae0f

Change-Id: I870f99b5c9446f27663dd2ca72396f29667eb690
2017-04-27 03:50:28 +00:00
Wei Wang
8c50b5a38f Clean up after RTT operations finished. (1/2)
Bug: 36185358

Test: Manual with RTT app.

Change-Id: Ic9c9d020acaf384664a9881ec2806f941b7a0c1c
2017-04-26 19:30:25 -07:00
Ningyuan Wang
4f5dba49f4 Merge changes from topic 'fix_configure_chip' into oc-dev am: 5eca115b68
am: 24e03c6303

Change-Id: Ie888172fe36ca78e218b4fdaaebd6c2ae592eddc
2017-04-27 01:24:16 +00:00
Randy Pan
b666cdae0f Revert "Add capabilities for wifi_hal_legacy"
This reverts commit 1addbeaa46.

It breaks WiFi connectivity on Fugu.

Bug: 37713566
Test: Able to connect to GoogleGuest on Fugu.
2017-04-26 18:19:44 -07:00
Ningyuan Wang
24e03c6303 Merge changes from topic 'fix_configure_chip' into oc-dev
am: 5eca115b68

Change-Id: Ice788fc3d3c9226fa47df0b598927ea4a349332e
2017-04-27 01:13:52 +00:00
TreeHugger Robot
5eca115b68 Merge changes from topic 'fix_configure_chip' into oc-dev
* changes:
  Fix configureChip() VTS test
  Return ERROR_NOT_SUPPORTED when configureChip() is used for reconfiguration
2017-04-27 00:56:34 +00:00
Ningyuan Wang
f8bb8d7fc7 Fix configureChip() VTS test
Bug: 36562856
Bug: 37446050
Test: compile, vts test pass

Change-Id: I99ee0336d9cc11329de560daf26216ac15e5a0a9
2017-04-26 13:40:13 -07:00
Ningyuan Wang
b1ad3a7bf1 Return ERROR_NOT_SUPPORTED when configureChip() is used for reconfiguration
Bug: 36562856
Bug: 37446050
Test: compile, VTS test fail as expected
Change-Id: I895dd0d6e96b0d0a2b429c3a68be1f7c7e32a7e3
2017-04-26 10:44:58 -07:00
Logan Chien
8189245080 Link libwifi-system-iface instead
This commit replaces libwifi-system with libwifi-system-iface because
libwifi-system is a framework-only library.

Bug: 37429084
Test: Sailfish builds, boots, and wifi works.
Change-Id: I2b7c68d60ee84d3dba7500d01323365a699e4ad4
2017-04-26 15:44:00 +08:00
Randy Pan
faaa481946 Merge changes from topic 'fuguWifi' into oc-dev am: 0d0fb634ec
am: d04ec801df

Change-Id: I47113c7cc6bb5cf95776ccb9e2b4384feff65896
2017-04-25 17:23:40 +00:00
Randy Pan
d04ec801df Merge changes from topic 'fuguWifi' into oc-dev
am: 0d0fb634ec

Change-Id: I2617fe15174d5ca808e48d21fd5d4f9ac0f99778
2017-04-25 17:20:51 +00:00
Randy Pan
0d0fb634ec Merge changes from topic 'fuguWifi' into oc-dev
* changes:
  Improve logger feature set handling
  Add capabilities for wifi_hal_legacy
2017-04-25 16:59:39 +00:00
Roshan Pius
9fcd2d0bfc Merge "wifi(implementation): Turn on DFS flag for STA" into oc-dev am: b09f65c4b1
am: 612d3dbff6

Change-Id: I7bedce6982d092f47a9f97725b42d1e24933d725
2017-04-25 03:15:27 +00:00
Roshan Pius
612d3dbff6 Merge "wifi(implementation): Turn on DFS flag for STA" into oc-dev
am: b09f65c4b1

Change-Id: Iadceaaca523f9dc115fbbfc25f7dd169b11edc8a
2017-04-25 03:13:27 +00:00
TreeHugger Robot
b09f65c4b1 Merge "wifi(implementation): Turn on DFS flag for STA" into oc-dev 2017-04-25 03:08:52 +00:00
Roshan Pius
08d1df4d99 wifi(implementation): Turn on DFS flag for STA
DFS flag needs to be turned on in the legacy HAL for STA operations. So,
initialize this flag on creation of STA iface.
PS: Not adding an explicit HIDL API for this since there is no need to
toggle this from framework and since the HIDL API's are frozen now.

Bug: 36169790
Test: Verified the fix with regression tests: b/37528903.
Change-Id: I214097fcb399cef7fc0cbd2c278622fac259a3e3
2017-04-25 01:53:47 +00:00
Ningyuan Wang
c5b26eecdd Add missing document for supplicant hal, current.txt. am: 94a07c4cdc
am: c0631f313a

Change-Id: Ib27f2a13cf6f73c0e2c525d077be7cdce61f7ee3
2017-04-21 00:23:40 +00:00
Ningyuan Wang
c0631f313a Add missing document for supplicant hal, current.txt.
am: 94a07c4cdc

Change-Id: I557a9b9af06785c30878af75cc35965ad3fc9a30
2017-04-21 00:15:52 +00:00
Etan Cohen
b0557b4783 [AWARE] Configure the subscribe information in beacons
HAL (HIDL) contained configuration of subscriber ID in
discovery beacons (useful for higher probability of
discovery, better cluster selection & merging).

This CL modifies the implementation of the HAL to set
the (new) legacy HAL hooks from the HIDL values.

Bug: 35195516
Test: integration (sl4a) tests pass
Change-Id: I6dc84723a534aa9fd80ca93907f896af710e1e23
2017-04-20 12:48:31 -07:00
Ningyuan Wang
94a07c4cdc Add missing document for supplicant hal, current.txt.
**Note, hashes are being modified in place ONLY
because this interface has not yet been released
in a release of Android.

This adds additional information for setEapPhase2Method().
This also adds the missing error type for find(), stopFind(), and
reject().

Bug: 37254796
Test: compile
Change-Id: I35735a7ec6ca5d490219bb176f1d6c727432113f
2017-04-20 11:16:22 -07:00
Randy Pan
dbb3102bdd Improve logger feature set handling
Some devices don't support querying logger feature set. In that
case set the logger feature set value to 0 instead of failing
the query for regular WiFi feature set.

Bug: 37105075
Bug: 37483427
Test: get battery stats on Fugu.
Change-Id: I3e162f8ddeaaa1965b41518592a253c6c90ddfa7
2017-04-20 10:03:41 -07:00
Randy Pan
1addbeaa46 Add capabilities for wifi_hal_legacy
Bug: 37105075
Bug: 37483427
Test: Fugu Wifi VendorHal initializes successfully
Change-Id: If30aa641e42a9a4be435db97f36af4d172eb8ebe
2017-04-20 09:55:03 -07:00
Ningyuan Wang
0e99756761 Fix RssiMonitoring VTS tests
RssiMonitoring only succeeds if device is connected.

Bug: 36562856
Test: compile, run vts test
Change-Id: I5942c6fb487276751281c0ecf624f52a4ad872a5
2017-04-17 14:09:36 -07:00
Sohani Rao
1c8a118b30 Merge "Add Error callback from Offload HAL" 2017-04-14 16:58:54 +00:00
Andreas Huber
a04af1cf05 Merge "Changed the naming scheme for Treble java libraries (both static and dynamic)" into oc-dev
am: 8afd952d48

Change-Id: If26dc4c5bb23ea23ed48d35aa8618e0b7f2825a3
2017-04-14 04:18:00 +00:00
Treehugger Robot
f37bea87e8 Merge "Changed the naming scheme for Treble java libraries (both static and dynamic)" 2017-04-14 03:24:07 +00:00
TreeHugger Robot
8afd952d48 Merge "Changed the naming scheme for Treble java libraries (both static and dynamic)" into oc-dev 2017-04-14 02:13:28 +00:00
Ningyuan Wang
4d719a3cec Merge changes I52c156ed,I9fb9a924 into oc-dev am: e3c0b02d33
am: 4cf0bfe0b7

Change-Id: Ia997632e063c132f5acc7c0548181979b125ad21
2017-04-14 00:48:08 +00:00
Ningyuan Wang
4cf0bfe0b7 Merge changes I52c156ed,I9fb9a924 into oc-dev
am: e3c0b02d33

Change-Id: I8dd4fb4a04d116ca0d20c8bb69cb36e6a97636eb
2017-04-14 00:24:33 +00:00
TreeHugger Robot
e3c0b02d33 Merge changes I52c156ed,I9fb9a924 into oc-dev
* changes:
  Add VTS tests for Wfd
  Add VTS tests for Bonjour and Upnp service
2017-04-14 00:13:17 +00:00
Andreas Huber
cff97f83a2 Merge "Changed the naming scheme for Treble java libraries (both static and dynamic)" 2017-04-13 23:27:33 +00:00
Ningyuan Wang
c7951f7cf6 Merge "wifi(interface): Add links to APF docs" into oc-dev am: eb88c40014
am: dbc93868eb

Change-Id: I42d06c1b17765eead4e2960e3cac4cfea7f95255
2017-04-13 22:42:43 +00:00
Ningyuan Wang
b0bb01d808 wifi(interface): Add links to APF docs
Bug: 32119512
Test: Compiles
Merged-In: Iadb68a2a649b120b607735e4d88617b11740832f
Change-Id: I32ec491983d1d9e987a19a00b4fd8e60503c9e7f
2017-04-13 15:28:44 -07:00
Andreas Huber
6fa374ad30 Changed the naming scheme for Treble java libraries (both static and dynamic)
android.hardware.foo@1.0-java => android.hardware.foo-V1.0-java

Bug: 37207894
Test: make
Change-Id: I177f4cfd42f635aaf096107af8309d1a82ed41c0
Merged-In: I8b91881dfaf507c0d852d56ebbb53ff0987e5a34
2017-04-13 15:23:46 -07:00
Ningyuan Wang
dbc93868eb Merge "wifi(interface): Add links to APF docs" into oc-dev
am: eb88c40014

Change-Id: Ie7fc9fecf894aaa00537f12956567c82673f43fb
2017-04-13 22:23:24 +00:00
Andreas Huber
6733baff6c Changed the naming scheme for Treble java libraries (both static and dynamic)
android.hardware.foo@1.0-java => android.hardware.foo-V1.0-java

Bug: 37207894
Test: make
Change-Id: I177f4cfd42f635aaf096107af8309d1a82ed41c0
Merged-In: I8b91881dfaf507c0d852d56ebbb53ff0987e5a34
2017-04-13 15:16:27 -07:00
Ningyuan Wang
eb88c40014 Merge "wifi(interface): Add links to APF docs" into oc-dev 2017-04-13 22:15:44 +00:00
Andreas Huber
e6e54801c1 Changed the naming scheme for Treble java libraries (both static and dynamic)
android.hardware.foo@1.0-java => android.hardware.foo-V1.0-java

Bug: 37207894
Test: make
Change-Id: I8b91881dfaf507c0d852d56ebbb53ff0987e5a34
2017-04-13 14:28:05 -07:00
Ningyuan Wang
38dda5b3ea Merge "Add VTS tests for wps related APIs in ISupplicantIface" into oc-dev am: e70bffdf3c
am: 87b019933a

Change-Id: I386791b040e40a45f0c75fa4958508af6f843297
2017-04-13 20:55:33 +00:00
Ningyuan Wang
2972c5f57e Add VTS tests for Wfd
This covers the following APIs by adding tests to
ISupplicantP2pIface:
ISupplicantP2pIface::enableWfd(),
ISupplicantP2pIface::setWfdDeviceInfo()

Bug: 33457575
Test: VTS tests pass

Change-Id: I52c156edf32c58b6fb6248d1b396d0437feebbfe
2017-04-13 13:24:54 -07:00
Ningyuan Wang
6dc07818bc Add VTS tests for Bonjour and Upnp service
This covers the following APIs by adding tests to
ISupplicantP2pIface:
ISupplicantP2pIface::addBonjourService(),
ISupplicantP2pIface::removeBonjourService(),
ISupplicantP2pIface::addUpnpService(),
ISupplicantP2pIface::removeUpnpService()

Bug: 33457575
Test: VTS tests pass

Change-Id: I9fb9a9243a40c2309e549775acabbf90ac9b31da
2017-04-13 13:22:00 -07:00
Ningyuan Wang
87b019933a Merge "Add VTS tests for wps related APIs in ISupplicantIface" into oc-dev
am: e70bffdf3c

Change-Id: Iac54dddd4d85e4b831d4b39b92a6f329b5c10203
2017-04-13 20:18:39 +00:00
Ningyuan Wang
bc3533d0dd Merge "Add VTS test for ISupplicantP2pIface::removeGroup()" into oc-dev am: 61d3d5ee85
am: 844e8de19d

Change-Id: I39479cbc8e086ddfbd6d9cab68871534ba69ed29
2017-04-13 19:01:35 +00:00
Ningyuan Wang
862a82d774 Merge "Add more VTS tests for SupplicantStaIface" into oc-dev am: ce01460a15
am: 8e07b9dbc9

Change-Id: I230fb2beb9a0a1847bb153365174c2b5ef9e9c15
2017-04-13 19:01:24 +00:00
Ningyuan Wang
844e8de19d Merge "Add VTS test for ISupplicantP2pIface::removeGroup()" into oc-dev
am: 61d3d5ee85

Change-Id: I7af8e8c6a63bf04cded9e1710462e0a2138094d1
2017-04-13 18:48:10 +00:00
Ningyuan Wang
8e07b9dbc9 Merge "Add more VTS tests for SupplicantStaIface" into oc-dev
am: ce01460a15

Change-Id: I3964b85ec1ad1d2797d1e8ca66b3951351e570ab
2017-04-13 18:47:59 +00:00
Ningyuan Wang
37e8742966 Add VTS tests for wps related APIs in ISupplicantIface
This covers the following APIs by adding tests to
ISupplicantStaIface and ISupplicantP2pIface:
ISupplicantIface::setWpsDeviceName(),
ISupplicantIface::setWpsDeviceType(),
ISupplicantIface::setWpsManufacturer(),
ISupplicantIface::setWpsModelName(),
ISupplicantIface::setWpsModelNumber(),
ISupplicantIface::setWpsSerialNumber(),
ISupplicantIface::setWpsConfigMethods()

Bug: 33457575
Test: VTS tests pass

Change-Id: I0adf6b81ed6da8b1dead9dfa09c778acf4f03a8c
2017-04-13 11:20:10 -07:00
TreeHugger Robot
61d3d5ee85 Merge "Add VTS test for ISupplicantP2pIface::removeGroup()" into oc-dev 2017-04-13 18:17:05 +00:00
TreeHugger Robot
ce01460a15 Merge "Add more VTS tests for SupplicantStaIface" into oc-dev 2017-04-13 18:16:28 +00:00
Roshan Pius
c788891d5b wifi(interface): Add links to APF docs
Bug: 32119512
Test: Compiles
Change-Id: Iadb68a2a649b120b607735e4d88617b11740832f
2017-04-13 10:28:50 -07:00
Ningyuan Wang
680018ba5b Add VTS test for ISupplicantP2pIface::removeGroup()
Bug: 33457575
Test: VTS tests pass
Change-Id: Ibb752d92ba1ba35475e1aec9d82c27c6b4b0c84e
2017-04-12 19:48:30 -07:00
Sohani Rao
69d5025e27 Add Error callback from Offload HAL
Error callback to report errors in Offload HAL service. Included VTS
tests to verify these callbacks are invoked.

Bug: 32842314
Test: Unit tests
Change-Id: I389b28b6ed5db7782ce6425beae67f5bdc2cf4aa
2017-04-12 18:52:25 -07:00
Steven Moreland
17f0c0dde7 Merge changes from topic 'hidl-vendor-available' into oc-dev
* changes:
  Update makefiles (2/2).
  Update makefiles.
2017-04-12 22:13:58 +00:00
Ningyuan Wang
0184852f9d Merge "Add more VTS tests for ISupplicantP2pIface" into oc-dev am: 2d76d8670a
am: 2cb8be5b54

Change-Id: I3f26999e891ec572743b7311e9edcfea44e160d5
2017-04-12 19:05:59 +00:00
Ningyuan Wang
2cb8be5b54 Merge "Add more VTS tests for ISupplicantP2pIface" into oc-dev
am: 2d76d8670a

Change-Id: I2b846253ef012589b32895921cd09e19692e3f8c
2017-04-12 19:01:04 +00:00
TreeHugger Robot
2d76d8670a Merge "Add more VTS tests for ISupplicantP2pIface" into oc-dev 2017-04-12 18:52:18 +00:00
Ningyuan Wang
1735bfbb26 Merge "Add more VTS tests for ISupplicantNetwork" into oc-dev am: 7147f8f57f
am: 563ceeeafa

Change-Id: Ic5a5ec8c3a2e749d33da498253da407176a735b7
2017-04-12 18:03:44 +00:00
Steven Moreland
7e5b96c07f Merge "Update makefiles." am: bbf39eb0b9 am: 3334081377 am: 5306d88cad
am: 8cc75b051e

Change-Id: I249729c9b76c8433eaea0daa0090f8de09c9f46d
2017-04-12 18:03:06 +00:00
Ningyuan Wang
563ceeeafa Merge "Add more VTS tests for ISupplicantNetwork" into oc-dev
am: 7147f8f57f

Change-Id: Id075f6cfdcae31a450fa1d098530fd7b007add42
2017-04-12 17:33:04 +00:00
Steven Moreland
8cc75b051e Merge "Update makefiles." am: bbf39eb0b9 am: 3334081377
am: 5306d88cad

Change-Id: Ie1ed999a4a11ea9767d09fca591c80db91102daf
2017-04-12 17:26:03 +00:00
TreeHugger Robot
7147f8f57f Merge "Add more VTS tests for ISupplicantNetwork" into oc-dev 2017-04-12 17:04:25 +00:00
Ningyuan Wang
2b871f07bc Merge "Fix VTS test for SupplicantStaNetwork::setGetEapPhase2Method()" into oc-dev am: 3d56bdfb2e
am: b3782bab33

Change-Id: Idfddc917bbcb62c4f40513d018fb18f2e6aed618
2017-04-12 09:33:31 +00:00
Ningyuan Wang
2d1e38e754 Merge "Add VTS tests for ISupplicantIface" into oc-dev am: 4629846e68
am: 6efb54fc25

Change-Id: I95013972cc30dbcca8132343a2a01cbbe6cae60c
2017-04-12 09:33:20 +00:00
Ningyuan Wang
b3782bab33 Merge "Fix VTS test for SupplicantStaNetwork::setGetEapPhase2Method()" into oc-dev
am: 3d56bdfb2e

Change-Id: I3248190aaf9c394e5279b975e882bbb9e8f70810
2017-04-12 09:22:30 +00:00
Ningyuan Wang
6efb54fc25 Merge "Add VTS tests for ISupplicantIface" into oc-dev
am: 4629846e68

Change-Id: I943342d624af77c266ac36562c8f252f76b0adf5
2017-04-12 09:22:19 +00:00
TreeHugger Robot
3d56bdfb2e Merge "Fix VTS test for SupplicantStaNetwork::setGetEapPhase2Method()" into oc-dev 2017-04-12 09:17:08 +00:00
TreeHugger Robot
4629846e68 Merge "Add VTS tests for ISupplicantIface" into oc-dev 2017-04-12 09:14:29 +00:00
Ningyuan Wang
f2310dc93e Merge "Add more VTS tests for ISupplicantNetwork" into oc-dev am: f2c858ba94
am: ba374d543d

Change-Id: Ic9ac6e722a6c71729933e0cc9d583daa1182fe84
2017-04-12 05:12:32 +00:00
Ningyuan Wang
ba374d543d Merge "Add more VTS tests for ISupplicantNetwork" into oc-dev
am: f2c858ba94

Change-Id: Iaceed63e1bb4c1a2f9d6a41e5ed4b799e95ccc3e
2017-04-12 04:57:16 +00:00
TreeHugger Robot
f2c858ba94 Merge "Add more VTS tests for ISupplicantNetwork" into oc-dev 2017-04-12 04:45:48 +00:00
Ningyuan Wang
aa9b37d26b Add more VTS tests for ISupplicantNetwork
This covers the following APIs by adding tests to
ISupplicantStaNetwork:
ISupplicantStaNetwork::setPsk(),
ISupplicantStaNetwork::getPsk(),
ISupplicantStaNetwork::setEapSubjectMatch(),
ISupplicantStaNetwork::getEapSubjectMatch(),
ISupplicantStaNetwork::setUpdateIdentifier,
ISupplicantStaNetwork::SetProactiveKeyCaching
ISupplicantStaNetwork::SendNetworkEapSimUmtsAutsResponse,
ISupplicantStaNetwork::SendNetworkEapSimGsmAuthFailure,
ISupplicantStaNetwork::SendNetworkEapSimUmtsAuthFailure,
ISupplicantStaNetwork::GetWpsNfcConfigurationToken

Bug: 33457575
Test: VTS tests pass

Change-Id: I7d990471aadc46e7d553f2179d6d234530cb1df6
2017-04-11 16:50:40 -07:00
Steven Moreland
0dd5ba23fb Update makefiles.
Test: pass
Change-Id: I5cf42c8ff1e11207394e4852ba0bd03e4e3b7d2e
2017-04-11 16:41:07 -07:00
Ningyuan Wang
7a5a185dc6 Add more VTS tests for SupplicantStaIface
This covers the following APIs by adding tests to
ISupplicantStaIface:
ISupplicantStaIface::setExternalSim(),
ISupplicantStaIface::addExtRadioWork(),
ISupplicantStaIface::removeExtRadioWork()

Bug: 33457575
Test: VTS tests pass
Change-Id: Ie252ecf8e6e0cdc9d669a5fec18e076dc2d03eba
2017-04-11 16:39:38 -07:00
Ningyuan Wang
cd587bb6e4 Merge "Fix VTS test for SupplicantP2pIface::stopFind()" into oc-dev am: aa3e01f871
am: b6a44a50d9

Change-Id: I9a4a1ce3f2971bed12e6a7af3d4949553741863a
2017-04-11 23:37:59 +00:00
Ningyuan Wang
b6a44a50d9 Merge "Fix VTS test for SupplicantP2pIface::stopFind()" into oc-dev
am: aa3e01f871

Change-Id: I33161dba384d3dec981f9ef65a53fa18adb3f55a
2017-04-11 23:28:11 +00:00
TreeHugger Robot
aa3e01f871 Merge "Fix VTS test for SupplicantP2pIface::stopFind()" into oc-dev 2017-04-11 23:16:55 +00:00
Ningyuan Wang
e52e8804a8 Add more VTS tests for ISupplicantP2pIface
This covers the following APIs by adding tests to
ISupplicantP2pIface:
ISupplicantP2pIface::SetGroupIdle(),
ISupplicantP2pIface::SetPowerSave()

Bug: 33457575
Test: VTS tests pass
Change-Id: I8291735e74cf88c0e1ee4b5297b39aa37c33d17c
2017-04-11 16:01:15 -07:00
Ningyuan Wang
40453ea85c Merge "Copy wifi_hidl_call_util.h for supplicant VTS test" into oc-dev am: 4ebd10a29a
am: ecf5fdc03f

Change-Id: Idea4e77431430635743af0ad538356593245595e
2017-04-11 21:33:03 +00:00
Ningyuan Wang
ecf5fdc03f Merge "Copy wifi_hidl_call_util.h for supplicant VTS test" into oc-dev
am: 4ebd10a29a

Change-Id: I1eac40f7e73ff6c9ea97f64c70ac89a162cd32fe
2017-04-11 21:28:33 +00:00
Ningyuan Wang
4ebd10a29a Merge "Copy wifi_hidl_call_util.h for supplicant VTS test" into oc-dev 2017-04-11 21:20:15 +00:00
Ningyuan Wang
e97b2be0da Add more VTS tests for ISupplicantNetwork
This covers the following APIs by adding tests to
ISupplicantStaNetwork:
ISupplicantNetwork::getInterfaceName(),
ISupplicantNetwork::getType()

Bug: 33457575
Test: VTS tests pass
Change-Id: I9a24195cefefcc23b7603ff33b66a497eba07148
2017-04-11 13:39:02 -07:00
Ningyuan Wang
4833b06f8b Add VTS tests for ISupplicantIface
This covers the following APIs by adding tests to both
ISupplicantStaIface and ISupplicantP2pIface:
ISupplicantIface::getName(),
ISupplicantIface::getType()

Bug: 33457575
Test: VTS tests pass

Change-Id: Ibbc4be2e367fc6f179005696724cccbcca58d10f
2017-04-11 13:20:46 -07:00
Ningyuan Wang
dd05603f0f Copy wifi_hidl_call_util.h for supplicant VTS test
This copies wifi_hidl_call_util.h to supplicant cts directory
so supplicant vts tests can use this to simplify code.

Bug: 33457575
Test: compile, manual test
Change-Id: I696475062d04d54fafae5c3323818ce1d1ff7d9d
2017-04-11 12:56:23 -07:00
Steven Moreland
b2799c370f Update makefiles.
Test: pass
Change-Id: I5cf42c8ff1e11207394e4852ba0bd03e4e3b7d2e
2017-04-11 09:57:40 -07:00
Ningyuan Wang
271f16e6f7 Fix VTS test for SupplicantStaNetwork::setGetEapPhase2Method()
EAP method needs to be set to construct the eap phase 2 method string.

Bug: 37220169
Test: vts tests pass
Change-Id: Ie69aaac0826d4bde784f864631a718242dd5af2a
2017-04-10 20:44:18 -07:00
Ningyuan Wang
6504cb2eb9 Fix VTS test for SupplicantP2pIface::stopFind()
stopFind() returns SUCCESS even when there is no ongoing
find() operation.

Bug: 37220169
Test: vts tests pass
Change-Id: Ia3f3b4e0c4e7fb7263c1bcbfda1a40b6e5f1cba2
2017-04-10 20:15:31 -07:00
Peter Qiu
b137fc8ce0 wifi: add VTS tests for IWifiApIface am: 2c5d412af2
am: df3973dccb

Change-Id: Iebbc189fdae3d7ac55d556b54ceed5ef968ad0c3
2017-04-11 01:29:21 +00:00
Peter Qiu
df3973dccb wifi: add VTS tests for IWifiApIface
am: 2c5d412af2

Change-Id: Ib00281f3408facb6bfac7e71b0ab0160ad10551f
2017-04-11 01:11:17 +00:00
Peter Qiu
2c5d412af2 wifi: add VTS tests for IWifiApIface
Bug: 32022435
Bug: 36813739
Test: run VtsHalWifiV1_0Target test
Change-Id: I31db3b1bfe5deed5691e0d342762298b4b0d3620
2017-04-10 15:45:31 -07:00
Peter Qiu
bf29d5c8f0 Merge "wifi: add VTS tests for IWifiStaIface" into oc-dev am: eeee2b1d50
am: 98d95834ba

Change-Id: I336114c6c7063756cf96abdf5d63561bc9171b06
2017-04-10 21:04:41 +00:00
Peter Qiu
98d95834ba Merge "wifi: add VTS tests for IWifiStaIface" into oc-dev
am: eeee2b1d50

Change-Id: I57efb271423cf57e7bb1976ebc976e067bc8df25
2017-04-10 20:41:16 +00:00
TreeHugger Robot
eeee2b1d50 Merge "wifi: add VTS tests for IWifiStaIface" into oc-dev 2017-04-10 20:20:34 +00:00
Peter Qiu
32a736f8c8 wifi: add VTS tests for IWifiStaIface
This will cover all APIs except:
- startBackgroundScan
- stopBackgroundScan
- startSendingKeepAlivePackets
- stopSendingKeepAlivePackets

Bug: 32022435
Bug: 36813739
Test: run VtsHalWifiV1_0Target test
Change-Id: I71a1a97e4b0f1145657b249f3eb20305f810962b
2017-04-10 18:22:00 +00:00
Etan Cohen
67c0c0045a Merge "[WIFI][VTS] Don't call RequestDriverDebugDump API if not supported" into oc-dev am: e13455b32a
am: a130c0d3f2

Change-Id: I8d275f785bf986850363ffbe5dbcf9a3793f7275
2017-04-08 04:25:45 +00:00
Etan Cohen
fe38d361a9 Merge "[AWARE][VTS] Update WifiChipHidlTest NAN tests" into oc-dev am: 24e1601315
am: 490ea3f105

Change-Id: I99d7e734070217f324f7bf1377a33d0af34bf19a
2017-04-08 04:25:35 +00:00
Etan Cohen
a130c0d3f2 Merge "[WIFI][VTS] Don't call RequestDriverDebugDump API if not supported" into oc-dev
am: e13455b32a

Change-Id: Id6f15287394bb2531316add0a4111f70d0e736d6
2017-04-08 04:22:08 +00:00
Etan Cohen
490ea3f105 Merge "[AWARE][VTS] Update WifiChipHidlTest NAN tests" into oc-dev
am: 24e1601315

Change-Id: I5c763c6d5c894f9c1ff2e637859ea24fd1f0835f
2017-04-08 04:21:57 +00:00
Etan Cohen
7f326f9f96 [WIFI][VTS] Don't call RequestDriverDebugDump API if not supported
The RequestDriverDebugDump API has a capability bit indicating if
supported on device. Calling if not supported should additionally
return ERROR_NOT_SUPPORTED - but does not today. This is arguably
not a valid issue - should not call API if already known not to be
supported.

Remove test for this (questionable) condition until decide on proper
semantics.

Bug: 36562856
Test: test passes
Change-Id: Ic8a1c8b5f77a1b1767c0efc9735731084dfde7cc
2017-04-07 13:17:06 -07:00
Etan Cohen
4b132a9d97 [AWARE][VTS] Update WifiChipHidlTest NAN tests
NAN is not enabled on O - update all WifiChip NAN tests to expect
failure.

These tests will start failing again on any platforms/code where
NAN is enabled. Will fix more comprehensively at that point.

Bug: 36562856
Test: build + run vts
Change-Id: I0eaf7934d327fb91bff59dd33bd4a8069888c967
2017-04-07 10:41:52 -07:00
Etan Cohen
6fe38e9a72 Merge "[AWARE] Legacy HAL update: reduce host wakeup" am: 6ae199efa4 am: c6e4705e9d am: 7f4335b30a
am: 92c0d5140c

Change-Id: I6a9de5d52a7e3af4721593bad8b285b845ad700a
2017-04-05 22:35:07 +00:00
Etan Cohen
92c0d5140c Merge "[AWARE] Legacy HAL update: reduce host wakeup" am: 6ae199efa4 am: c6e4705e9d
am: 7f4335b30a

Change-Id: I90570e1f80662d0557eb1f30623e609c5bed8716
2017-04-05 22:22:35 +00:00
Roshan Pius
8a2ce1382c Merge "wifi(implementation): Print out the cb object on failure" into oc-dev am: 75e2bf0469
am: ef8521d6a0

Change-Id: Iba99894164a6b5ff4c8d7a6813e20b280b85e835
2017-04-05 20:07:51 +00:00
Roshan Pius
3797e188f8 wifi(implementation): Print out the cb object on failure
This should help us figure out if there are multiple callback objects in
wifi_chip when we see the IPC storm from
onDebugRingBufferDataAvailable().

Bug: 36599054
Test:  ACTS wifi tests.
Change-Id: I8c67032c59ecdd45824e131b59d890ce6c94fe25
2017-04-05 11:11:19 -07:00
Roshan Pius
82af4e193d wifi(implementation): Ignore IE parsing error am: 4094107835
am: 14965f9566

Change-Id: Ib12736be647fe38390a09e9e1c11f27d77d24eaa
2017-04-05 17:52:16 +00:00
Roshan Pius
208d65c87f wifi(implementation): Return const-ref for callback set am: cab37be578
am: 397f0eabd3

Change-Id: I86b1e265a9604faf110d439b4c5e666ca157349f
2017-04-05 17:52:04 +00:00
Roshan Pius
4094107835 wifi(implementation): Ignore IE parsing error
The IE blob may not always be fully formed in gscan full scan results.
So, log errors when we hit a parsing error and return the IE elements we
could parse so far.

Bug: 36455164
Test: ACTS wifi gscan tests.
Change-Id: I804937ea5e69f51696aaabf3fe3f53850c145ad3
2017-04-05 17:41:57 +00:00
Roshan Pius
cab37be578 wifi(implementation): Return const-ref for callback set
Bug: 36792787
Test: Compiles
Change-Id: Ibd19c6f41801d0fa1ea7dc9c3334213865d649ec
2017-04-05 17:41:39 +00:00
Etan Cohen
20925b0f56 [AWARE] Legacy HAL update: reduce host wakeup
Legacy HAL update to add indications when a solicited publisher
receives a match. Not used in current HAL. However, also added a
control bit to turn off host notification which is now enabled.

Bug: 35195773
Test: integration (sl4a) tests
Change-Id: I8ff378abaae11d4feaa42a9901abb1b48069dc4f
2017-04-04 22:13:36 +00:00
Sohani Rao
55adb1b68c VTS for Wifi Offload HAL
Basic VTS test suite for Wifi Offload HAL
Cherry pick from 00dd5147c4f9a4cdff941b2eed12e1d5844bef86
Bug: 32842314
Bug: 36865676
Change-Id: I702b9d90164f21104a915003b9496fbf4dd969c0
Test: adb shell /data/VtsHalWifiOffloadV1_0TargetTest
2017-04-04 14:26:24 -07:00
Sohani Rao
b3c3f8c1df Offload HAL update makefiles
Update make files to build Offload HAL binary

Bug: 32842314
Test: Unit tests, check if Wifi Offload HAL service is running
Change-Id: I5da649247fc234fc2555453cf1eac83a14ae496e
2017-04-04 14:26:10 -07:00
Sohani Rao
63f17c0449 Define Wifi Offload HAL HIDL interface
This interface defines the interaction of the Wifi framework with the
new HAL module that will offload disconnected PNO scans when screen is
off. For details of the overall design, refer to this document:
https://docs.google.com/a/google.com/document/d/13OmqquTnRXTRnyWbtfpc1Ib7YY411EwjNW3njzJ5KyM/edit?usp=sharing
Cherry pick from 7ac4a32e6eca71fcf1a86991654af747d38928ad
Bug: 32842314
Change-Id: I01e1952458d58b9233f18fc0450491fc7c48e6e1
Test: Unit tests, Mannual Wifi turn on
2017-04-04 14:25:58 -07:00
Etan Cohen
ee1394f642 Merge "[AWARE] Create true translations between legacy and hidl enums" am: 24ff2036ce am: 945fbf8434
am: e78000cffa

Change-Id: I17e82ff6f2951a2709a63cdfd3f62d23b9f24d13
2017-04-04 17:57:22 +00:00
Etan Cohen
67d378d69e [AWARE] Create true translations between legacy and hidl enums
Replace implicits translations between legacy and hidl enums (using
casts) with explicit translations.

(cherry-pick of commit 284511779c)

Bug: 35767620
Test: integration (sl4a) tests
Merged-In: I4ae4cd691226ce29bc0e92f9890fbb343a064505
Change-Id: I4ae4cd691226ce29bc0e92f9890fbb343a064505
2017-04-04 09:21:25 -07:00
Etan Cohen
284511779c [AWARE] Create true translations between legacy and hidl enums
Replace implicits translations between legacy and hidl enums (using
casts) with explicit translations.

Bug: 35767620
Test: integration (sl4a) tests
Change-Id: I4ae4cd691226ce29bc0e92f9890fbb343a064505
2017-04-03 16:12:46 -07:00
Roshan Pius
e3509d455b supplicant(vts): Compilation fixes
Fixed couple of compilation failures from .hal changes and made change
to stop/start framework during tests.

Bug: 33457575
Test: mmma -j32 hardware/interfaces/wifi/supplicant/1.0/vts/functional
Change-Id: I1bac68bd71e92b025acdebd0fef8834b826bcfcb
2017-03-30 14:59:18 -07:00
Andreas Huber
675ae49ab1 Convert all comments into "doxygen-ready" comments.
Bug: 36453077
Test: make
Change-Id: Ic77394d4d2e1ccedba3a28230d870c5d6108bd40
2017-03-28 16:14:43 -07:00
Andreas Huber
3e4acb8b3a Convert all comments into "doxygen-ready" comments.
Bug: 36453077
Test: make
Change-Id: Ic77394d4d2e1ccedba3a28230d870c5d6108bd40
2017-03-28 16:10:42 -07:00
Roshan Pius
34e4bc4dd2 wifi(implementation): Stop loading vendor library statically
libwifi-hal statically imports the vendor implementation of the legacy
HAL. Since the HIDL daemon is dynamically linking against libwif-hal,
there is no need for it to statically import the vendor implementation
library (one pointed to by: $LIBWIFI-HAL variable).

Bug: 36169790
Test: Compiles & device is able to connect to wifi networks with the
change.

Change-Id: Ie44b58328f9bdde011ba6d4a4d26f786c2d097e7
2017-03-27 22:14:04 +00:00
Steven Moreland
e90c31f125 Update makefiles.
Test: pass
Change-Id: I925baccbe51a32b7b7f3f66cf2918d017ee6b039
2017-03-24 21:50:45 -07:00
Etan Cohen
2d523c012e [WIFI] Restore initialization code
Restore the usage of WIFI-specific main function. The main
function was inadvertantly disabled by moving it into a static
library - which caused the default main to be used.

Need a custom main since need to stop WIFI before tests start
to enforce a clean starting point.

Bug: 35276551
Test: confirms custom main routine is called
Change-Id: I978827bc0f0f16d9ca4f159fbf42d0bc53f5df99
2017-03-23 17:37:42 -07:00
Etan Cohen
9e71d7d44f Merge "[AWARE] Add Passphrase data-path security" 2017-03-23 00:10:34 +00:00
Etan Cohen
c58619e8d9 [AWARE] Add Passphrase data-path security
Add mechanism to configure data-path security using Passphrase
(as an alternative to PMK).

Bug: 35866810
Test: integration (sl4a) tests passing.
Change-Id: If7094a44af1996d3caf5b776d492797f14a7be11
2017-03-21 16:49:40 -07:00
Roshan Pius
c314841614 supplicant(interface): Add an event for bssid changes
This is useful in debugging (& collecting metrics) when the active bssid changes.

Bug: 36451639
Test: Compiles & manual tests using the framework changes.
Change-Id: I5676dfb9ec9c13ae900c315eb8dfacb857e70fc1
2017-03-21 10:53:56 -07:00