Commit graph

1244 commits

Author SHA1 Message Date
Roshan Pius
c99ea88f19 Merge "Notify scan-only mode to driver for power saving" 2021-01-25 23:56:19 +00:00
Sunil Ravi
ee197f3c70 Wifi: Inform framework on failure to find a network
Added a callback function to indicate that the
supplicant failed to find a network in scan result
which matches with the network capabilities requested by upper layer
for connection.

Bug: 161196120
Test: vts test - VtsHalWifiSupplicantV1_4TargetTest
Change-Id: I9549a80ca636b4ee91aca421cf7cfae9f95a9161
2021-01-25 14:08:55 -08:00
Peter Collingbourne
0c4836f418 Import wifi_channel_stat into legacy_hal namespace.
Fixes android.hardware.wifi@1.0-service-tests build failure.

Change-Id: I067106c4db8a9c9c358ec287409cc1b93c50c926
2021-01-25 10:19:51 -08:00
Ye Jiao
c6b5f89b08 Notify scan-only mode to driver for power saving
If Wi-Fi driver knows it's in scan-only mode, it can save more power
than connect mode.

This change adds setScanMode in IWifiStaIface to allow Wi-Fi framework
to notify scan-only mode change to Wi-Fi driver.

Bug: 177811719
Test: atest VtsHalWifiV1_5TargetTest

Change-Id: I1dfbc24a0a3272c1341223aff36656be4a6fd21b
2021-01-22 23:05:30 +00:00
lesl
78a04d6bc7 wifi: Support use "non-primy interface when testing hostapd Hal
In current android design, the general use case is the interface is
removed after terminate() call.
But the VTS kill the hostapd immediately it causes terminate doesn't
work normally.
Add sleep 3 seconds to allow terminate processing.

Another test case is considered to check hostapd died because any reason.
(for instance: NPE crash)
But the interface handling in android design is control in framework and WiFiHal.
Case 1. Native crash will be handled in framework and clean the interface for
the recovery.

Case 2. VTS use "stopHAL" to clean "primy interface".
It will cause clean up fail if OEM use "non-primy interface" for the SoftAp.
But it is not requirement in hostapd HAL. Verify terminate is good in
VtsHalWifiHostapd.

Bug: 177483254
Bug: 177389456
Test: atest -c VtsHalWifiHostapdV1_3TargetTest
Change-Id: I39f6ee92b1354ab2cebbe2fe6e9873e62d850c42
2021-01-22 10:32:11 +08:00
Quang Luong
ddf9401aa9 Merge "Fix 1.5::WifiBand inheritance" 2021-01-19 17:01:08 +00:00
lesl
90e6565e1e wifi: Add VTS for wifi hal and hostapd hal.
Tested on S5 and O6.
Found VTS gets failure on wlan1
b/177389456 to track for O6
b/177483254 to track for S5

But both of O6 and S5 will get pass because it uses wlan0.

Bug: 162686273
Bug: 173999527
Test: atest -c VtsHalWifiHostapdV1_3TargetTest
Test: atest -c VtsHalWifiApV1_5TargetTest
Change-Id: Idbaa7fb2f95abc954fda8daf8670e4a57b453030
2021-01-15 12:16:39 +08:00
Kumar Anand
38b1d5cb58 Merge "Wifi: Chip level API to set the country code" 2021-01-13 20:40:12 +00:00
Kai Shi
8ac976acf1 Merge "Add dtim config optimization HAL API" 2021-01-13 18:57:57 +00:00
Kumar Anand
da62c38e58 Wifi: Chip level API to set the country code
Country code is global setting across the Wifi chip
and not really Wifi interface (STA or AP) specific.
Framework should have the ability to set the country
code on a chip level without requiring supplicant
instance to be running. As long as there is at least
one active interface to communicate to kernel driver,
country code can be set and driver should apply the
setting globally.

Bug: 149936939
Test: VTS - VtsHalWifiV1_5TargetTest
Change-Id: I1be5dae34b216a6152d09605d055872d5345507c
2021-01-12 18:12:53 -08:00
Kai Shi
0b6341c67a Add dtim config optimization HAL API
Test: compilation and halutil test
Bug: 170678227
Change-Id: I4f7535a70e53bd55f02b70867d071c440ad1529f
2021-01-11 20:25:17 -08:00
Sunil Ravi
7e9d71fa64 wifi: Send MBO-OCE association rejection info.
Parse association response for MBO association
disallowed indication and OCE RSSI based association
rejection info and send it to framework in association
rejection event.

Bug: 162542063
Test: vts test - VtsHalWifiSupplicantV1_4TargetTest

