Commit graph

432 commits

Author SHA1 Message Date
zhengyu.zhan
38bff8b0c7 Fix VtsHalWifiSupplicantP2pIfaceTargetTest failed issue
supplicant_test_utils::initializeService() only stop Supplicant,
don't start it. refer Android T code, It should start Supplicant
when initializeService().

Bug: 279572212
Test: VtsHalWifiSupplicantP2pIfaceTargetTest pass

Change-Id: I9f4b3e21ee0865eb95d71f7f832b2eb405de9607
2023-04-25 22:17:28 +00:00
Sunil Ravi
abb157f297 Merge "wifi: Skip SetStrictConversativePeerMode VTS test" into udc-dev 2023-04-17 18:38:55 +00:00
Sunil Ravi
974a74d896 wifi: Skip SetStrictConversativePeerMode VTS test
SetStrictConversativePeerMode HAL API is added in
AIDL version 2. So if the HAL interface version is
less than 2, skip the test.

Bug: 278169264
Bug: 277318919

Test: atest VtsHalWifiSupplicantStaNetworkTargetTest
Change-Id: I7f8ace88b0f37679ecaedd5370b47e220c437d50
2023-04-15 01:10:46 +00:00
Alex Buynytskyy
ec1198d941 UpsideDownCake is now 34
Ignore-AOSP-First: UpsideDownCake Finalization
Bug: 275409981
Test: build
Change-Id: I832ab7a8b5445ba85e27bbcf5be64906bfa0e5be
2023-04-07 23:41:20 +00:00
Gabriel Biren
a3b22e5a72 Update comment for the INonStandardCertCallback to
indicate how certificates are added.

Bug: 267819850
Test: m
Change-Id: I896bf68138b93a97c843699d69bac193e7ee1523
2023-03-23 00:23:20 +00:00
Gabriel Biren
da640d66b2 Use fixed-size arrays for any arrays added in
V2 that expect a pre-set size.

Bug: 273964536
Test: m
Change-Id: Iab1239484bfc7fd61834118e5a9e1999cab194ad
2023-03-16 23:33:11 +00:00
Gabriel Biren
fb8b891a36 Disable linter in the Supplicant interface
Android.bp file.

This allows us to use fixed-size arrays
in the interface.

Bug: 273964536
Test: m
Change-Id: Ic1a0c5ce5360e787e1664ed855e2642d22be7148
2023-03-16 23:31:08 +00:00
Gabriel Biren
a224caede2 Merge "Remove unused method removeAllQosPoliciesForScs from the Supplicant interface." into udc-dev 2023-03-13 16:16:14 +00:00
Cole Faust
e76cbec982 Baseline NewApi issues
NewApi was recently updated to support linting methods in
the system, module_lib, and system_server sdks, and was
demoted to a warning due to the new issues it finds.
Baseline all the new issues that NewApi can be made an error
again.

These cls were generated automatically by a script that
copied the NewApi issues from the reference baselines.

Bug: 268261262
Test: m lint-check
Change-Id: I22f3b3575b6ea00d72d143019d9eed028aa98b56
2023-03-09 14:20:10 -08:00
Gabriel Biren
6fb8e8d453 Remove unused method removeAllQosPoliciesForScs
from the Supplicant interface.

Bug: 267819850
Test: m
Change-Id: Id17738f1705c899f4f82cdaf3b923e30d3eed6a4
2023-03-09 20:27:21 +00:00
Sunil Ravi
284883f847 wifi: set join to true in p2p connect tests
After adding ag/21179155, auto join flag is
not set for every p2p connect command. The tests
are passing an unknown peer MAC address to connect(). To
pass the tests, the connect should trigger a scan and
try to find this unknown mac address. So set join flag
to true to run the same scan logic.

Bug: 268236829
Bug: 218608010
Test: atest VtsHalWifiSupplicantP2pIfaceTargetTest
Change-Id: Id5baa0f599d11a3563780aae15ff3cea0407060c
2023-02-21 18:00:53 +00:00
Mahesh KKV
9785d8f10d Add TID-to-Link mapping capability fields
Add capability fields for TID-to-Link mapping negotiation support for
both station and access point.

