Commit graph

659 commits

Author SHA1 Message Date
Keun Soo YIM
68ae05dd2d pack VTS cc_test binaries as general-tests
Test: make general-tests
Bug: 120093339
Merged-In: I363450d205868f900e4925ccff1430e2a569f2a4
Change-Id: I363450d205868f900e4925ccff1430e2a569f2a4
2018-12-07 10:49:56 -08:00
Chih-hung Hsieh
593ede93f0 Merge "Fix implicit-fallthrough warnings. DO NOT MERGE." 2018-10-22 20:35:52 +00:00
Chih-Hung Hsieh
ad8557bde8 Allow implicit-fallthrough warnings locally. DO NOT MERGE.
It will be a global error by default.
This change is not needed for goog/master.

Test: make checkbuild
Bug: 112564944
Change-Id: Ie90ad1f59f6922da6cecd4a0ac136b1e42b6d482
Exempt-From-Owner-Approval: do not block on new warnings
2018-10-22 09:44:49 -07:00
Chih-Hung Hsieh
c5def0beeb Fix implicit-fallthrough warnings. DO NOT MERGE.
These changes are not needed in goog/master.

Test: make checkbuild
Bug: 112564944
Change-Id: I4f1727d9b33108d34d314787460aa1d2298ae5b2
2018-10-19 15:29:11 -07:00
Hsin-Yi Chen
770b25abd0 Merge "Fix base class of WifiHidlEnvironment_1_2" into pie-vts-dev
am: a73a8c9b2b

Change-Id: I18081c95710d4d505991628994df7a9ebbdc99df
2018-08-20 11:14:25 -07:00
Hsin-Yi Chen
82179cf468 Fix base class of WifiHidlEnvironment_1_2
WifiHidlEnvironment_1_2 inherits WifiHidlEnvironment so that it stops
Wifi before every test.

Test: run vts -m VtsHalWifiV1_2Target
Bug: 112058501
Change-Id: I73c50351fa486f2ae7749e43a060ff05672c0f65
Merged-In: I73c50351fa486f2ae7749e43a060ff05672c0f65
(cherry picked from commit 4721523a96)
2018-08-13 15:18:50 +08:00
Josh Gao
7715d50e55 Hack around wifi_legacy_hal.h transitive include bug.
Bug: http://b/111617490
Test: treehugger
Change-Id: Id87852f01fa22cbcf34862e5a37d27021a721dfa
(cherry picked from commit 339c3c2f1b)
2018-07-23 16:53:11 -07:00
Etan Cohen
4c5afaaf81 Merge "[AWARE] Developer documentation on HAL usage" into pi-dev
am: 62b35058a3

Change-Id: I21e25709388a574718b2fe7b1046fc341d572c1b
2018-05-21 13:51:10 -07:00
TreeHugger Robot
62b35058a3 Merge "[AWARE] Developer documentation on HAL usage" into pi-dev 2018-05-21 20:43:04 +00:00
Steven Moreland
cbc30e1f58 Merge "Update comments for doc comments." into pi-dev
am: cce4c95c1c

Change-Id: Id691cf973a214ee1d2f62297c13c8c030fc7a8bb
2018-05-18 18:43:45 -07:00
TreeHugger Robot
cce4c95c1c Merge "Update comments for doc comments." into pi-dev 2018-05-19 01:32:44 +00:00
Roshan Pius
3bf427c903 Merge "wifi(implementation) Modify OWNERS" into pi-dev
am: fdcc4a0f2c

Change-Id: I28e060522182f420672a57fffa671f6c5d60411f
2018-05-18 18:19:57 -07:00
Roshan Pius
1701b7a842 wifi(implementation) Modify OWNERS
Bug: 73403966
Change-Id: I3cedb25e43a9adaabcf7bc629f9ac985f06cdb8b
2018-05-19 01:09:04 +00:00
Etan Cohen
a67fdff49b [AWARE] Developer documentation on HAL usage
Add documentation specifying which HAL APIs are used by the
framework.