Change-Id: I63ae2c37b816dbe1790647e90541e2d0b6df8401
2021-01-11 16:54:34 -08:00
Quang Luong
3000a60c2a Fix 1.5::WifiBand inheritance
1.5::WifiBand should inherit from 1.4::WifiBand.

Bug: 15365100
Test: build
Change-Id: Ic22cbed19fee274bbaadf282b0a492857bd3dcc5
2021-01-10 19:20:12 -08:00
lesl
f012b65dc0 wifi: fix incorrect active wlan iface in bridged mode
The hal use first active wlan iface to get chip info.
It should should return active wlan instance in bridged mode.

Bug: 162686273
Test: Manual test.
1. Wifi Off (SAA off), make sure bridged AP is first wlan iface
2. Enable bridged mode

Change-Id: Id5a3d5ab53c6ed34d5633be22ad56070f5f0d0e2
2021-01-08 20:58:39 +00:00
TreeHugger Robot
be136613f4 Merge "wifi: Fix removeIfaceInstanceFromBridgedApIfaceInternal" 2021-01-07 04:57:28 +00:00
Peter Collingbourne
d84225bd2c Instead of including wifi_hal.h in the legacy_hal namespace, import the types.
Including the header inside a namespace leads to ODR violations,
which are normally benign but can cause problems if we want to use
something like CFI in the wifi HAL.

Change-Id: I80cc854632da7e18e5c208ba9210de44b31abbdb
Merged-In: I80cc854632da7e18e5c208ba9210de44b31abbdb
2021-01-06 20:56:12 -08:00
lesl
819e37237a wifi: Fix removeIfaceInstanceFromBridgedApIfaceInternal
Fix the incorrect empty check.

Bug: 162686273
Test: Manual Test, shutdown instance works normally

Change-Id: I44c5c4adcc7a964e25b5fa5e291bb9b9f4932655
2021-01-07 09:49:21 +08:00
Peter Collingbourne
78471d9a24 Instead of including wifi_hal.h in the legacy_hal namespace, import the types.
Including the header inside a namespace leads to ODR violations,
which are normally benign but can cause problems if we want to use
something like CFI in the wifi HAL.

Change-Id: I80cc854632da7e18e5c208ba9210de44b31abbdb
2021-01-05 12:16:33 -08:00
Les Lee
3ee69a6186 Merge "wifi: Fix VTS error" 2020-12-23 03:30:21 +00:00
lesl
143575a10c wifi: Fix VTS error
The current hostapd use channelParams1_3.bandMask
(changed on ag/13001575), but VTS doesn't
prepare test data:channelParams1_3.bandMask.

Test: atest VtsHalWifiHostapdV1_3TargetTest
Test: atest VtsHalWifiHostapdV1_2TargetTest
Test: atest VtsHalWifiHostapdV1_1TargetTest
Test: atest VtsHalWifiHostapdV1_0TargetTest
Bug: 176139512
Change-Id: Ibdc08acb55b673b464b5c59ae714157941487a5b
2020-12-22 15:19:58 +08:00
TreeHugger Robot
254b3632a9 Merge "Add voip optimization HAL API" 2020-12-22 01:29:34 +00:00
Kai Shi
2ca7a11810 Add voip optimization HAL API
Test: compilation and halutil test
Bug: 166311728
Change-Id: I3173e733abe158e1b009ed8378d1963ca3b8b8e8
2020-12-17 14:15:12 -08:00
TreeHugger Robot
e898720840 Merge changes from topic "fixCoexRestrictions"
* changes:
  Add VTS test for IWifiChip::setCoexUnsafeChannels
  [WifiCoex] Add enum for wifi coex restrictions
2020-12-17 00:16:11 +00:00
Sunil Ravi
de9e202ef2 Merge "wifi: Added 2 seconds wait time in RTT tests" 2020-12-16 16:22:56 +00:00
Quang Luong
26cd156744 Add VTS test for IWifiChip::setCoexUnsafeChannels
Bug: 153651001
Test: atest VtsHalWifiV1_5TargetTest
Change-Id: Iaffbff3cf68b00572674ca423587387ef6569302
2020-12-16 05:05:57 +00:00
Sunil Ravi
4c7c64e7fd wifi: Added 2 seconds wait time in RTT tests
Added 2 seconds delay in RTT tests. This helps drivers finish the
current test and process the next test.

Bug: 175605811
Test: VTS test - VtsHalWifiRttV1_4TargetTest
Change-Id: I3bb719b5b75ba960913bd405b2c8a41047689682
2020-12-15 16:57:29 -08:00
Quang Luong
ab70a83b05 [WifiCoex] Add enum for wifi coex restrictions
Add custom enum for wifi coex restrictions since IfaceType is not
suitable for use as a bitmask flag since it does not represent bit
positions.

