Commit graph

1775 commits

Author SHA1 Message Date
TreeHugger Robot
0e270ef5f1 Merge "Convert NAN enums that are used as bitmaps to an int." into udc-dev 2023-03-03 21:51:58 +00:00
TreeHugger Robot
b77c796280 Merge "Update comments to indicate whether NAN enums are used as an enum or a bitmask." into udc-dev 2023-03-03 21:45:15 +00:00
Gabriel Biren
53368fa332 Merge changes from topic "vendor-hal-bitmaps" into udc-dev
* changes:
  Update Vendor HAL service to use ints for bitmaps instead of using enums.
  Use an int to represent bitmaps in the Vendor HAL AIDL interface.
2023-03-03 21:21:34 +00:00
Gabriel Biren
86971aa04c Convert NAN enums that are used as bitmaps
to an int.

Bug: 267819850
Test: atest VtsHalWifiNanIfaceTargetTest
Change-Id: I6085c01fe6a7585fbdd8855bfdf183a75644ff80
2023-03-03 18:06:33 +00:00
Gabriel Biren
e817aeb699 Update comments to indicate whether NAN enums
are used as an enum or a bitmask.

Bug: 267819850
Test: m
Change-Id: I6625d017a5563f82e87a2ee9300bb2d880b9242a
2023-03-03 18:02:16 +00:00
TreeHugger Robot
4da12781df Merge "Update imports and argument comments in the NAN sections of the Vendor HAL interface." into udc-dev 2023-03-02 19:49:19 +00:00
Nate(Qiang) Jiang
39eee87484 Merge "Change the value of constant according to the spec" into udc-dev 2023-03-02 18:41:23 +00:00
Nate Jiang
cdf2ef0bac Change the value of constant according to the spec
Re-assign the value according to the Wifi Aware R4.0 section 9.5.21.1
Also correct several comments.

Bug: 269440402
Test: build
Change-Id: Ib3dd6365b2a28f871ec6ae3775ee8b9e9481475f
2023-03-01 13:58:36 -08:00
Gabriel Biren
3b86a78032 Update Vendor HAL service to use ints
for bitmaps instead of using enums.

Bug: 267819850
Test: m
Change-Id: I6fba3cd669d197229ff637c6326a94be624d5e6e
2023-03-01 21:30:40 +00:00
Gabriel Biren
008c1da031 Use an int to represent bitmaps in
the Vendor HAL AIDL interface.

Bug: 267819850
Test: atest VtsHalWifiChipTargetTest \
            VtsHalWifiStaIfaceTargetTest \
	    VtsHalWifiApIfaceTargetTest \
	    VtsHalWifiNanIfaceTargetTest \
	    VtsHalWifiRttControllerTargetTest
Change-Id: Ic72496c654067b2db97109cc3dc9ff50f1f1d1dd
2023-03-01 21:30:15 +00:00
TreeHugger Robot
b964c8b7be Merge "Update comments for the Aware 4.0 types in the Vendor HAL interface." into udc-dev 2023-03-01 20:31:36 +00:00
Gabriel Biren
e2d0de2093 Update imports and argument comments in the NAN
sections of the Vendor HAL interface.

Bug: 267819850
Test: m
Change-Id: Ic1b25239e5cf3a5cf8633c9d1108a4c200b1b861
2023-03-01 19:10:41 +00:00
Gabriel Biren
65192c3395 Update comments for the Aware 4.0
types in the Vendor HAL interface.

Specs should be included in the
relevant places.

Bug: 267819850
Test: m
Change-Id: I1f213774ebf5dc297225a5cabb757d2956d67bf4
2023-03-01 18:02:34 +00:00
Gabriel Biren
b59064517a Merge changes from topic "remove-radio-combo-matrix" into udc-dev
* changes:
  Update usages of WifiRadioCombinationMatrix in the Vendor HAL service.
  Remove the WifiRadioCombinationsMatrix type from the Vendor HAL interface.
