Commit graph

299 commits

Author SHA1 Message Date
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
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
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
Ningyuan Wang
525e0ecb1a Merge "Expect SUCCESS for tdls vts tests" into oc-dev 2017-05-05 17:34:37 +00:00
TreeHugger Robot
5c604fc1d4 Merge "Fix RssiMonitoring VTS tests" into oc-dev 2017-04-29 20:44:28 +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
Wei Wang
1c6cb69c37 Merge "Clean up after RTT operations finished. (1/2)" into oc-dev 2017-04-27 18:36:51 +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
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
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
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
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
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
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
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
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
eb88c40014 Merge "wifi(interface): Add links to APF docs" into oc-dev 2017-04-13 22:15:44 +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
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
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
TreeHugger Robot
2d76d8670a Merge "Add more VTS tests for ISupplicantP2pIface" into oc-dev 2017-04-12 18:52:18 +00:00
TreeHugger Robot
7147f8f57f Merge "Add more VTS tests for ISupplicantNetwork" into oc-dev 2017-04-12 17:04:25 +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
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
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
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
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
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
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