Bug: 153651001
Test: build
Change-Id: I15575ea12784a778a3b358eea1b05b75319aa95b
2020-12-15 09:43:36 -08:00
lesl
5a46c958e2 wifi: Fix bridged interface property and allociation
1. The concurrent property name over the limitation.
Rename the property name.

2. When allocate bridged iface name, it needs to increase the idx to
avoid two ifaces use the same name.

Bug: 162686273
Test: atest -c VtsHalWifiApV1_0TargetTest
Test: atest -c VtsHalWifiApV1_4TargetTest
Test: atest -c VtsHalWifiApV1_5TargetTest
Change-Id: I388cdd812bd0448c03ad5ae982547629c1e5eff9
2020-12-14 17:17:44 +08:00
Jimmy Chen
ed0d49d277 Merge "hostapd: add 60GHz(WiGig) support" 2020-12-12 04:26:03 +00:00
Quang Luong
94bcce5ec2 [WifiCoex] Add WifiChip HIDL APIs for coex
Add HIDL APIs to convey a list of unsafe Wifi channels to the driver for
coex channel avoidance.

Bug: 153651001
Test: build
Change-Id: I8b14f0e2d8855c1f1e363d612617256d8e928f30
2020-12-08 00:31:11 +00:00
Les Lee
334057470d Merge "wifi: Add AP interface idx mechanism & predefine interface support." 2020-12-04 06:43:34 +00:00
Colin Cross
b0a9ef07bb resolve merge conflicts of 9e1ee9bb30 to master
Test: I solemnly swear I tested this conflict resolution.
Bug: None
Change-Id: Iad05fce7dfa8832ed7c62326a908ab52b05268e0
2020-12-03 14:35:26 -08:00
Roshan Pius
3e6084c05d Merge "wifi: Prevent returning an invalid factory MAC address" am: 6119f16921
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1496341

Change-Id: Ic8ad496bdee5d96f46bf3de63e1131bf84ee7581
2020-12-03 20:05:19 +00:00
Roshan Pius
6119f16921 Merge "wifi: Prevent returning an invalid factory MAC address" 2020-12-03 18:51:08 +00:00
lesl
261818bfaf wifi: Add AP interface idx mechanism & predefine interface support.
SAP Interface idx mechanism.
STA+STA support, AP+AP will use wlan2 & wlan3, single AP use wlan2
STA+STA doesn't support, AP+AP use wlan1 & wlan 2, single AP use
wlan 1
STA+AP doesn't support, AP + AP will take wlan0 & wlan 1 but single AP
use wlan0 (Ideally it should not happen)

Add predefine interface support for bridged AP interface.
(property: ro.vendor.sap.concurrent.interface)

PS: Rename: getApIfaceName to getPredefinedApIfaceName since it
duplicates public HAL API: getApIfaceName

AP+AP Part 4 includes:
1. Support API to indicate Bridged AP supported or not
2. SAP Interface idx mechanism.

Bug: 162686273
Bug: 173999527
Test: atest -c VtsHalWifiApV1_0TargetTest
Test: atest -c VtsHalWifiApV1_4TargetTest
Test: atest -c VtsHalWifiApV1_5TargetTest
Change-Id: I115e294ac2be201cfa3a58cfa0a8a98b481b29de
2020-12-03 15:17:45 +08:00
Xin Li
8ac301f5f1 Merge "Merge rvc-qpr-dev-plus-aosp-without-vendor@6881855" into stage-aosp-master 2020-12-03 03:19:13 +00:00
Les Lee
9135ee103e Merge "wifi: Add resetFactoryMac support (AP+AP Part 3)" 2020-12-03 03:09:38 +00:00
Ye Jiao
bf8f310071 DO NOT MERGE: Tune up kMaxStopCompleteWaitMs to fix NE
On a low-end device which does not support STA-SAP concurrency, if STA
is currently enabled and user/app tries to enable SAP, then Wi-Fi needs
to reconfigure and stop Wi-Fi HAL first. Among other stopping actions,
HAL needs to set global_handle_ to nullptr and send "Exit" to
wifi_event_loop then waits no more than kMaxStopCompleteWaitMs. If the
wait times out, then reconfiguration fails and causes Wi-Fi controller
returns to STA mode and creates new STA iface indirectly. In this
process, HAL needs to access global_handle_, but since it was cleared,
we can only get a Native Exception.

Because there is no proper error recovery for UNKNOWN errors, I suggest
to simply set kMaxStopCompleteWaitMs to a higher value to circumvent
this timing issue.