Bug: 268219346
Test: atest VtsHalWifiSupplicantStaIfaceTargetTest
Change-Id: Iaf82cdb8a0c3e57135487c95750f53ab1d6fc187
2023-02-15 14:32:16 -08:00
Sunil Ravi
9804ca4b46 Merge "wifi: Add BSSID of the AP in PMKSA cache added event" 2023-02-15 17:10:52 +00:00
Mahesh KKV
103e3baf28 Merge "Add more MLO link parameters" 2023-02-15 07:03:10 +00:00
Sunil Ravi
5d3928d622 wifi: Add BSSID of the AP in PMKSA cache added event
Deprecated onPmkCacheAdded() callback function and
added a new onPmkSaCacheAdded() callback function to
include the connected AP BSSID. This will help framework
to include BSSID information as a key to store PMKSA.

Bug: 260042356
Test: atest vts
Test: Manual - Tested WPA3 STA - AP connection multiple times and
      confirmed that PMKSA cache is added and supplicant is using
      the PMKSA cache entries for open authentication.
Change-Id: I9fc7da7f4ba60e45ddeee9a41654c74f128fe3d6
2023-02-15 04:40:17 +00:00
Mahesh KKV
bc4ca2af02 Add more MLO link parameters
Framework populates MLO link information from scan cache. In roaming
use cases, framework may not have the scan result for the roamed AP.
So, always get the MLO link parameters from the supplicant. Add static
parameters apMldMacAddress, apLinkMacAddress and frequency of the
link. Dynamic parameters like RSSI, link speed..etc. are queried from
signal poll.

Bug: 268230307
Test: m android.hardware.wifi.supplicant-update-api
Change-Id: I7ffb23a8ead63a385cd00d26969529e2943fcff1
2023-02-14 13:05:30 -08:00
Gabriel Biren
40f4b10551 Merge "Add listAliases method to the INonStandardCertCallback interface." 2023-02-14 20:58:00 +00:00
Gabriel Biren
773ab6e9e0 Add listAliases method to the INonStandardCertCallback
interface.

Bug: 205764502
Test: m
Change-Id: I2d5b6dd99dc8c56d94b04ec8efb2de8c81186b46
2023-02-14 18:28:40 +00:00
Sunil Ravi
16ec29b307 Wifi: IP Address Allocation in EAPOL-Key Frames
Implementation of Wi-Fi P2P Technical Specification v1.7 - Section  4.2.8
"IP Address Allocation in EAPOL-Key Frames (4-Way Handshake)".

Changes includes,
1. API to configure the IP addresses in supplicant for P2P GO to
provide the IP address to client in EAPOL handshake.
2. Send the received IP address information to framework via
p2p group started event.

Bug: 170056953
Test: Manual - Establish P2P connection & confirmed from sniffer logs
      and logcat logs that IP addresse is allocated via EAPOL exchange.
      Ping works after connection.

Change-Id: I2662fde9ca645aa5e34b21678d1a47cbf26ef3d3
2023-02-09 06:16:44 +00:00
Swarn Singh
34081b3607 wifi: Add support for QoS SCS policy feature
This commit defines supplicant AIDL APIs needed for QoS SCS policy
feature.

Bug: 236182432
Test: atest VtsHalWifiSupplicantStaIfaceTargetTest \
            VtsHalWifiSupplicantStaNetworkTargetTest \
	    VtsHalWifiSupplicantP2pIfaceTargetTest

Change-Id: I88c79a11edc70f9c7b662ae81594c0fc66d558b8
2023-01-12 21:18:58 +00:00
Sunil Ravi
44a6de894d Merge "Wifi: check TLSV1.3 support in TLS test" 2022-12-21 17:52:46 +00:00
Sunil Ravi
9c941fbba8 Wifi: check TLSV1.3 support in TLS test
Added the check for TLSV1.3 feature support in
SetMinimumTlsVersionEapPhase1Param test

Bug: 261922145
Test: atest SupplicantStaNetworkAidlTest
Change-Id: I26e7796d4d83e72e0098d5aa6ee520824bda23b1
2022-12-20 23:07:53 +00:00
Gabriel Biren
ba65bbe8a4 Add callback to the supplicant interface to allow
supplicant to retrieve non-standard certificates
from the client.

Bug: 205764502
Test: mm -j
Change-Id: Ia14d684e609c6e65229888a4f27d7c1f5af97f24
2022-12-17 00:36:11 +00:00
Sunil Ravi
1781b8f354 Merge "wifi: Add Signal polling interface to AIDL" 2022-12-14 22:54:36 +00:00
Sunil Ravi
fff05cd6e1 wifi: Add the connected frequency in the state change event
Currently framework gets the connected AP frequency
information by checking the scan cache & through signal
poll command. But these mechanisms doesn't work if framework
scan cache is not updated with the connected AP information
(For example in case of roaming and force connection without scan).
To fix this modified supplicant state change interface
and included the frequency of the connected channel in the
state change event.