2023-03-01 17:51:51 +00:00
Gabriel Biren
d1bd021607 Merge "Comment fixes for the Wifi Vendor HAL." into udc-dev 2023-02-25 00:40:22 +00:00
Gabriel Biren
263db45eae Update usages of WifiRadioCombinationMatrix in
the Vendor HAL service.

Bug: 267819850
Test: Run the gTest suite under default/tests
Change-Id: I18feb87f16abbc9ece9186b2e92e19984a5a90f0
2023-02-24 21:11:08 +00:00
Gabriel Biren
432807e44b Remove the WifiRadioCombinationsMatrix type from the
Vendor HAL interface.

We can return a list of WifiRadioCombinations instead.

Bug: 267819850
Test: atest VtsHalWifiChipTargetTest
Change-Id: I0f57df6262d36917dfd8cc3e27d6781e9b7c8dbf
2023-02-24 21:03:20 +00:00
Gabriel Biren
0c642ecd42 Comment fixes for the Wifi Vendor HAL.
Bug: 267819850
Test: m
Change-Id: Iaf8bd05482b87f8b0a56da8c4169413d1c6b7d0e
2023-02-22 21:09:26 +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
Gabriel Biren
dcd883ff85 Merge "Free version buffer in the Vendor HAL's XML parsing logic." into udc-dev 2023-02-21 17:55:07 +00:00
Gabriel Biren
204e17171b Free version buffer in the Vendor HAL's
XML parsing logic.

Fixes a minor memory leak that results from
not freeing that buffer.

Bug: 269520490
Test: Manual test
       1. Create several XML files under
          /vendor/etc/wifi/vendor_hals
       2. Modify the codepath to run the
          initVendorHalsDescriptorList method
	  (does not run by default on Pixel).
       3. Check that the XML parsing logic is
          working as intended.
Change-Id: I42944169b70c759998d94e8523d2aa55d0366ffd
2023-02-17 16:47:29 +00:00
Sunil Ravi
2be1f2688c Wifi: Add support to query and use driver advertised interface combination
Interface combinations in legacy-hal is predefined with
'WIFI_HAL_INTERFACE_COMBINATIONS' build flag. This change
allows the WiFi HAL to request all the possible interface
concurrency combinations via vendor HAL API,
wifi_get_supported_iface_concurrency_matrix(). Thus build time
dependency can be removed by querying the combination at runtime.

Bug: 249351396
Change-Id: I3bc85ac013490949aab71a00f60028bf5daee68c
Merged-In: I3bc85ac013490949aab71a00f60028bf5daee68c
Test: Build successfully
Signed-off-by: Purushottam Kushwaha <quic_pkushwah@quicinc.com>
(cherry picked from commit f68b9a2709)
2023-02-17 15:20:35 +00:00
Gabriel Biren
597ffa095d Merge "Remove unused DEBUG_PACKET_FATE capability from StaIfaceCapabilityMask." 2023-02-16 07:51:32 +00:00
Mahesh KKV
671f83152d Merge "Add a new AIDL API to set Multi-Link Operation mode" 2023-02-16 02:00:57 +00:00
Mahesh KKV
af05c5ef64 Merge "Add TID-to-Link mapping capability fields" 2023-02-16 01:27:52 +00:00
Mahesh KKV
6442e4a7f9 Merge "Fix multi-link llstat parsing in wifi legacy hal" 2023-02-15 23:58:58 +00:00
Gabriel Biren
dd47e716a0 Remove unused DEBUG_PACKET_FATE capability
from StaIfaceCapabilityMask.

Bug: 266521428
Test: atest VtsHalWifiStaIfaceTargetTest
Change-Id: If20728567cb8877ae54488480e13fd8541640b92
2023-02-15 23:55:02 +00:00
Nate(Qiang) Jiang
4496bcd4cf Merge "Modify HAL for Aware suspension mode" 2023-02-15 23:24:01 +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
Mahesh KKV
50358c1b1b Merge "Add a maximum MLO association link count" 2023-02-15 21:58:08 +00:00
maheshkkv
a8aba17891 Add a new AIDL API to set Multi-Link Operation mode
Bug: 268235139
Test: m android.hardware.wifi-update-api
Change-Id: Iff3baf64cb6c999eca4e1bfa4af5a41cfb5e4876
2023-02-15 13:02:09 -08:00
Nate(Qiang) Jiang
7c27e36771 Merge "Modify based on the vendor feedback" 2023-02-15 18:53:20 +00:00
Nate Jiang
d6cc331b87 Modify HAL for Aware suspension mode
- Add an event to know the device is suspended
- More status code
- Add pub_sub_id in the datapath request to build the relationship