Bug: 173760638
Change-Id: I1b5a0a7a554409704c017ffaf52a767b9424c61e
2020-12-02 17:44:49 +00:00
Xin Li
c026d3a0b6 Merge rvc-qpr-dev-plus-aosp-without-vendor@6881855
Bug: 172690556
Merged-In: If5afd00334e8b09250df1ae97dec9285e39ad930
Change-Id: Ic66bb1389f1bbecfdaa641e1fcdbf79044f55d23
2020-12-02 00:32:27 -08:00
TreeHugger Robot
d4f4cb8a82 Merge "wifi: ignore SIGPIPE when dumping stats to dumpstate" 2020-12-02 04:51:43 +00:00
lesl
420c4fc3a7 wifi: Add resetFactoryMac support (AP+AP Part 3)
Support HAL API:resetToFactoryMacAddress to reset the MAC
to factory MAC on each instances in IWifiApIface.

AP+AP Part 3 includes:
1. Support resetToFactoryMac in IWifiApIface.Hal.
2. Vts support for non bridged API.
3. Framework support resetToFactoryMac in bridged Ap.

Test: atest -c VtsHalWifiApV1_5TargetTest
Test: atest -c VtsHalWifiApV1_4TargetTest
Test: atest -c VtsHalWifiApV1_0TargetTest
Bug: 162686273
Change-Id: Ic7f2c0d6f1d8bf46fabfbc874d5f2b74068e43cc
2020-12-02 10:00:15 +08:00
Les Lee
9dffd373ea Merge "wifi: Add AP bridge operations support (AP+AP Part 2)" 2020-12-01 00:05:16 +00:00
Sunil Ravi
f14d9a0f8e Wifi: DPP STA Enrollee-Responder mode
Added below HIDL APIs for DPP STA Enrollee-Responder mode
1. API to start DPP in Enrollee-Responder mode
2. API to generate DPP bootstrap URI
3. API to stop DPP in Enrollee-Responder mode
which internally remove the bootstrap and stop listen.

Bug: 162686712
Test: VTS test
Change-Id: I979b6a7a2fe90f48d478f48da73269fd3f5cb347
2020-11-30 09:29:31 -08:00
lesl
75915c3134 wifi: ignore SIGPIPE when dumping stats to dumpstate
If dumpstate closes the reading end of the pipe (likely due to timeout)
and wifi vendor hal attempts to write to the fd it received from
dumpstate, it will receive sig 13 (SIGPIPE), and is then killed.
We should protect wifi vendor hal from the abnormally behaved clients.

Sync patch from ag/12321138. Reference from b/172972545 &
b/161336019#comment29

Bug: 161336019
Bug: 172972545
Test: Manuel Test, Wifi works normally
Change-Id: Ie7de040ac4320f83500c18e74e3c58d63b4df1b7
2020-11-30 19:09:31 +08:00
lesl
94d2824a66 wifi: Add AP bridge operations support (AP+AP Part 2)
The bridge interface name will take "ap_br_" + ap interface name.
ex: The ap interface name is "wlan1".
The bridge interface name will be "ap_br_wlan1"
When OEM customize the ap interface name via property
"ro.vendor.wifi.sap.interface".

It will only apply on single AP mode.
i.e.
"ro.vendor.wifi.sap.interface" = "sap0"
Single AP mode: ap interface name = "sap0"
Dual AP mode:
bridge interface name = "ap_br_sap0"
first ap instance name:  get from "getSupportedIfaceName" + idx
ex: sap0
second ap instance name: get from "getSupportedIfaceName" + idx + 1
ex: sap1

PS: The VtsHalWifiApV1_5TargetTest will be added in another CL which
will update another SAP related HAL:IWifiApIface.hal.

AP+AP Part 2 includes:
1. Support bridge in libwifi_system_iface
2. WifiHal API
a. createBridgedApIface (Support create bridge mode AP)
b. removeIfaceInstanceFromBridgedApIface (Support remove one of the instance in bridge)
3. Framework:
Create bridge AP when multi-bands configured.

Bug: 162686273
Test: Manual Test (SAP enable normally)
Test: atest -c VtsHalWifiApV1_0TargetTest
Test: atest -c VtsHalWifiApV1_4TargetTest
Change-Id: I8be510778e9772bcf1539e4915384949cbe13127
2020-11-23 18:57:22 +08:00
Jimmy Chen
becd2f136b wifi: fix old vts tests on newer HAL
Older registerCallback is not deprecated until V1.4 HAL correctly.
As a result, their returning codes are still SUCCESS.

Bug: 173570755
Test: atest VtsHalWifiSupplicantV1_0TargetTest \
            VtsHalWifiSupplicantV1_1TargetTest \
            VtsHalWifiSupplicantV1_2TargetTest
