Commit graph

1626 commits

Author SHA1 Message Date
Nate Jiang
bae6fddf98 Modify based on the vendor feedback
- Add end pairing request method
- Handle bootstrapping comeback event
- Add cipher type in the pairing request

Bug: 265075699
Test: cts sinlgeDeviceTest
Change-Id: Ic744b0a1098e258b68caba5a9a33b2bef3226b40
2023-02-14 17:22:57 -08:00
Gabriel Biren
feec85fcca Merge changes I86e0c465,I537588c4
* changes:
  Remove any references to DEBUG_ capabilities in the Vendor HAL service.
  Remove DEBUG_ capabilities from ChipCapabilityMask.
2023-02-15 00:42:28 +00:00
Gabriel Biren
bff0e408df Remove any references to DEBUG_ capabilities
in the Vendor HAL service.

Bug: 266521428
Test: Vendor HAL gTest suite
      (see the modified test case)
Change-Id: I86e0c465b9f9d2f31413d75727e36b42c2b6b88a
2023-02-14 22:44:11 +00:00
Gabriel Biren
e35e7e46bb Remove DEBUG_ capabilities from ChipCapabilityMask.
Also update the IWifiChip VTS test to reflect
this change.

Bug: 266521428
Test: atest VtsHalWifiChipTargetTest
Change-Id: I537588c405d8a01091a6818020084acbe2679e14
2023-02-14 22:39:34 +00: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
Mahesh KKV
4ff445673d Merge "Add link state for link layer stats" 2023-02-12 20:33:24 +00:00
Mahesh KKV
14393faaf1 Add link state for link layer stats
Bug: 263029630
Test: m android.hardware.wifi-update-api
Change-Id: Ia9a1782200136cd0f58a66e7d2de700d8a75fcae
2023-02-10 14:22:20 -08: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
Mahesh KKV
802d51c713 Merge "Fix the parameter range for llstats aidl unit test" 2023-02-07 19:14:03 +00:00
Mahesh KKV
ca297846bb Fix the parameter range for llstats aidl unit test
Bug: 268054128
Test: hardware/interfaces/wifi/aidl/default/tests/runtests.sh
Change-Id: I66c6bdcbd003895161334dc2b67e118c9b3bba16
2023-02-06 17:48:19 +00:00
Mahesh KKV
21a98b4a51 Rename maxMloLinkCount to maxMloStrLinkCount
The maximum number of Simultaneous Transmit Receive (STR) links used in
Multi-Link Operation can be different from the maximum radios supported
by the chip.Explicitly mention the max links as max STR links. Update
the description and usage of the capability field.

Bug: 267963579
Test: m android.hardware.wifi-update-api
Change-Id: I5691fcc44c60821766fe41e67624e458ba051059
2023-02-06 04:38:26 +00:00
TreeHugger Robot
b0a53317cf Merge "Support AFC channel allowance feature flag" 2023-02-01 23:05:55 +00:00
Gabriel Biren
c96258de1d Merge "Make WifiStaIfaces using the create() method." 2023-01-31 18:16:05 +00:00
Gabriel Biren
2f7bec812a Make WifiStaIfaces using the create() method.
Unlike the default constructor, create() populates
the weak_ptr_this_ variable, which is needed for
callbacks from the legacy hal.

Bug: 265857332
Test: Manual test - connect to an AP and walk away
        from it. Check that the RSSI callback is
        triggered in the framework.
Change-Id: I1a10a75c07ea59a3e01b9bb68d9d393bbd20d29d
2023-01-31 01:07:38 +00:00
Jooyung Han
bab159cc73 wifi: put vintf fragment into wifi apex
The AOSP-version of wifi hal apex now contains the VINTF fragment in it.

Bug: 247018693
Bug: 266885060
Test: atest CtsWifiTestCases
Change-Id: Id8f196386967c3023cb5ee308d31b8cdeed7df0b
2023-01-30 11:21:39 +09:00
Shuibing Dai
e45012e469 Merge "Move setScanMode to legacy HAL" 2023-01-28 00:06:16 +00:00
Oscar Shu
79e826d1c9 Support AFC channel allowance feature flag
Bug: 242917176
Test: compile