Bug: 247913151
Test: build
Change-Id: I77733c1bca821b77fdab7ed1ed03c1e54c9373b2
2023-02-15 10:11:13 -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
maheshkkv
2565b87478 Add a maximum MLO association link count
Maximum MLO association link count can be an input for MLO scoring
logic. If the candidate AP has less number of links to associate,
scroring logic can give a weightage to an AP with matching links as
station Assumption here is when the environment becomes better, the
AP with less score now can be a better choice.

Bug: 269336948
Test: m android.hardware.wifi-update-api
Change-Id: Iac0c82203c9e1a23637c757f5b92f5b213bb5da6
2023-02-15 07:04:01 +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
Ye Jiao
dec38700bb Fix multi-link llstat parsing in wifi legacy hal
Multi-link llstat parsing codes in wifi legacy hal, specifically
'copyLinkStat' and 'copyPeerInfo', pass the output container parameter
'std::vector<>' by value instead of by reference. The result is the
copied 'LinkStats' list and 'WifiPeerInfo' list are discarded when
'copyLinkStat' and 'copyPeerInfo' return. The empty links list are
passed to framework and fails validity check in Wi-Fi framework and
leads to system server crash.

Fix this issue by passing 'stats' and 'peers' by reference.

Bug: 269049672
Test: Manual Test with multi-link llstat implementation integrated
Change-Id: If8c366213af2ffcb9f7b3c904e1541ed0ac2fea4
2023-02-15 01:23:06 +00:00
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
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
Blair Prescott
c4f8e466e6 Wifi: P2P VTS tests fail with no P2P support
Skip P2P tests if P2P is not supported.

Bug: 200064365
Test: run vts -m VtsHalWifiSupplicantP2pV1_4TargetTest
Change-Id: I6ba23bb27f24700980cab28d1ff806e5efc65ec9
(cherry picked from commit b676061cd5)
(cherry picked from commit 4d81b6562dca69a3334bcb87756539fbdaedcd2d)
2023-02-13 15:12:30 +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
caad2b9831 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
Merged-In: Id8f196386967c3023cb5ee308d31b8cdeed7df0b
Change-Id: Id8f196386967c3023cb5ee308d31b8cdeed7df0b
2023-01-30 11:27:22 +09: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
Mahesh KKV
131f47c221 wifi: Add multi link layer stats support to AIDL
Bug: 246988155
Test: mm -j
Change-Id: I9b31988215d3953da6dde80aa68ead9236659d50
2022-12-15 02:38:22 +00:00
Mahesh KKV
5fe40535ff wifi: Update vts test for GetLinkLayerStats()
Bug: 246988155
Test: atest VtsHalWifiStaIfaceTargetTest
Change-Id: I0f3f211f5ff5374834da60214d45bba1b8a47b7a
2022-12-15 02:36:07 +00:00
Mahesh KKV
43c7805bde wifi: Add unit test for multi link stats conversion
Bug: 246988155
Test: hardware/interfaces/wifi/aidl/default/tests/runtests.sh
Change-Id: Ia38601dfb7bb5e43ee3b3aeb2a4ea93c7bbcba75
2022-12-15 02:35:46 +00:00
Mahesh KKV
ba4d7fe337 wifi: Fix unit test for LegacyLinkLayerStats
Due to the introduction of multi links, StaLinkLayerStats carries stats
for multiple links as a vector. For LegacyLinkLayerStats, only single
link will be available. So convertLegacyLinkLayerStatsToAidl() push the
stats for single link as the first element of the link vector.Fix the
unit test to index the first link.