Change-Id: Ib23821d64f53c144d74818fa3ed9aca06cd25a27
2020-11-20 01:45:55 +08:00
lesl
c92aa85a6e wiif: Add AP bridge operations support (AP+AP Part 2)
AP+AP Part 2 includes:
1. Support bridge in libwifi_system_iface
2. WifiHal
a. createApIface_1_5 (Support create bridge mode AP)
b. removeApIface_1_5 (Support remove one of the instance in bridge)
3. Framework:
Create bridge AP when multi-bands configured.

Bug: 162686273
Test: Manual Test (SAP enable normally)
Change-Id: I518417add566ce4780a7e2e83af14460e6e8a217
2020-11-17 14:12:01 +08:00
Jimmy Chen
a67701d0d0 hostapd: add 60GHz(WiGig) support
Extend the band with 60GHz constant to support starting
AP on the 60GHz band.
Add channel parameters for EDMG (802.11ay, 60GHz channel
bonding).

Bug: 147469374
Test: atest VtsHalWifiHostapdV1_3TargetTest
Change-Id: I8d3ca0c14766dfb4a79c1febcc2bb05f65ba311e
2020-11-15 00:37:06 +08:00
Treehugger Robot
f4c82a843f Merge "supplicant(vts): Skip p2p tests on non-p2p devices as intended" am: f19e282226 am: c9f4cc376d am: 119d863efa am: bfcb424813
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1497700

Change-Id: Ie68f4455a82435d73f47af315237713e6c10511f
2020-11-14 07:29:53 +00:00
Treehugger Robot
bfcb424813 Merge "supplicant(vts): Skip p2p tests on non-p2p devices as intended" am: f19e282226 am: c9f4cc376d am: 119d863efa
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1497700

Change-Id: Ica406a4de8dfb04c093d3227a71e860e8727e720
2020-11-14 07:18:37 +00:00
Treehugger Robot
119d863efa Merge "supplicant(vts): Skip p2p tests on non-p2p devices as intended" am: f19e282226 am: c9f4cc376d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1497700

Change-Id: I2d5be618227828a815867144c1e29c826ba3c2ab
2020-11-14 07:04:59 +00:00
Roshan Pius
5c9ad33f9a Merge "wifi(hal): Use debug property to select one of preset HAL iface combination" 2020-11-13 19:32:16 +00:00
Roshan Pius
2272ff8942 wifi(hal): Use debug property to select one of preset HAL iface combination
This will be useful for testing/debugging STA + STA & AP + AP feature.

Note: I originally planned to read the entire iface combination from the
property (i.e would be much more flexible), but that is way too complex
and error prone. So, instead pre-define some combinations that we would
want to switch between and use the property as an index.

Bug: 173044646
Test: Manual:
i) adb shell "/vendor/bin/sh -c '/vendor/bin/setprop
persist.vendor.debug.wifi.hal.preset_interface_combination_idx 0'"
ii) adb reboot
iii) Ensure that AP + AP was enabled.

Change-Id: Iea63835c39fce78307a056a5ed94efcbd35cdfb6
2020-11-12 19:06:12 -08:00
Jerry Wong
a0e13d6060 supplicant(vts): Skip p2p tests on non-p2p devices as intended
The logic to skip the p2p tests on non-p2p devices appear to have
inadventently flipped since d6436731.

Bug: 173134041
Test: atest VtsHalWifiSupplicantV1_1TargetTest
Change-Id: I7945950e8483241e47e308a2c5ad97571d74a769
2020-11-12 15:01:24 -08:00
TreeHugger Robot
4c219071e8 Merge "wifi: fix old vts tests for deprecated APIs" 2020-11-12 20:55:49 +00:00
Alessandro Astone
40e57ca717 wifi: Prevent returning an invalid factory MAC address
This is the same error checking already done in wifi_ap_iface.cpp

Change-Id: I2183e6ec13a15141dc638dc8d68fda6b3afa5aa4
2020-11-11 18:41:35 +01:00
TreeHugger Robot
cfd0577486 Merge "wifi: Fix incorrect instance version" 2020-11-11 05:03:54 +00:00
Jimmy Chen
06c9863d80 wifi: fix old vts tests for deprecated APIs
Bug: 172865706
Test: atest VtsHalWifiSupplicantV1_0TargetTest \
            VtsHalWifiSupplicantP2pV1_0TargetTest \
            VtsHalWifiSupplicantV1_1TargetTest \
            VtsHalWifiSupplicantV1_2TargetTest \
            VtsHalWifiSupplicantP2pV1_2TargetTest \
            VtsHalWifiSupplicantV1_3TargetTest \
            VtsHalWifiSupplicantV1_4TargetTest \
            VtsHalWifiSupplicantP2pV1_4TargetTest