Change-Id: I45c0ac54ead7c83a9f83c2a3875a4beaffc2eed0
2023-01-27 22:04:31 +00:00
Ye Jiao
50274f7696 Move setScanMode to legacy HAL
Cherry-pick from https://partner-android-review.git.corp.google.com/c/platform/hardware/interfaces/+/2369946
Implementation of setScanMode is platform-specific. It's more reasonable to move it the legacy HAL like other platform-specific APIs.

Bug: 265866990
Test: manual Test
Test: VTS
Change-Id: I2f8ff73b764ed1b9835b8e3157f673d7d558ae02
2023-01-26 21:00:32 -08:00
TreeHugger Robot
555447b747 Merge "Fix NAN-related VTS tests." 2023-01-19 20:34:13 +00:00
Gabriel Biren
88126cde83 Fix NAN-related VTS tests.
NAN is not supported by Cuttlefish, so check
for Aware support before running any related
tests.

Also fix the incorrect function call in
CreateP2pIface.

Bug: 263762326
Test: atest VtsHalWifiChipTargetTest
      (tested on Cuttlefish and Bluejay)
Change-Id: I3ec52fcc18aedad157dbc17d19078dde216261fb
2023-01-19 19:12:22 +00:00
Oscar Shu
6317161f62 Merge "Add new API to set max power limits for mAFC" 2023-01-18 19:32:40 +00:00
Oscar Shu
ab8313ca53 Add new API to set max power limits for mAFC
HAL API support for setting max permissible power on a range of
frequencies. Unspecified frequencies will get reverted to their
respective default values.

Also add capability flag for this new API.

Bug: 242917176
Test: make -j128
Test: Manually verified the framework can call the HAL API

Change-Id: I14ac494124b51ca0b85c394eefe6332c4b382d19
2023-01-18 04:37:19 +00:00
TreeHugger Robot
71ee601352 Merge "wifi: Add support for QoS SCS policy feature" 2023-01-13 17:15:28 +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
Biswarup Pal
0e05439db2 Merge "Add suspendable option in NanDiscoveryCommonConfig" 2023-01-12 10:55:41 +00:00
Phill Hayers
02a97247fe Add NAN session suspension in shim layer.
Bug: 259950106
Test: m android.hardware.wifi-update-api
Change-Id: Ia3c1aa7e709e4e611bf40757ae712a9e39cc043a
2023-01-11 15:43:03 +00:00
Phill Hayers
43d9af64dc Add AIDL definitions for NAN suspension.
Bug: 259950106
Test: Not tested.
Change-Id: I0194fc2a1d9f57ca6ba14f76f5453264e3af3cca
2023-01-11 15:42:03 +00:00
Biswarup Pal
11921783d5 Add suspendable option in NanDiscoveryCommonConfig
Test: m
Bug: 263014869
Change-Id: I0bef43f361a3773ff3e589d44afe4595ddd4e21f
2023-01-11 14:52:57 +00:00
Biswarup Pal
319f99f29a Add NAN suspension flag to NanCapabilities AIDL
Test: m
Bug: 262872127
Change-Id: I01d40c8e59f4553746882745a8662b5b0fb3e19a
2023-01-09 23:34:37 +00:00
Biswarup Pal
e8c390576e Merge "Revert^2 "[Aware] Support set cluster id in AIDL"" 2023-01-09 23:30:52 +00:00
Biswarup Pal
dc7192f7d8 Revert^2 "[Aware] Support set cluster id in AIDL"
465470a02e

Change-Id: I123022198f1c08c730be18eaa3c6deee3ce0604f
2023-01-09 21:21:14 +00:00
Sujit Kautkar
61ac390b0f Merge "Revert "[Aware] Support set cluster id in AIDL"" 2023-01-09 21:16:21 +00:00
Sujit Kautkar
465470a02e Revert "[Aware] Support set cluster id in AIDL"
Revert submission 20813956-issue-262873111-API-set-clusterId-newAPI

Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?branch=git_master&target=oriole-userdebug&lkgb=9469876&lkbb=9470237&fkbb=9469914, bug b/264915970

Reverted changes: /q/submissionid:20813956-issue-262873111-API-set-clusterId-newAPI