Bug: 246988155
Test: hardware/interfaces/wifi/aidl/default/tests/runtests.sh
Change-Id: I8c9a8beca6bda6cf894edb616cdfe54f09d029f7
2022-12-15 02:34:13 +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
TreeHugger Robot
db45b01064 Merge "Add setDtimMultiplier() and its implementation." 2022-12-13 00:45:32 +00:00
Sunil Ravi
4855621726 wifi: Legacy HAL support to get concurrent TDLS session count
Added a new field in chip capabilities to get the
maximum number of concurrent TDLS sessions supported
by the chip

Bug: 240247868
Test: Manual - STA connect/disconnect
Change-Id: I62fcd2d4a562b088cdeb4b04f72cfe55ed61241c
2022-12-12 20:20:38 +00:00
Sunil Ravi
dbd11bdd41 wifi: AIDL support to get concurrent TDLS session count
Added a new field in chip capabilities to get the
maximum number of concurrent TDLS sessions supported
by the chip

Bug: 240247868
Test: Manual - STA connect/disconnect
Test: m android.hardware.wifi-update-api
Change-Id: Ie2a4129241f40fc9eba28105b8ea3c06b27a8492
2022-12-12 20:20:35 +00:00
Mahesh KKV
c84d3770eb wifi: Add getWifiChipCapabilities() in shim layer
Bug: 231497844
Test: hardware/interfaces/wifi/aidl/default/tests/runtests.sh
Change-Id: Iba4f749999e9a2aa25455e09440a961188f049f9
2022-12-12 02:40:01 +00:00
Mahesh KKV
766953f20d wifi: Add AIDL support for getWifiChipCapabilities()
Define a new AIDL API to get capabilities from the vendor chip.
Bug: 231497844
Test: m android.hardware.wifi-update-api

Change-Id: I3c1cfce4df2101125a628f230b938b3be0f80311
2022-12-12 02:39:18 +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
Kai Shi
6d02d408aa Add setDtimMultiplier() and its implementation.
Bug: 259554744
Test: compile
Change-Id: Ifda9d857e7dff83c8163503e62081e39952c53d7
2022-12-09 18:33:40 -08:00
Gabriel Biren
f2efc21d5d Merge changes from topic "switch-to-aidl-vendor-hal"
* changes:
  Update VTS test dependencies.
  Update Vendor HAL APEX to use the AIDL service.
2022-12-09 18:01:54 +00:00
Nate(Qiang) Jiang
f75666df29 Merge "Create a snapshot of the hardware_legacy" 2022-12-09 03:19:00 +00:00
Nate Jiang
7a7fd84ce2 Create a snapshot of the hardware_legacy
Create a snapshot of hardware_legacy for legacy HIDL, to avoid any build breakage due to new hardware_legacy for the new AIDL. Should be removed with the HIDL when we finish the switch

Bug: 205044134
Test: build and CtsWifiTest

Change-Id: Ib1068112f6c90f2a41b68e20027d959c95798120
2022-12-08 09:38:52 -08: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
Gabriel Biren
bfc9931975 Update Vendor HAL APEX to use the AIDL service.
Bug: 205044134
Test: Check that AIDL service is running on a
      Bluejay device.
Change-Id: I5a09fe1a68fee871e6ff8fa338f4482500e6cf48
2022-12-07 23:49:53 +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
f3262f970d Add AIDL implementation for the vendor HAL service.
Bug: 205044134
Test: Pass AIDL VTS tests and regression tests.
Change-Id: Iad04ce01f71fc220443e05a4be05d7d5545227e8
2022-12-02 14:01:50 -08:00
Gabriel Biren
631a8118d7 Revert "Convert vendor HAL service to use new AIDL interface."
This reverts commit e58e263bce.

Reason for revert: Blocking Wembley team