Change-Id: Icc502cae18338606a98ada312e9a66a5b11f51db
2020-11-11 11:06:20 +08:00
Oscar Shu
95ddd00d03 Merge "VTS - avoid same MAC for AP and STA" 2020-11-10 21:40:10 +00:00
xshu
a45dd5802a VTS - avoid same MAC for AP and STA
Having the AP and STA set the same MAC address in tests could cause
unintended failures when WifiApIfaceHidlTest and WifiStaIfaceHidlTest
are executed back to back.

Bug: 172528120
Test: atest VtsHalWifiApV1_4TargetTest VtsHalWifiV1_2TargetTest

Change-Id: I336d21cd896c46b064f16ecfa184a26dab67deaa
2020-11-09 18:37:36 -08:00
lesl
a6c5b8c573 wifi: Fix incorrect instance version
The vts use getAidlInstances to check current HIDL version whether or not
exist in the device manifests.
When there are no instances installed, the suite won't be instantiated

Test: atest -c VtsHalWifiHostapdV1_3TargetTest in S GSI + R build
Bug: 172539662
Change-Id: Ia268282eeeb53a092bb5f36ef0426ac213b45a9f
2020-11-09 17:54:16 +00:00
TreeHugger Robot
ccf7517de7 Merge "wifi: add enable SAE PK only mode API" 2020-11-06 20:04:15 +00:00
Roshan Pius
734be98c77 Merge "wifi: Add STA + STA HIDL API's" 2020-11-06 19:57:44 +00:00
Roshan Pius
e9d1e7d384 wifi: Add STA + STA HIDL API's
Add the HIDL API's + shim + VTS tests.

Bug: 170305665
Test: atest VtsHalWifiV1_3TargetTest VtsHalWifiV1_5TargetTest
Change-Id: I26ada11aebfe8082bfda251cf7e6990e0aa08a06
2020-11-06 11:54:51 -08:00
Jimmy Chen
7e792611bb wifi: add enable SAE PK only mode API
Bug: 160642415
Test: atest VtsHalWifiSupplicantV1_4TargetTest
Change-Id: I9e9fe69bf5ebc1127085b568f02f44a2ab1b08af
2020-11-06 11:04:53 +08:00
Hai Shalom
8bdc3db2d3 Merge "Add HAL support for Passpoint venue URL" 2020-11-05 22:57:36 +00:00
Hai Shalom
349bc58cb4 Add HAL support for Passpoint venue URL
Bug: 162783305
Test: atest VtsHalWifiSupplicantV1_4TargetTest
Change-Id: I46e8e6a97c860236129d6761a11946a174985787
2020-11-04 18:51:04 -08:00
TreeHugger Robot
8a8eb6e5c3 Merge "wifi: Create 1.3::IfaceParams to support dual bands (AP+AP Part 1)" 2020-11-05 01:29:33 +00:00
TreeHugger Robot
67f6c1b71f Merge "wifi: add new status code for unsupported cases" 2020-11-04 18:40:11 +00:00
Jimmy Chen
52861d4cb4 Merge "wifi: fix old vts failure due to deprecated API" 2020-11-04 06:56:23 +00:00
Jimmy Chen
4d9f1eed0f wifi: add new status code for unsupported cases
Bug: 160642415
Test: atest VtsHalWifiSupplicantV1_4TargetTest \
            VtsHalWifiSupplicantP2pV1_4TargetTest
Change-Id: I6eac4646df4a3e595f5dd0c359660420b71d444c
2020-11-03 15:51:35 +08:00
Hai Shalom
bcdf1b9418 Merge "HAL changes for Passpoint T&C" 2020-11-03 02:51:39 +00:00
lesl
65caf76788 wifi: Create 1.3::IfaceParams to support dual bands (AP+AP Part 1)
1. Add new 1.3::IfaceParams to support AP+AP.
2. Fix vts to match use the 1.3::IfaceParams

But the test on dual APs mode needs to add after vendor Hal ready to
create two interfaces.

AP+AP Part 1 includes:
1. HIDL: Hostapd support dual bands/channels configuration
2. Framework: HostapdHal support only
3. Hostapd deamon:
a. Support briged interface query
b. Support config dual bands/channel
c. Callback use bridge interface in dual APs mode.

Bug: 162686273
Test: atest -c VtsHalWifiHostapdV1_3TargetTest
Test: atest -c VtsHalWifiHostapdV1_2TargetTest
Test: atest -c VtsHalWifiHostapdV1_1TargetTest
Test: atest -c VtsHalWifiHostapdV1_0TargetTest
Change-Id: I621b303c1e1f36996ca9b7720242f134bbe5fd75
2020-11-02 16:29:19 +08:00
Jimmy Chen
72e0239ed6 wifi: fix old vts failure due to deprecated API
Bug: 160643860
Test: atest VtsHalWifiSupplicantV1_0TargetTest
Change-Id: If47c92981e9a13323bfe5be58e288a77b5adb722
2020-11-02 13:34:02 +08:00
Hai Shalom
1cc3ba235c HAL changes for Passpoint T&C
Add SupplicantStaIfaceCallback v1.4 with support for the new
Passpoint T&C notification callback.