Bug: 79431608
Test: N/A
Change-Id: Ie5b1da7b9a613d17df61351b067819a4d765a762
2018-05-18 10:42:19 -07:00
Steven Moreland
4ee4582230 Update comments for doc comments.
Doc comments look like "/** ... */" and they
can only be in certain places.

Bug: 79865343
Test: m
Change-Id: Ic15c08ff7dc6e4f9827c1dbe7f7236c11a572ec1
2018-05-18 10:10:32 -07:00
Nick James
0313f937de Merge "Add feature flag to disable wifi AP on the watch." into pi-dev
am: c571b68074

Change-Id: I0d41fcc51b18a6d247caa323b22eb41b61a03888
2018-05-16 14:53:39 -07:00
Nick
c52e808774 Add feature flag to disable wifi AP on the watch.
Bug: 74074075
Change-Id: I6bd823e63f5cc5292571be4d74ca65bca72709e0
2018-05-11 15:14:50 -07:00
Roshan Pius
06dd684510 Merge "wifi(implementation): Use stub for |read_packet_filter|" into pi-dev
am: 8063dfa9aa

Change-Id: I103d3804aa0f9619c894425a69a2ec752f9477f5
2018-04-24 10:02:11 -07:00
Roshan Pius
d3536bf9ed wifi(implementation): Use stub for |read_packet_filter|
Use the stub to take care of vendors who don't implement the new HAL
functionality.

Note: This is just an internal cleanup to be consistent with other
functions.

Bug: 73804303
Test: Compiles
Change-Id: I393194772f35a3620c5acd4d5c3b5a6d072cd507
2018-04-20 15:47:46 -07:00
Pankaj Kanwar
016b127dc9 Merge "persist ringbuffer to flash when vendor hal stops" into pi-dev
am: ecc6269f3a

Change-Id: I6ec2cc34f61844afef186c99228b506b9c41dd78
2018-04-18 17:57:53 -07:00
Pankaj Kanwar
ecc6269f3a Merge "persist ringbuffer to flash when vendor hal stops" into pi-dev 2018-04-19 00:40:05 +00:00
xshu
37126c9cdb persist ringbuffer to flash when vendor hal stops
Need to write ringbuffer to flash or else the data become lost.
Also added logic to make sure ringbuffer files over the max limit
get deleted.

Bug: 78025947
Test: compile
Manual test:
flash to device
connect to wifi network
toggle wifi off and observe that ringbuffer files are persisted
keep toggling until the number of files get over the max allowed amount
and verified that old files got deleted

Change-Id: I7d6cff81cf5400a79d1c93a1e12e72fd1a766dad
2018-04-16 17:25:07 -07:00
Bernie Innocenti
1e21635f4b Merge "VTS tests for IWifiStaIface@1.2." into pi-dev
am: 4524827699

Change-Id: I7e2927623e21e45ec126a54c2247859561bf10fb
2018-04-15 20:38:54 -07:00
Bernie Innocenti
ac10280ea5 VTS tests for IWifiStaIface@1.2.
Note that the new test is currently disabled because we have no
meaningful way to test wifi interfaces that require the interface to be
in connected state. For the full story, read the TODOs above the test.

Change-Id: Iad7abd1f04a9ac6ca60e675222fbd2a893cb4072
Bug: 71581915
Bug: 73804303
Test: as follows:
    m VtsHalWifiV1_2TargetTest
    adb sync data
    adb shell /data/nativetest64/VtsHalWifiV1_2TargetTest/VtsHalWifiV1_2TargetTest
2018-04-16 11:55:47 +09:00
Etan Cohen
c50787a266 Merge "[AWARE][VTS] Add VTS tests for the Wi-Fi 1.2 Aware HAL" into pi-dev
am: 862d844370