Change-Id: I3cf471e88b880a95a0a2c39f47fb0804deee65cf
2022-12-01 22:29:32 +00:00
Gabriel Biren
e58e263bce Convert vendor HAL service to use new AIDL interface.
Bug: 205044134
Test: Pass AIDL VTS tests and regression tests.
Change-Id: I286ffbf67efddc6c34d34ebd9e9bd9f36139c962
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
kensun
a7e0a83c0e Add HAL APIs to query cached scan results
Add HAL API to retrieve the on-chip scan results.

Bug: 232030878
Test: New API works fine
Change-Id: I159aec819959e4ad020ee0d44c8110fe34d451b0
2022-11-10 02:26:50 +00:00
Gabriel Biren
590248f68e Add a null pointer check for wifi_chip in am: 4e6349240e am: 26b625704e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2279026

Change-Id: I3a56d4c73b2c3c40dfb650a32cd431f414b4ba7c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-05 07:13:36 +00:00
Gabriel Biren
26b625704e Add a null pointer check for wifi_chip in am: 4e6349240e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2279026

Change-Id: Ia67f4b0cca7ea6f5f55ce3857fd2c9df3169d4dd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-05 06:45:11 +00:00
Jaewan Kim
7df5c1c345 Disable verbose nlinterceptor log
Test: No verbose log on Cloud Android with Wi-Fi is turned on
Bug: 256518068
Change-Id: I062e698b64114f139997cd24b16f90dd52048247
2022-11-01 08:34:56 +09:00
Gabriel Biren
4e6349240e Add a null pointer check for wifi_chip in
configureChipToSupportIfaceTypeInternal.

Bug: 253411345
Test: atest VtsHalHostapdTargetTest
Change-Id: Ieb6de7311de8d98742e302b35196bee7fa7661ed
(cherry picked from commit b1c2d07e4e)
2022-10-31 22:09:14 +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
336c45c95d Merge "Add a null pointer check for wifi_chip in configureChipToSupportIfaceTypeInternal." am: 46417dd857 am: eb25ad2692 am: fc9f86a157
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2256003

Change-Id: I474e0c383db003edf0a046f41810bf1b5fb0f1de
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-18 18:30:12 +00:00
Gabriel Biren
b1c2d07e4e Add a null pointer check for wifi_chip in
configureChipToSupportIfaceTypeInternal.

Bug: 253411345
Test: atest VtsHalHostapdTargetTest
Change-Id: Ieb6de7311de8d98742e302b35196bee7fa7661ed
2022-10-17 16:25:07 +00:00
Kenn Frankel
22f5a24b17 Merge "AOSP counterpart of wifi hal apex" am: 2b49939f33 am: fad5dead0f am: 763c1896ab
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2239855

Change-Id: I35e09988ea1a8fceb6de20e31e731261e0d4c4c5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-14 02:56:05 +00:00
Kenn Frankel
e85de1d957 AOSP counterpart of wifi hal apex
Bug: 247018693
Test: CtsWifiTestCases
Change-Id: I5deb95b4cc0c1075f65bc809ca256df91ce9a9bb
2022-10-07 22:13:38 +00:00
Treehugger Robot
ad4f2563a9 Merge "Disable some sanitizers on libnlinterceptor targets." am: 481337da0a am: 8f467b85c4 am: 1813415c3f am: a6fb0adec5 am: d80d2df338
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2239862

Change-Id: I708d62dd47a7be9b9b5a60992a568fd8264623ab
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-04 01:02:54 +00:00
Peter Collingbourne
f10ee08f84 Disable some sanitizers on libnlinterceptor targets.
ASan is not meant to be enabled in production binaries, and the fuzzer
"sanitizer" is only intended to be used with fuzz targets. So disable
both of them.

Change-Id: Ice7d8d3fd6621077d485b430d9e06fb3ba240e87
2022-09-30 18:08:28 -07:00
Les Lee
3ba02e052b wifi: Two AP instances use the same interface name
When device supports two AP interfaces (i.e. {AP, 2}. not a bridged case),
the AP interface name might be observed from the getPredefinedApIfaceNames.
Check if the interface name is used or not when creating a new interface.

Bug: 244387442
Test: Manual test by commands
adb shell cmd wifi start-softap tetheredAp open -b 2
adb shell cmd wifi start-lohs lohs open -b 5