Bug: 171928337
Test: atest VtsHalWifiSupplicantV1_4TargetTest
Change-Id: I14f88427a6112b6a097d168c00ece3e36a7bd82f
2020-10-30 09:41:28 -07:00
Jimmy Chen
61ef86b625 wifi: add enable SAE H2E only mode API
Bug: 160642700
Test: atest VtsHalWifiSupplicantV1_4TargetTest
Change-Id: Ic40d8435d35917a7eb722b102de3c2b7640c1aac
2020-10-23 18:47:00 +08:00
Jimmy Chen
77f2c0780c wifi: add transition disable callback API
Bug: 160643860
Test: atest VtsHalWifiSupplicantV1_4TargetTest
Change-Id: I66839d6766b39483c78919aaa42d42db032f87a7
2020-10-23 18:47:00 +08:00
Nate Jiang
77d3ff366d Merge "[AWARE] Add support for instant communication mode" 2020-10-20 16:19:02 +00:00
Jimmy Chen
2abc352787 wifi: add 60GHz Wi-Fi P2P support
Bug: 14749550
Test: atest VtsHalWifiSupplicantP2pV1_4TargetTest
Change-Id: I9ad8afa194999409c55e3606510ef6ed43f4960e
2020-10-16 12:00:46 +08:00
Nate Jiang
3ec6781c35 [AWARE] Add support for instant communication mode
Bug: 160725208
Test: atest WifiNanIfaceTest,VtsHalWifiNanV1_0TargetTest, VtsHalWifiNanV1_2TargetTest, VtsHalWifiNanV1_4TargetTest, VtsHalWifiNanV1_5TargetTest

Change-Id: I66c8532dcd50d5702edbcd89005b9e7373659594
2020-10-15 17:15:46 -07:00
Xin Li
50393137ed Merge ab/6749736 in stage.
Bug: 167233921
Merged-In: I6756cad681e4cfa01868450214da0d7b2d5261e4
Change-Id: Ia529ecf4f48248d5af63673f359916486f71bc35
2020-10-08 23:22:52 -07:00
TreeHugger Robot
df17ab2f52 Merge "wifi: check all possible returning codes for connect/cancelConnect" 2020-10-09 01:04:24 +00:00
Blair Prescott
28833592b3 wifi: Fix VTS error for non-p2p devices am: 230e96521d am: bd7b0bceee am: 3f4660cec8 am: 2b6cf192a1
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1453396

Change-Id: I5352dd40433b5073aa1525119d5760b9a23d8440
2020-10-08 23:13:58 +00:00
Blair Prescott
2b6cf192a1 wifi: Fix VTS error for non-p2p devices am: 230e96521d am: bd7b0bceee am: 3f4660cec8
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1453396

Change-Id: Ibdb539dab2f1fcd461bbe3e462ea6c780c0a55a1
2020-10-08 23:07:20 +00:00
Blair Prescott
3f4660cec8 wifi: Fix VTS error for non-p2p devices am: 230e96521d am: bd7b0bceee
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1453396

Change-Id: I7d4eef43b8a8eecf4ca6ad11fb6658359b734123
2020-10-08 22:45:34 +00:00
Jimmy Chen
d459e4eecd wifi: check all possible returning codes for connect/cancelConnect
Before R, those two calls are not going to work with fake values.
After enabling auto-join, it will success always.

Bug: 169890122
Test: atest VtsHalWifiSupplicantP2pV1_0TargetTest
Change-Id: I7d94e797e140520a5df33bba854d5cb2b015eacf
2020-10-08 10:24:17 +08:00
Blair Prescott
230e96521d wifi: Fix VTS error for non-p2p devices
Fix VtsHalWifiSupplicantP2pV1_0TargetTest to skip tests
in such a way that VTS reports the module as complete on
devices that don't support Wifi Direct.

Bug: 170326147
Test: run vts -m VtsHalWifiSupplicantP2pV1_0TargetTest
Change-Id: Ia418c4bb72f4772422d724636453395c4ba9fb2d
2020-10-07 19:54:39 +00:00
Les Lee
df227a3b11 Merge "wifi: Add vts 1.3 for hostapd hidl 1.3" 2020-09-30 16:52:38 +00:00
Les Lee
d6b8e4ab1d Merge "wifi: ignore addAccessPoint_1_2 test if current hidl is 1_3" 2020-09-29 00:29:00 +00:00
Roshan Pius
d3dcea5f11 supplicant(vts): Stop adding empty instance for vendor HAL am: b9ddf021d3 am: 8a4e68b788 am: 329fe1ca18 am: a8cec5d5ce
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1438028