Bug: 240299862
Test: atest vts
Test: Manual - Tested STA - AP connection and verfied the data
      from debug logs.
Change-Id: I936bd3256420de38cdfee740e43972bc262ec4b8
2022-12-13 21:46:22 +00:00
Sunil Ravi
5fdc39c077 Merge "wifi: Send channel change event to framework" 2022-12-13 21:18:53 +00:00
Sunil Ravi
55651432be wifi: Send channel change event to framework
Added a new StaIfaceCallback method to indicate that
the operating frequency of the BSS is changed
due to channel switch announcement from the AP.

Bug: 195617184
Test: Manually triggered channel switch through peer AP hostapd command
      and verified the new frequency in STA logs.
Change-Id: I9dd59d7c5d4ddc5f3443f8b6786cfea9beec4f3c
2022-12-10 23:04:25 +00:00
TreeHugger Robot
9a05af80ae Merge "Notify the AT_PERMANENT_ID_REQ is denied from peer." 2022-12-10 05:21:42 +00:00
Mahesh KKV
c18959820f wifi: Add Signal polling interface to AIDL
Bug: 260018485
Test: m android.hardware.wifi.supplicant-update-api
Change-Id: I8cfca1b2e17c153703b524a0d6dd13199c90cdd6
2022-12-08 08:41:52 -08:00
Gabriel Biren
bd150ea1f1 Update VTS test dependencies.
Supplicant and Hostapd tests have a dependency on
the Vendor HAL in order to do setup/cleanup,
such as bringing up an interface.

This change will make the tests compatible with either
the HIDL or AIDL Vendor HAL, depending on which
is available.

Bug: 205044134
Test: atest VtsHalHostapdTargetTest
      atest VtsHalWifiSupplicantStaIfaceTargetTest \
            VtsHalWifiSupplicantStaNetworkTargetTest \
	    VtsHalWifiSupplicantP2pIfaceTargetTest
      Tests were run using both the HIDL and AIDL
      Vendor HALs.
Change-Id: I1f6b15016414a0bf614703315b47b5b47d3a1e50
2022-12-07 23:53:52 +00:00
Sunil Ravi
f521450b35 wifi: Send DPP connection status result
This change is for Enrollee to send the DPP connection status
result frame to configurator. The changes includes,
1. Modified the existing onDppSuccessConfigReceived callback function
to indicate that configurator has requested for the connection status
result frame.
2. New callback function to indicate that the connection status result
frame is sent.
3. Defined connection status code.

Bug: 235844564
Test: m android.hardware.wifi.supplicant-update-api
Test: Manual - Ran DPP tests and confirmed that
      connection status frame is processed correctly
Change-Id: I45866707971c874c9270e7316a7b86fe0953d95a
2022-12-07 07:30:58 +00:00
Mahesh KKV
7998e043fa Merge changes from topic "Wi-Fi 7: TID2Link & Link Removal"
* changes:
  wifi: Notify MLO Link status updates
  wifi: Add TID to link mapping support
2022-12-06 22:50:13 +00:00
Steven Liu
c276eafd3a Notify the AT_PERMANENT_ID_REQ is denied from peer.
Bug: 239710602
Test: atest VtsHalWifiSupplicantStaNetworkTargetTest
Change-Id: Ib21d601cc980505d7cb60091ec1dd88a579d9738
2022-12-06 20:16:41 +00:00
TreeHugger Robot
b51f4c577b Merge "Add HAL API to support conservative mode for EAP-SIM/AKA/AKA'" 2022-12-06 01:26:52 +00:00
Mahesh KKV
9cb9424e1f wifi: Notify MLO Link status updates
Add a callback to notify MLO link status changes due to
- Multi-Link Reconfiguration (AP Removal)
- TID to link mapping updates

Bug: 247119055
Bug: 248289182
Test: mm -j

Change-Id: I1010cfb3ef608466a46d54e1ef2ae4e665504210
2022-12-02 14:02:50 -08:00
Mahesh KKV
f0bd8c223f wifi: Add TID to link mapping support
TID-to-link mapping, which is introduced in IEEE 802.11be standard
allows an Access Point and a Station to determine how uplink and
downlink QoS traffic corresponding to TID values between 0 and 7 will be
assigned to the setup multi links.

