Commit graph

102 commits

Author SHA1 Message Date
Dan Shi
3a8a650c61 Rename vts-core to vts
Bug: 151896491
Test: local build
Exempt-From-Owner-Approval: This CL update suite name vts-core to vts as
the suite name is updated. This CL won't change test logic or behavior.

Change-Id: I562b4dc50765e953800a814a8fd84a01c1b9352b
2020-04-07 18:03:49 +00:00
Dan Shi
86b285465f Remove dependency on VtsHalHidlTargetTestEnvBase
Bug: 143892896
Test: atest VtsHalWifiApV1_0TargetTest \
  VtsHalWifiNanV1_0TargetTest \
  VtsHalWifiV1_0TargetTest \
  VtsHalWifiV1_1TargetTest \
  VtsHalWifiV1_2TargetTest \
  VtsHalWifiNanV1_2TargetTest \
  VtsHalWifiV1_3TargetTest \
  VtsHalWifiApV1_4TargetTest \
  VtsHalWifiHostapdV1_0TargetTest \
  VtsHalWifiHostapdV1_1TargetTest \
  VtsHalWifiHostapdV1_2TargetTest \
  VtsHalWifiSupplicantV1_0TargetTest \
  VtsHalWifiSupplicantP2pV1_0TargetTest \
  VtsHalWifiSupplicantV1_1TargetTest \
  VtsHalWifiSupplicantV1_2TargetTest \
  VtsHalWifiSupplicantP2pV1_2TargetTest

Change-Id: I8a18f18f3aaa497642f380fea43517ec14554993
2020-03-31 11:34:32 -07:00
Nate(Qiang) Jiang
a075122fca Fix nan Vts test
count shoule be initialize to 0 before test.

Bug: 149709834
Test: atest VtsHalWifiApV1_4TargetTest
Change-Id: I47c43571bc3ff91f389a4c9f41e050cc13c104a2
2020-02-19 17:34:29 -08:00
Ahmed ElArabawy
1845b8e555 Wifi: Improve documentation for some hidl APIs
This commit improves some of the comments for the Wifi Hidl APIs.

Bug: 148236141
Test: No test is done
Change-Id: Iff6b191c8b258615ddaacad570b81f0ada968ed4
2020-01-31 17:22:36 -08:00
Ahmed ElArabawy
dcfab61c9b Wifi: Make sure that VTS tests start with a clean state
In current code base, The SetUp() method in wifi VTS tests does not
reset Wifi state. Hence the first Wifi test runs with unspecified state.
Following test cases are not impacted due to that TearDown() takes care
of resetting the Wifi state.

This commit adds the stopWifi() method to the SetUp() so all test cases
start from the same Wifi state.

Bug: 145312303
Test: Run all wifi VTS tests
Test: atest <VTS test module name>
Change-Id: I63d7c0d27f4ceb713dda3804786a199dc2274be5
2020-01-08 03:51:43 +00:00
Ahmed ElArabawy
436ab20ef6 Wifi: Fix VTS tests in VtsHalWifiNanV1_2TargetTest
This commit fixes VTS tests in VtsHalWifiNanV1_2TargetTest resulting
from upgrading APIs and stopping support for old APIs.

Bug: 146989939
Test: atest VtsHalWifiNanV1_2TargetTest
Change-Id: Ibc71cdb3ead7fb346ac62ebfd132f82ee3d81eeb
2019-12-29 23:44:25 -08:00
Ahmed ElArabawy
5a3e81c7fb Fix vts test VtsHalWifiV1_2TargetTest
VTS test for WifiChipHidlTest#registerEventCallback_1_2 was failing
on the default implementation of the 1.4 HAL. This is because
registerEventCallback_1_2() is no longer supported due to the upgrade
to registerEventCallback_1_4().

This commit fixes this VTS test error by allowing ERROR_NOT_SUPPORTED
as a valid test output.

Bug: 146020950
Test: atest VtsHalWifiV1_2TargetTest

Change-Id: Ia58b0dad5ed753c22d620b0fad6904d634e01e72
2019-12-29 21:56:13 -08:00
Dan Shi
3550f9a90c Merge "Convert VtsHalWifiV1_*Target to be parameterized test" 2019-11-18 17:06:21 +00:00
Dan Shi
336fe46ae5 Convert VtsHalWifiV1_*Target to be parameterized test
Bug: 142397658
Bug: 142304083
Test: atest \
  VtsHalWifiV1_0TargetTest \
  VtsHalWifiNanV1_0TargetTest \
  VtsHalWifiApV1_0TargetTest \
  VtsHalWifiV1_1TargetTest \
  VtsHalWifiV1_2TargetTest \
  VtsHalWifiNanV1_2TargetTest \
  VtsHalWifiV1_3TargetTest \
  VtsHalWifiApV1_4TargetTest