Change-Id: I71b954b196c542426adfda55caf3bbbedadcad07
2018-04-10 20:05:27 -07:00
TreeHugger Robot
862d844370 Merge "[AWARE][VTS] Add VTS tests for the Wi-Fi 1.2 Aware HAL" into pi-dev 2018-04-11 02:15:25 +00:00
Etan Cohen
f648583a64 Merge "[AWARE] Support a mix of 1.0 and 1.2 Callback registration" into pi-dev
am: 484db2fe9f

Change-Id: I4f8ed8cc779d5ad67d8b1e006e4e97155bfcc0c4
2018-04-10 16:19:02 -07:00
Etan Cohen
484db2fe9f Merge "[AWARE] Support a mix of 1.0 and 1.2 Callback registration" into pi-dev 2018-04-10 23:11:38 +00:00
Etan Cohen
1ffc5349b0 [AWARE][VTS] Add VTS tests for the Wi-Fi 1.2 Aware HAL
Add VTS tests for the Wi-Fi 1.2 Aware HAL APIs.

Bug: 71581915
Test: VtsHalWifiNanV1_2TargetTest
Change-Id: I8dffc694193bb1122ae8e2e8110678b24b5c5899
2018-04-10 12:47:29 -07:00
Etan Cohen
44a8bf9806 [AWARE] Support a mix of 1.0 and 1.2 Callback registration
Allow clients to register both 1.0 and 1.2 callback objects. Only
execute the new callbacks for 1.2 callback objects.

Purpose: allow 1.0 VTS tests to run as-is.

Bug: 71581915
Test: atest VtsHalWifiNanV1_0TargetTest
Test: act.py -c <path>/wifi_aware.json -tc ThroughputTest:test_iperf_single_ndp_aware_only_ib
Change-Id: I1e049498a0eaa176a6074c552b1a3c6f23d18fd0
2018-04-10 12:46:53 -07:00
Srinivas Dasari
69ff1d3498 [WIFI][VTS]: Check for the Logger capability Support am: 020374e42b am: 65e9588fd2 am: 2d9b9cb1e5
am: 429bca472e

Change-Id: Ieb07031c422de045bc9e7285f1da91164c11150f
2018-04-10 10:39:21 -07:00
Srinivas Dasari
429bca472e [WIFI][VTS]: Check for the Logger capability Support am: 020374e42b am: 65e9588fd2
am: 2d9b9cb1e5

Change-Id: Ia19aa71fcf9dfe4cc99b8a7102b382b312f1d4fb
2018-04-10 10:25:00 -07:00
Srinivas Dasari
65e9588fd2 [WIFI][VTS]: Check for the Logger capability Support
am: 020374e42b

Change-Id: I23e51b94c625fff660cac05ea23386fa398f0f0a
2018-04-10 10:10:48 -07:00
Srinivas Dasari
020374e42b [WIFI][VTS]: Check for the Logger capability Support
Check for WiFi Logger capability Support and do not
assert if it returns ERROR_NOT_SUPPORTED.

Bug: 69094019
Test: VTS tests for module VtsHalWifiV1_0TargetTest.
(cherry-picked from 2b7b24b245a6099fdb127d38a99d7608a6c5bc91)

Change-Id: Id8eb171937b66221a5c9303e377310db54202f71
2018-04-10 09:42:30 -07:00
Jong Wook Kim
bd73697cf9 Merge "SetMacAddress in Vendor HAL" into pi-dev
am: 5727901a3a

Change-Id: Ib606874c83c52cb07980958a939f50fcccfbe6c8
2018-03-31 00:04:46 +00:00
TreeHugger Robot
5727901a3a Merge "SetMacAddress in Vendor HAL" into pi-dev 2018-03-30 23:51:42 +00:00
Roshan Pius
e7ec531394 wifi(vts): Skip tests if feature not supported
am: d01fcb402f

Change-Id: Ibdadb2e4dbd03f888782c70603f5bdc3873dbb66
2018-03-28 17:44:02 +00:00
Ahmed ElArabawy
8e9e886bc5 Merge changes from topic "propagate_eap_failure" into pi-dev
am: ef8890b691