Bug: 264915970
Change-Id: Ifb3806a702f585700ce80a5979fdb2608b3d9eeb
2023-01-09 21:07:10 +00:00
Sherri Lin
db51ab9dbc Merge "[Aware] Support set cluster id in AIDL" 2023-01-09 19:04:12 +00:00
Shuibing Dai
e5fbcab1a3 Add a new AIDL API for wifi indoor/dfs channel usage
In the API, we can enable/disalbe STA-connected indoor or DFS channels for WFA GO, SAP and Wi-Fi Aware.

Bug: 207669954
Test: m android.hardware.wifi-update-api
Change-Id: I8513bc265fe8fc4f43d9e4b508d8c361f3455fd7
2023-01-05 18:18:32 -08:00
Sherri Lin
f6abe359a8 [Aware] Support set cluster id in AIDL
Bug: 262872131
Test: ates android.net.wifi
Change-Id: I08000c8200861c7fed191a079c5348158de41771
2023-01-03 16:44:50 +01:00
Nate Jiang
42091764f9 Fix the issue when convert byte to uint16
When convert byte to uint16, if the byte represent a negative number,
the high 8 bit of the uint16 will be all 1, which causes a mismatch.
Same as HIDL, convert byte to unit8 then fill into the uint16

Bug: 263690436
Test: cts SingleDeviceTest
Change-Id: Id9462dce48d2a2558c6b5c104866da66ce951b0e
2022-12-28 19:25:15 +00:00
Sunil Ravi
44a6de894d Merge "Wifi: check TLSV1.3 support in TLS test" 2022-12-21 17:52:46 +00:00
Gabriel Biren
7ee56e8f2d Merge "Add callback to the supplicant interface to allow supplicant to retrieve non-standard certificates from the client." 2022-12-21 16:53:10 +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
Nate(Qiang) Jiang
09403b0f57 Merge changes from topic "aware4"
* changes:
  Add Shim layer for new HAL about Aware pairing
  [HAL] Support Wifi Aware 4.0
2022-12-20 02:25:18 +00:00
Nate Jiang
38e8db5d92 Add Shim layer for new HAL about Aware pairing
Bug: 249185683
Test: None

Change-Id: I87792a2b44afc6fb0d127b3b90f28e369e551242
2022-12-19 22:47:48 +00:00
Nate Jiang
1590d09ac3 [HAL] Support Wifi Aware 4.0
Bug: 249185683
Test: vts

Change-Id: I769d3dfdefa74152c7d1e3b873399a9b4ecfbafd
2022-12-19 22:47:35 +00:00
TreeHugger Robot
64017373e8 Merge changes from topic "RTT_FR_U"
* changes:
  Add frequency/Bandwidth to AIDL RttResults
  wifi: Add frequency/Bandwidth to AIDL RttResults
2022-12-19 17:40:20 +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
f8fc237682 Add frequency/Bandwidth to AIDL RttResults
Bug: 222186547
Test: hardware/interfaces/wifi/aidl/default/tests/runtests.sh
Test: Manual - Verified the results using wifirttscan app
Change-Id: Ieaf022fa73767e62ae95e693a5cb062c7e002563
2022-12-16 22:03:21 +00:00
Mahesh KKV
0da2997163 wifi: Add radio_id and frequency to StaLinkLayerLinkStats
Bug: 258013268
Test: m android.hardware.wifi-update-api
Change-Id: I725144033cd33e59c201e459e036c2008a8cca58
2022-12-16 17:54:51 +00:00
Sunil Ravi
f6f6149640 wifi: Add frequency/Bandwidth to AIDL RttResults
Bug: 222186547
Test: hardware/interfaces/wifi/aidl/default/tests/runtests.sh
Test: Manual - Verified the results using wifirttscan app
Change-Id: I958d1e61ab3cf32caf9381579a06c376fe51c093
2022-12-16 02:37:06 +00:00
Mahesh KKV
5f30d333d2 wifi: Add Support for Multi-Link Layer stats in shim layer
With MLO, WiFi 7 supports establishing multiple links between the
Station and Access Point. Each of the link has its own stats.

To maintain backward compatibility, if multi link stats is not supported
by vendor, always fallback to single link layer stats.

Bug: 246988155
Test: hardware/interfaces/wifi/aidl/default/tests/runtests.sh
Change-Id: Iede8ce771f0e58975222808b1870e5e2e179384c
2022-12-15 02:39:32 +00:00