This commit adds an interface to TID-to-link mapping in existing MloLink
AIDL.

BUG: 247119055
Test: mm -j
Change-Id: I3ef6e37d9857606020a8e0580c82ca8ab1b8bf82
2022-12-02 14:02:50 -08:00
Gabriel Biren
e80aabbc1d Revert "Remove dependencies on the HIDL Vendor HAL from"
This reverts commit fc6bd8c564.

Reason for revert: Blocking Wembley team

Bug: 261042084
Test: Local test as in 261042084#comment8
Change-Id: I9103fa8bdcdea48648574f034c51ea8f2b9c25cc
2022-12-02 15:46:26 +00:00
Gabriel Biren
fc6bd8c564 Remove dependencies on the HIDL Vendor HAL from
the hostapd and supplicant VTS tests.

Bug: 205044134
Test: atest VtsHalHostapdTargetTest
      atest VtsHalWifiSupplicantStaIfaceTargetTest \
            VtsHalWifiSupplicantStaNetworkTargetTest \
	    VtsHalWifiSupplicantP2pIfaceTargetTest
Change-Id: Ibdc5ea1f482a5c886029e5048d884ac15ac4d56e
2022-11-28 18:29:23 +00:00
Steven Liu
9ff9db4635 Add HAL API to support conservative mode for EAP-SIM/AKA/AKA'
Bug: 239710602
Test: atest vts
Change-Id: Ic2d0d8453cff79c4242c1d701b36c482146a701f
2022-11-26 18:22:36 +00:00
TreeHugger Robot
1f5dec26ef Merge "wifi: new state change HAL callback with current used key management mask" 2022-11-22 18:50:09 +00:00
Jimmy Chen
d7ed5ae3f9 wifi: new state change HAL callback with current used key management mask
Bug: 230766005
Test: atest vts
Change-Id: I9a9d85df53fe615f89a448f8ece16c6cbfbf6dee
2022-11-16 13:36:34 +08:00
Jimmy Chen
67ebabc6ae wifi: EAP minimum TLS version API
Bug: 160819609
Test: atest VtsHalWifiSupplicantStaNetworkTargetTest
Change-Id: I33e8d2f36e63560d6e084a5dcc78e89077486c0c
2022-11-16 09:40:14 +08:00
Biswarup Pal
76514ebd34 Add HAL API to pass GO interface MAC address in GC from supplicant
The GO interface MAC address would be used to calculate the link-local
IPv6 address of the GO in the GC side.

Test: m
Bug: 233912758
Change-Id: I8cdae90a2703d446dafbdfba8f99c191b751f552
2022-11-15 09:55:00 +00:00
Etan Cohen
742354a2a4 Merge "Coalesce OWNERS" am: c1c823a9c1 am: 01c4d7fc07 am: d84cfa698b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2260625

Change-Id: I6f97891fbf8069fdbe3f65be1f2848f6ec648ce3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-22 19:54:55 +00:00
Etan Cohen
b65ff31684 Coalesce OWNERS
Bug: N/A
Test: N/A
Change-Id: Ia603a0cc323e65903f8de6a04ce1dd82407f012d
2022-10-19 04:06:09 +00:00
Gabriel Biren
1ddc35a98f Merge "Add logic to the EnableMacRandomization VTS test to check whether mac randomization is enabled." 2022-07-14 16:12:02 +00:00
Gabriel Biren
337406a5c2 Add logic to the EnableMacRandomization VTS test to
check whether mac randomization is enabled.

Bug: 235182238
Test: atest VtsHalWifiSupplicantP2pIfaceTargetTest
Change-Id: I1b16da1ee07f98caf6b90ded1bae51b6b7cc8c1a
2022-07-07 18:00:32 +00:00
Chris Ye
0fa30da096 Merge "Enable the tracing for Wifi supplicant and hostapd HAL." am: 235abdf23c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2140840

Change-Id: I97d49a078c1ec0d811aa7a2ed438336d4fb1bf44
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-30 17:49:15 +00:00
Chris Ye
3a7840ba92 Enable the tracing for Wifi supplicant and hostapd HAL.
Bug: 237138934
Test: Manual test. Capture atrace with network tag turned on.
Change-Id: Ib982333ec31d4b9f2b6ec999823f08eeeb0ff587
2022-06-30 00:10:29 +00:00
Jooyung Han
c3f8861bb8 Merge "Remove AIDL-libs from VNDK" 2022-06-20 01:15:09 +00:00