Change-Id: I05bf1c4cff378a99c015ac514eefb49debb8b1af
2019-11-14 09:27:55 -08:00
Roshan Pius
16c43fb4f8 wifi(vts): Set the iface up as a part of setup
Attempts to fix a VTS test failure reported by OEM's on devices
supporting concurrent AP iface.

Bug: 143096362
Test: make vts && vts-tradefed run commandAndExit vts --module VtsHalWifiV1_0Host
Test: Will need to ask OEM to verify the fix.
Change-Id: I0958d720411258761f4ac5bcccc823b06a55d518
2019-11-13 12:33:34 -08:00
Nate Jiang
36e0b2aba9 Merge "[VTS][AWARE]Setting callbacktype type to invalid value before invoking HIDL call" into qt-dev
am: 1289d1fefa

Change-Id: I0aad72e050a780a4050ff53fe8aa7e03ccd56f08
2019-05-29 16:41:19 -07:00
Nate Jiang
18408a93d9 [VTS][AWARE]Setting callbacktype type to invalid value before invoking HIDL call
Avoid race condition between event callback and wait context. Make
callbacktype to invalid before call function to change it.

Test: atest VtsHalWifiNanV1_0TargetTest VtsHalWifiNanV1_2TargetTest
Bug: 133484330
Change-Id: I9211c3e172727f56d0cceaf91b98f8d5b3c7fc7e
2019-05-29 10:41:55 -07:00
Steven Moreland
6d494b2346 Merge "Update hidl makefiles for bpfmt" am: ff0bd741ca
am: 96f40f7b02

Change-Id: Idbf030e4993067bdb8181321bca2de00c9b6f7ef
2019-04-18 14:34:45 -07:00
Steven Moreland
96f40f7b02 Merge "Update hidl makefiles for bpfmt"
am: ff0bd741ca

Change-Id: Icd0e90c12952f2471416986451cce7eebb6856af
2019-04-18 14:21:43 -07:00
Steven Moreland
1ae4615d9f Update hidl makefiles for bpfmt
hidl-generated makefiles are now generated such that bpfmt(file) == file.

Bug: 67417008
Test: enable bpfmt hook
Change-Id: I1f69d292bc23a7cc293a66110cb02d597e1019ad
2019-04-17 09:38:50 -07:00
Elliott Hughes
6d37b594a8 Merge "wifi: use PLOG rather than LOG strerror."
am: fba8a08e6f

Change-Id: Ifdc51d50362da0742cac8b5dcd5272f0be18e803
2019-03-12 08:04:30 -07:00
Elliott Hughes
4db4add8da wifi: use PLOG rather than LOG strerror.
Test: builds
Change-Id: I1a508dbb47fed3a1c1e5166b9b32d33ed0d246fe
2019-03-08 12:42:57 -08:00
Steven Moreland
7f4e21adda Merge "Update makefies: no 'types'" am: 4ee5ec1469 am: bab622f6a6
am: 7224bc9bcf

Change-Id: I434939e0770afa436c532a945542fce30a71ef7d
2019-03-04 16:05:59 -08:00
Steven Moreland
bab622f6a6 Merge "Update makefies: no 'types'"
am: 4ee5ec1469

Change-Id: I803f6d2f37093477a46a50f429cb265e92acd144
2019-03-04 15:08:49 -08:00
Steven Moreland
a878aee9ab Update makefies: no 'types'
Bug: 123976090
Test: N/A
Change-Id: I30fb04c81889b62775e1b764b965fdb0f893de17
2019-03-04 11:27:17 -08:00
Ahmed ElArabawy
aa1e6b02fc Wifi: Fix VTS test backward compatibility
This commit fixes backward compatibility for the vts tests. For devices
supporting IWifiChip@1.3 HAL interface, getCapabilities_1_3() should be
used instead of getCapabilities() in older HAL version vts tests.