Change-Id: I332a0a820f480104557d9fd69657dcc401b2da0b
2020-09-28 19:04:08 +00:00
Roshan Pius
329fe1ca18 supplicant(vts): Stop adding empty instance for vendor HAL am: b9ddf021d3 am: 8a4e68b788
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1438028

Change-Id: I0549c24594969ae37c71d8a71b585fcd588c88df
2020-09-28 18:38:16 +00:00
Roshan Pius
b9ddf021d3 supplicant(vts): Stop adding empty instance for vendor HAL
We don't need to test supplicant in the presence of vendor HAL & without
it. For a given device, this behavior is fixed.

Bug: 161951052
Test: atest VtsHalWifiSupplicantV1_1TargetTest
Merged-In: I71097c3afef1765ca514abf2c350c423e3999020
Change-Id: I71097c3afef1765ca514abf2c350c423e3999020
(cherry picked from commit 984b6e0607)
2020-09-28 16:42:47 +00:00
lesl
9b85a78e71 wifi: Add vts 1.3 for hostapd hidl 1.3
Duplicate from 1.2 and add
1. Call setDebugParams for debugging
2. Add metered indication in NetworkParams (default is true)
3. Add non metered test case

Bug: 151189102
Test: atest -c VtsHalWifiHostapdV1_3TargetTest --rebuild-module-info
Test: atest -c VtsHalWifiHostapdV1_2TargetTest
Test: atest -c VtsHalWifiHostapdV1_1TargetTest
Test: atest -c VtsHalWifiHostapdV1_0TargetTest
Change-Id: Ie425e14a08a71cfe4eb8a6b67cd837afd6da4dbe
2020-09-28 11:55:23 +08:00
lesl
f910d10d23 wifi: ignore addAccessPoint_1_2 test if current hidl is 1_3
Bug: 169385303
Test: atest -c VtsHalWifiHostapdV1_2TargetTest
Test: atest -c VtsHalWifiHostapdV1_1TargetTest
Test: atest -c VtsHalWifiHostapdV1_0TargetTest
Change-Id: I4be366be0e733b2ad00c64036a0f8be4e391228c
2020-09-28 11:29:31 +08:00
Roshan Pius
4cbd355b25 Merge changes I71097c3a,I872a1b3e
* changes:
  supplicant(vts): Stop adding empty instance for vendor HAL
  Revert "wifi: remove wifi instance name string check"
2020-09-25 21:51:16 +00:00
Roshan Pius
133389711d supplicant(vts): Stop adding empty instance for vendor HAL
We don't need to test supplicant in the presence of vendor HAL & without
it. For a given device, this behavior is fixed.

Bug: 161951052
Test: atest VtsHalWifiSupplicantV1_1TargetTest
Merged-In: I71097c3afef1765ca514abf2c350c423e3999020
Change-Id: I71097c3afef1765ca514abf2c350c423e3999020
2020-09-25 19:14:13 +00:00
Roshan Pius
f00ab8b77b Revert "wifi: remove wifi instance name string check"
This reverts commit 1c50a59eae.

Reason for revert: This was not needed. Does not fix the issue at hand.
Bug: 161951052
Merged-In: I872a1b3e87f17a43eb3c22c930e916c7e5e2d2a6
Change-Id: I872a1b3e87f17a43eb3c22c930e916c7e5e2d2a6
2020-09-25 19:13:45 +00:00
Treehugger Robot
224824b2dc Merge "vts: Use global hostapd_ since teardown will call terminate function" am: 77c3b52888 am: 7ce0280a4d am: c663e086fd am: 45de416230 am: bd3a9bae8a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1436771

Change-Id: I367f68fb2cd380085bc1423be4feea7118bd83f1
2020-09-25 07:50:03 +00:00
Treehugger Robot
bd3a9bae8a Merge "vts: Use global hostapd_ since teardown will call terminate function" am: 77c3b52888 am: 7ce0280a4d am: c663e086fd am: 45de416230
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1436771

Change-Id: If17caa26b7dde0f77320ea9e5431b44f74c964ab
2020-09-25 07:35:03 +00:00
Treehugger Robot
c663e086fd Merge "vts: Use global hostapd_ since teardown will call terminate function" am: 77c3b52888 am: 7ce0280a4d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1436771

Change-Id: I46da75297a7d58c4db18831a7aba491e3801c400
2020-09-25 07:07:34 +00:00