Change-Id: I59b3796895ee09452a9650c4dc138ad9e143282e
2022-09-08 02:02:22 +00:00
Treehugger Robot
08f3ea9e97 Merge changes from topic "cp-libwifihal-soong"
* changes:
  Build libwifi-hal-* modules only for the first arch
  android.hardware.wifi@1.0-service in soong
2022-08-22 02:30:56 +00:00
donghongweng
3e559f9c05 Fix unqualified-std-cast-call compiler warning am: f533ccb14e am: e3b2140f84 am: 930c93ed76 am: 599f7c0175 am: fd470c4c62
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2184585

Change-Id: I37a50edec8e523ca4ed68e8b5534248670de72f6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-19 07:45:20 +00:00
Xin Li
be8ea4d3a8 Merge android12L-tests-dev@8941410
Change-Id: I39565ad6a87b2fdd6172675441e012943f5376b1
2022-08-17 22:38:00 -07:00
donghongweng
f533ccb14e Fix unqualified-std-cast-call compiler warning
Test: m
Change-Id: I403ce701846a3d3582e1dfa5557fe981e86f2140
2022-08-17 15:49:59 +08:00
Jiyong Park
46afe63eaf Build libwifi-hal-* modules only for the first arch
Previously, the build rules assumed that the target supports both 64 and
32 bit architectures, which isn't true for 32-bit-only targets. That
caused build breakage on such targets. Fixing that by building the
modules only for the first architecture (64 on 64-only or 64/32 target,
and 32 on 32-only target).

Bug: 241916304
Test: build the 32-bit-only target
Merged-In: I5353ab1561622eae12e2dff87eb0f17b47c3773d
Change-Id: I5353ab1561622eae12e2dff87eb0f17b47c3773d
(cherry picked from commit 3ab5c90104)
2022-08-17 16:41:19 +09:00
Jooyung Han
1e6cdac0bc android.hardware.wifi@1.0-service in soong
As libwifi-hal is migrated to soong, the service is migrated to soong as
well.

Bug: 240099735
Test: CtsWifiTestCases
Merged-In: Ie5a4ec6658d5f6aa3d4902c9c3c4b3bef9ff1cde
Change-Id: Ie5a4ec6658d5f6aa3d4902c9c3c4b3bef9ff1cde
(cherry picked from commit c4ac3355a6)
2022-08-17 16:41:10 +09:00
Jiyong Park
3ab5c90104 Build libwifi-hal-* modules only for the first arch
Previously, the build rules assumed that the target supports both 64 and
32 bit architectures, which isn't true for 32-bit-only targets. That
caused build breakage on such targets. Fixing that by building the
modules only for the first architecture (64 on 64-only or 64/32 target,
and 32 on 32-only target).

Bug: 241916304
Test: build the 32-bit-only target
Change-Id: I5353ab1561622eae12e2dff87eb0f17b47c3773d
2022-08-12 13:42:56 +09:00
Jooyung Han
c4ac3355a6 android.hardware.wifi@1.0-service in soong
As libwifi-hal is migrated to soong, the service is migrated to soong as
well.

Bug: 240099735
Test: CtsWifiTestCases
Change-Id: Ie5a4ec6658d5f6aa3d4902c9c3c4b3bef9ff1cde
2022-07-25 17:53:35 +09:00
Gabriel Biren
23ffe48a55 Merge "Add WiFi Vendor HAL AIDL interface definitions." am: 1bdfe39266 am: c75dd7f4bb am: f657125ec7 am: 35d8198274 am: 3c1e51ebd3
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2078202

Change-Id: Iced875c4506795405bcc5353def89711185c45b0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-14 17:58:39 +00:00
Gabriel Biren
c75dd7f4bb Merge "Add WiFi Vendor HAL AIDL interface definitions." am: 1bdfe39266
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2078202

Change-Id: Icf2fb7abdd0cb0fe825e70ea03fcd51686bf2c09
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-14 16:27:09 +00:00