Bug: 120912623
Test: VTS tests run successfully for all HAL versions
Test: run vts -m VtsHalWifiV1_0TargetTest
Test: run vts -m VtsHalWifiV1_1TargetTest
Test: run vts -m VtsHalWifiV1_2TargetTest
Test: run vts -m VtsHalWifiV1_3TargetTest
Change-Id: Ife61bbbbdc8f7c0862f511fbe2b76519bec98941
2019-01-02 14:00:34 -08:00
Keun Soo Yim
bfeaa2c507 Merge "pack VTS cc_test binaries as general-tests" am: d6fe421895
am: 4ea1fa9f72

Change-Id: I25d606f401dbf3947fac3ef4c8ae9d71c30cc780
2018-12-12 09:35:15 -08:00
Keun Soo Yim
4ea1fa9f72 Merge "pack VTS cc_test binaries as general-tests"
am: d6fe421895

Change-Id: I2d7b32c18f8eea87f6f03194ab4b859c9238030f
2018-12-12 09:32:10 -08:00
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
Keun Soo YIM
ff84c37bc1 pack VTS cc_test binaries as general-tests
Test: make general-tests
Bug: 120093339
Change-Id: I363450d205868f900e4925ccff1430e2a569f2a4
2018-11-27 16:11:41 -08:00
Chih-Hung Hsieh
a1390d9a3b Fix implicit-fallthrough warnings. DO NOT MERGE.
These changes are not needed in goog/master.

Test: make checkbuild
Bug: 112564944
Change-Id: I4f1727d9b33108d34d314787460aa1d2298ae5b2
(cherry picked from commit c5def0beeb)
Exempt-From-Owner-Approval: do not block on new warnings
2018-10-30 14:13:45 -07: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
Jong Wook Kim
da830c9da7 Uprev Wifi HAL to 1.3
Move Wifi HAL from 1.2 to 1.3

Bug: 111753174
Test: Builds and wifi works
Change-Id: I6a2b203997d6328d09065f23636d4ce01420942a
2018-08-09 15:40:09 -07:00
TreeHugger Robot
25d0ba098e Merge "wifi(tests): Run the 64bit version of the unit tests" 2018-08-07 22:35:49 +00:00
Roshan Pius
9667b10cd0 wifi(tests): Run the 64bit version of the unit tests
libwifi-hal is only available on /vendor/lib64.

Bug: 79261060
Test: ./hardware/interfaces/wifi/1.2/default/tests/runtests.sh
Change-Id: Ia35e4246f812ceaf67c93f19101ba6cd77525694
2018-08-06 10:14:51 -07:00
Hsin-Yi Chen
41a011d128 Merge "Fix base class of WifiHidlEnvironment_1_2" into pi-dev am: 5a45bbf821
am: 404fcaef7e

Change-Id: Icfbfe32b53b861425a93ba66dc88bfba076cebcc
2018-08-05 19:05:17 -07:00
Hsin-Yi Chen
404fcaef7e Merge "Fix base class of WifiHidlEnvironment_1_2" into pi-dev
am: 5a45bbf821

Change-Id: Icb46f94a377328df86dd8317411ae85ab7949000
2018-08-05 19:01:47 -07:00
Hsin-Yi Chen
4721523a96 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
2018-08-02 15:12:41 +08:00
Roshan Pius
ddedf72532 wifi(unit-tests): Fix runtests.sh
Bug: 79261060
Test: ./hardware/interfaces/wifi/1.2/default/tests/runtests.sh
Change-Id: If7d82dcd4186b71a34ae98f2ff130fe5f074db14
2018-07-27 18:55:53 +00: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
Josh Gao
339c3c2f1b Hack around wifi_legacy_hal.h transitive include bug.
Bug: http://b/111617490
Test: treehugger
Change-Id: Ic98b8f253ae42107cddb90475044a063db2c666c
2018-07-19 11:14:49 -07:00
Etan Cohen
e8b9386b45 Update OWNERS file
Update OWNERS to reflect all the current directories under Wi-Fi
team development.

Bug: 110536740
Test: N/A
Change-Id: I6f12400b11be0fa92bc09a730dfd567d7702ef7a
2018-06-21 15:25:32 -07:00
Josh Gao
a568e530b6 Fix leaks in wifi_chip.cpp.
Use closedir on DIR*, instead of close(dirfd(DIR*)).

Bug: http://b/109702699
Test: mma
Change-Id: I827d3a414761bb836d5360221296823fcb34cd6b
2018-06-04 18:19:07 -07:00
TreeHugger Robot
62b35058a3 Merge "[AWARE] Developer documentation on HAL usage" into pi-dev 2018-05-21 20:43:04 +00: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
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
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
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
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