Change-Id: Icf2d46c44b5de42a2526d0f8a1b05bc8371573ba
2018-03-28 00:20:44 +00:00
Jong Wook Kim
b9f0ff9fa6 SetMacAddress in Vendor HAL
Add a Wifi HAL interface to set MAC address.

The default implementation is to bring the interface down, change the
MAC address, and then bring the interface back up.

Bug: 74347653
Test: vts, manual testing
Change-Id: Ic740d94ec2fcb37e6743d0f3e967f3f4b6afb57d
2018-03-27 15:37:30 -07:00
Ahmed ElArabawy
c173cbb5cd WiFi: Add vts tests for ISupplicantStaIface 1.1
This Commit adds the tests for the ISupplicantStaIface for V1.1

Bug: 64612561
Test: Manual

Change-Id: Id5608d0f985004a22954f368ac0fa19886f7421d
Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
2018-03-27 11:12:42 -07:00
Ahmed ElArabawy
8b837b313b WiFi: supplicant HAL: Modify onEapFailure Callback
This commit modifies the onEapFailure call back to include the error code.
This enables the framework to react on the different errors reported by
the EAP methods.

Bug: 64612561
Test: Manual

Change-Id: I793b61b898df63f07dc2e40798a6d6761d8e259d
Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
2018-03-27 11:12:42 -07:00
Bernie Innocenti
d18aadfe43 Merge "Wire readApfPacketFilterData() to the legacy hal" into pi-dev
am: 28986e52e7

Change-Id: I9856ecaf4b9dfd939139022983d1da59bba6c5f8
2018-03-27 07:46:06 +00:00
Yuexi Ma
8ef11932b9 resolve merge conflicts of 07ff5f4376 to pi-dev-plus-aosp
Test: I solemnly swear I tested this conflict resolution.
Change-Id: Id636c3171bffffeaf7a30a7912c38796e5a4c780
2018-03-26 16:05:07 -07:00
Yuexi Ma
fa7f2bc917 Merge "Update vts test module bp files to use VtsHalTargetTestDefaults" 2018-03-26 21:57:41 +00:00
Tom Cherry
964fbf37a9 Add capabilities to wifi HAL service
Bug: 74554159
Test: wifi works on walleye
Merged-In: Ia6784e78a7faec914cbbecbe84800c4fbe46c00b
Change-Id: I8deb730bbd9cb473d68ffc696b31031abf617eec
2018-03-26 16:09:13 +00:00
Bernie Innocenti
7e6f71ad92 Wire readApfPacketFilterData() to the legacy hal
Bug: 73804303
Bug: 36221302
Change-Id: If5d9d3afd40758aea98832e4b350216f496fc3bd
Test: built and flashed, verified boot
(cherry picked from commit efbb9c3f59)
2018-03-26 14:07:26 +09:00
Tom Cherry
a8617fa6c5 Merge "Add capabilities to wifi HAL service" into pi-dev 2018-03-23 19:59:47 +00:00
Tom Cherry
a46c622822 Add capabilities to wifi HAL service
Bug: 74554159
Test: wifi works on walleye
Change-Id: Ia6784e78a7faec914cbbecbe84800c4fbe46c00b
2018-03-23 19:46:51 +00:00
Yuexi Ma
d56539e62a Update vts test module bp files to use VtsHalTargetTestDefaults
Test: make vts
Change-Id: I3c0dab52dc894e1a1fc9b99be1351ed7bd380502
Merged-In: I3c0dab52dc894e1a1fc9b99be1351ed7bd380502
2018-03-22 23:36:10 +00:00
Roshan Pius
d01fcb402f wifi(vts): Skip tests if feature not supported
Bug: 69338713
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_0Target -l
INFO`
Change-Id: If70050811ce87f8eff32696ecdd4d3f49646bad0
(cherry picked from commit fbe5aff5e4)
2018-03-21 20:30:22 +00:00