Commit graph

1798 commits

Author SHA1 Message Date
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
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
1bdfe39266 Merge "Add WiFi Vendor HAL AIDL interface definitions." 2022-07-14 16:10:58 +00:00
Les Lee
73e015a761 Merge "wifi: create interface before running hostapd vts" into stage-aosp-tm-ts-dev 2022-07-12 03:04:29 +00:00
Gabriel Biren
910d5df56b Add WiFi Vendor HAL AIDL interface definitions.
Bug: 205044134
Test: mm -j
BYPASS_INCLUSIVE_LANGUAGE_REASON=HE refers to high-efficiency.

Change-Id: I757f36feca9f30ad5e04204b7b0fd4caee63cabc
2022-07-08 18:15:00 +00:00
Gabriel Biren
dd789ad9dc Update supplicant AIDL VTS tests to use the new
version of stopWifiFramework().

Bug: 234853504
Test: atest VtsHalWifiSupplicantStaIfaceTargetTest \
            VtsHalWifiSupplicantStaNetworkTargetTest \
	    VtsHalWifiSupplicantP2pIfaceTargetTest # AIDL service
Change-Id: I9e06f025a5b6b44d6a6caf8362c64bd5a546e1ac
(cherry picked from commit 99bb148510)
Merged-In: I9e06f025a5b6b44d6a6caf8362c64bd5a546e1ac
2022-07-07 18:28:55 +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
Les Lee
912469a468 wifi: create interface before running hostapd vts
Adding to support creating interface in hostapd vts.

cp from aosp/2116501

Bug: 230008250
Test: 1. setprop ro.vendor.wifi.sap.interface swlan0
2. vts-tradefed run commandAndExit vts
--skip-all-system-status-check --primary-abi-only
--skip-preconditions --module VtsHalWifiHostapdV1_2Target
-l INFO

Change-Id: I483671cb01b68bc6f5ac4840c61b10f4c31f10e4
Merged-In: I483671cb01b68bc6f5ac4840c61b10f4c31f10e4
2022-07-07 15:52:59 +00:00
Les Lee
ef173b29c2 resolve merge conflicts of 155f20a6cd to android12-tests-dev am: 559df942c8 am: a7ce9003ed am: 45263c60fa am: 2edd0e9db6 am: 830175321b am: 01b93be75c am: b520b3555f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2141153

Change-Id: I162bae22aa97e5096c00b7e3750896d401f1c645
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-01 06:45:58 +00:00
Les Lee
2edd0e9db6 resolve merge conflicts of 155f20a6cd to android12-tests-dev am: 559df942c8 am: a7ce9003ed am: 45263c60fa
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2141153

Change-Id: I96b950e95d8e7295f6f8d65a8116eba8537d45f6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-01 05:20:53 +00:00
Les Lee
45263c60fa resolve merge conflicts of 155f20a6cd to android12-tests-dev am: 559df942c8 am: a7ce9003ed
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2141153

Change-Id: Ia0adbb9811961ec400326a3e11a0cc0168e8e0c5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-01 05:05:07 +00:00
Les Lee
a7ce9003ed resolve merge conflicts of 155f20a6cd to android12-tests-dev am: 559df942c8
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2141153

Change-Id: Id18ad120af3812f613b9b14888b96e4e90b50cfc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-01 04:48:29 +00:00
Chris Ye
04b7d70609 Merge "Enable the tracing for Wifi supplicant and hostapd HAL." am: 235abdf23c am: 0fa30da096 am: 3b9f5d2553 am: 96f1efb831 am: e421a8e872
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2140840

Change-Id: I4838fb76ed9465b65299bf033266b11ad3a45205
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-30 19:07:03 +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
Les Lee
559df942c8 resolve merge conflicts of 155f20a6cd to android12-tests-dev
Test: I solemnly swear I tested this conflict resolution.
Bug: 237593038
Change-Id: I6cce0869b6cce7b5e41b71c67991061e226bb305
2022-06-30 05:37: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
Gabriel Biren
c33f1282d8 In supplicant VTS test setup, make sure that the
wifi hal is stopped before starting wifi.

Bug: 234853504
Test: atest VtsHalWifiSupplicantV1_0TargetTest # HIDL service
Change-Id: I413c3803a6607a72cc3aa8a5fa208551be1b1032
(cherry picked from commit bfe60cda4d)
Merged-In: I413c3803a6607a72cc3aa8a5fa208551be1b1032
2022-06-29 16:41:51 +00:00
Treehugger Robot
8656a87385 Merge "In supplicant VTS test setup, make sure that the wifi hal is stopped before starting wifi." into android12-tests-dev am: e6c80028af
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2128497

Change-Id: I9e39d4ed48c0dc653a9ee312021e6e80e351fe00
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-29 03:08:47 +00:00
Jooyung Han
c3f8861bb8 Merge "Remove AIDL-libs from VNDK" 2022-06-20 01:15:09 +00:00
Gabriel Biren
9ea484ffc0 In supplicant VTS test setup, make sure that the
wifi hal is stopped before starting wifi.

Bug: 234853504
Test: atest VtsHalWifiSupplicantV1_0TargetTest # HIDL service
Change-Id: I413c3803a6607a72cc3aa8a5fa208551be1b1032
(cherry picked from commit bfe60cda4d)
2022-06-16 18:01:15 +00:00
Gabriel Biren
62671c90f1 Merge changes I9e06f025,I413c3803 am: 7b27d7bcc6 am: 380f7e1461 am: fcf7b3d82d am: d6c583fabb am: c315bdd501
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2126372

Change-Id: I63443f0f2dd770dc866fad4a5788bd7089faf1df
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-16 17:59:08 +00:00
Gabriel Biren
fcf7b3d82d Merge changes I9e06f025,I413c3803 am: 7b27d7bcc6 am: 380f7e1461
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2126372

Change-Id: I8980679e592d921e136b1aedf64c88220fa711a0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-16 16:46:23 +00:00
Gabriel Biren
99bb148510 Update supplicant AIDL VTS tests to use the new
version of stopWifiFramework().

Bug: 234853504
Test: atest VtsHalWifiSupplicantStaIfaceTargetTest \
            VtsHalWifiSupplicantStaNetworkTargetTest \
	    VtsHalWifiSupplicantP2pIfaceTargetTest # AIDL service
Change-Id: I9e06f025a5b6b44d6a6caf8362c64bd5a546e1ac
2022-06-15 00:04:50 +00:00
Gabriel Biren
bfe60cda4d In supplicant VTS test setup, make sure that the
wifi hal is stopped before starting wifi.

Bug: 234853504
Test: atest VtsHalWifiSupplicantV1_0TargetTest # HIDL service
Change-Id: I413c3803a6607a72cc3aa8a5fa208551be1b1032
2022-06-15 00:01:29 +00:00
Jooyung Han
d81d6a12be Remove AIDL-libs from VNDK
Some are still in VNDK because they are used in other VNDK libs.

Bug: 234181591
Test: m
Merged-In: If999df9c78a20df931177da11742b1c5de19bc08
Change-Id: If999df9c78a20df931177da11742b1c5de19bc08
2022-06-14 16:42:42 +09:00
Jooyung Han
c0b24f4f13 Remove AIDL-libs from VNDK
Some are still in VNDK because they are used in other VNDK libs.

Ignore-AOSP-First: some libs are still in internal master only.

Bug: 234181591
Test: m
Merged-In: If999df9c78a20df931177da11742b1c5de19bc08
Change-Id: If999df9c78a20df931177da11742b1c5de19bc08
(cherry picked from commit 5527adfd7f)
2022-06-14 14:08:59 +09:00
Les Lee
42147b7b5b wifi: create interface before running hostapd vts
Adding to support creating interface in hostapd vts.

Bug: 230008250
Test: 1. setprop ro.vendor.wifi.sap.interface swlan0
2. vts-tradefed run commandAndExit vts
--skip-all-system-status-check --primary-abi-only
--skip-preconditions --module VtsHalWifiHostapdV1_2Target
-l INFO

Change-Id: I483671cb01b68bc6f5ac4840c61b10f4c31f10e4
2022-06-07 10:17:30 +08:00
Jooyung Han
5527adfd7f Remove AIDL-libs from VNDK
Some are still in VNDK because they are used in other VNDK libs.

Ignore-AOSP-First: some libs are still in internal master only.

Bug: 234181591
Test: m
Change-Id: If999df9c78a20df931177da11742b1c5de19bc08
2022-06-02 17:43:19 +09:00
Sunil Ravi
20022e6e0e Merge "wifi: Clear ring bufffers on detecting buffer corruption" into tm-dev am: 60931f8ec6 am: 78ce85df3b am: 74a83dc69e am: d7f5e9d111
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/18451407

Change-Id: Ieccb0de85deb38ccc1bfa269467113d9861234a7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-24 06:13:37 +00:00
Sunil Ravi
07ef191b5a wifi: Clear ring bufffers on detecting buffer corruption
While appending the newly received buffer to ring buffer list,
check the size of the first buffer in the ring buffer list.
If it is invalid(zero size or exceeding the max allowed size),
return failure & clear all the ring buffers.

Bug: 232477451
Test: vts test - 1.6/default/tests/runtests.sh
Test: Manual - Ran basic wifi tests & checked bugreports

Change-Id: Iaa41262f534914b971fe178053f1974248a46e70
2022-05-23 11:20:57 -07:00
TreeHugger Robot
feb228ea96 Merge "Check and catch the callback transaction error" into tm-dev am: 1fd86d9b89 am: b6a3ac316d
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/17945762

Change-Id: I31432aa39b3b82b7133d97cc8c4bf4770a44250e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-28 03:27:28 +00:00
TreeHugger Robot
1fd86d9b89 Merge "Check and catch the callback transaction error" into tm-dev 2022-04-28 02:10:35 +00:00
Isaac Chiou
a184fed8c5 Merge "Add HAL APIs for TX power limits" into tm-dev am: 59878fddc9 am: fae09234ab
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/17219203

Change-Id: I6110b3c7454e528f8e3c06c9d5972913dcb791d1
Ignore-AOSP-First: this is an automerge
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-26 07:26:33 +00:00
Isaac Chiou
59878fddc9 Merge "Add HAL APIs for TX power limits" into tm-dev 2022-04-26 06:32:30 +00:00
Nate Jiang
95939ed300 Check and catch the callback transaction error
Bug: 230277359
Test: vts VtsHalWifiRttV1_6TargetTest
Change-Id: Ibcccd0d60d6907c95cfa95c0e55501248bc65e4b
2022-04-25 13:08:38 -07:00
Isaac Chiou
52afeb68e3 Add HAL APIs for TX power limits
To lower the instantaneous battery current draw of WiFi, we provide
a way to allow PowerManager to enable/disable Tx power limits.
In the legacy HAL, we call the API in Broadcom HAL to
enable/disable WiFi TX power limits.

Bug: 215193418
Test: New APIs work fine
Change-Id: I1fbe71c3380514e2eba96adc5902d2028a55e006
2022-04-21 11:20:44 +08:00
Jiyong Park
8065d19402 Freeze AIDL APIs for TM am: 70f5837e1f am: 9f7c8a1e57
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/17753326

Change-Id: Ic29d57a4d099e472e2c88ba9cac77d7657aa958a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-20 16:47:16 +00:00
Jiyong Park
70f5837e1f Freeze AIDL APIs for TM
Bug: 225941299
Test: m
Change-Id: I61eb51c0334eb99489c6f1570110d7e18c350c99
2022-04-16 07:03:24 +09:00
Les Lee
cbdf2660dd Merge "wifi: Fix single AP iface isn't deleted" into tm-dev am: 3adf36824f am: 3d39f8aa85
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/17652548

Change-Id: Ic01b23ac7fa073336e12806267fd569833549a02
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-15 02:17:05 +00:00
Les Lee
3adf36824f Merge "wifi: Fix single AP iface isn't deleted" into tm-dev 2022-04-15 01:23:55 +00:00
Les Lee
5f29a4d847 wifi: Fix single AP iface isn't deleted
Bug: 222599182
Test: Manual Test, the AP iface is deleted.
Change-Id: I07faf0afcd1f69af4ef57204ceac02c2572453f2
2022-04-12 07:35:53 +00:00
Sunil Ravi
79233abcd5 Merge "wifi: Fix for returning wrong radio combinations matrix" into tm-dev am: b51d11fb6d am: 0a1dd60920
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/17618828

Change-Id: I57cb45e8c62dc11df43dc0ace9d847a3359cbd50
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-07 03:32:03 +00:00
Sunil Ravi
b51d11fb6d Merge "wifi: Fix for returning wrong radio combinations matrix" into tm-dev 2022-04-07 03:03:58 +00:00
Sunil Ravi
25c8c53725 wifi: Fix for returning wrong radio combinations matrix
Allocate memory in heap for carrying radio combinations matrix
from driver/firmware to wifi HAL.

Bug: 225764376
Bug: 225762955
Test: atest WifiChipHidlTest

Change-Id: I1049f7ab9f16a35a87b7cda34ba31797fde046e3
2022-04-06 05:32:27 -07:00
Jiyong Park
cf2bf1a1c1 Freeze AIDL APIs for TM am: 703e97920e am: 6965d70cec
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/17314883

Change-Id: Ic25535c3e72cd1f9c75cd4bc2d1eed1b617603fe
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-02 01:07:38 +00:00
Jiyong Park
6965d70cec Freeze AIDL APIs for TM am: 703e97920e
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/17314883

Change-Id: Id3c165d4bf00ef348488ebf20da7bec66278287c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-02 00:47:11 +00:00
Jiyong Park
7faedf81a0 Merge changes from topic "aidl_freeze_tm" into tm-dev
* changes:
  Implement getInterfaceHash/Version for SoundTrigger
  Add -Wno-missing-permission-annotation for soundtrigger3
  V3 is the latest version of keymaster HAL interface
  Freeze AIDL APIs for TM
2022-04-02 00:15:20 +00:00
Chris Ye
dd07290bbc Merge "Fixed HostApd VTS test failure." into tm-dev am: bc43c2f896
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/17457595

Change-Id: I92a83005fd9ac2a4a618af0b2cb91c7469ec30c8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-31 16:38:45 +00:00
Chris Ye
bc43c2f896 Merge "Fixed HostApd VTS test failure." into tm-dev 2022-03-31 16:25:38 +00:00
Ahmed ElArabawy
064297b3e1 Merge "Replace instances of strncpy and sprintf in the wifi vendor HAL with strlcpy and snprintf." into tm-dev am: 98b2a2079c
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/17507356

Change-Id: I35df03b86e76b7459b4270f8eb83f73bf3a99d86
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-31 04:09:50 +00:00
Jiyong Park
703e97920e Freeze AIDL APIs for TM
Bug: 225941299
Test: m
Change-Id: Ie41cc0797710f813f92c65c387f247c7806d8394
2022-03-31 12:01:39 +09:00
Gabriel Biren
11d4ab8f61 Replace instances of strncpy and sprintf in the wifi
vendor HAL with strlcpy and snprintf.

Bug: 218897284
Test: m
Change-Id: I0a62d1c5043cabcf6a513b8b082ad1d7a1ea451c
2022-03-31 00:10:29 +00:00
Chris Ye
c04af1c235 Fixed HostApd VTS test failure.
Add filed in hwModeParams.maximumChannelBandwidth for Non-ACS AP
interface.
Use HAL AP iface name instead of hardcoding constant.

Bug: 226872346
Test: atest VtsHalHostApdTargetTest
Change-Id: Ic5eacb99659a27cb18536a1c11f9027c13281862
2022-03-28 18:45:14 -07:00
Sunil Ravi
c3a63e11d7 Merge "wifi: Remove RxFilter Tests from VTS test suite" into tm-dev am: 4803336d43
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/17305803

Change-Id: I0e1f872080d6fe8bb9cdb9221cde860589d43a0c
2022-03-22 17:19:37 +00:00
Sunil Ravi
4803336d43 Merge "wifi: Remove RxFilter Tests from VTS test suite" into tm-dev 2022-03-22 16:58:57 +00:00
Sunil Ravi
13c5375859 wifi: Remove RxFilter Tests from VTS test suite
APF is the latest packet filter supportered in Android.
So remove the tests related to deprecated RXFILTER
commands.

Bug: 217233384
Test: atest VtsHalWifiSupplicantStaIfaceTargetTest
Change-Id: I1eb2558fe17f1f7e468440fb541aaadff215b542
2022-03-21 18:32:06 -07:00
Nate(Qiang) Jiang
a682a3be3c Merge "[VTS] test new API with success result" into tm-dev am: 791fe0542c
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/17211562

Change-Id: I4fe380a6d31de657508c4799abaa1fcf4de2541c
2022-03-18 20:40:36 +00:00
Chris Weir
64e3ec2155 Add clearPollErr to Socket
nlproxy gets stuck if a POLLERR is encountered, and I found a CL that
suggests the only way to clear the error is to recv (which should return
zero bytes in theory) on that socket.

Bug: 224850481
Test: nlproxy works
Change-Id: Ib1420ce542deeb35977223baf787bdee1b125110
2022-03-16 13:11:57 -07:00
Nate Jiang
76dd9336ad [VTS] test new API with success result
Bug: 222654265
Test: atest VtsHalWifiNanV1_6TargetTest
Change-Id: I2e25ddafa4bf9caf0110a35f328330329fab8581
2022-03-15 16:41:21 -07:00
Chris Weir
3b825489f2 Merge "Fix VtsHalNetlinkInterceptorV1_0Test" 2022-03-09 20:53:24 +00:00
Chris Weir
c5131093b1 Fix VtsHalNetlinkInterceptorV1_0Test
Move library dependencies to static_libs to fix linker error when
running with ABI=armeabi-v7a

Bug: 222019884
Test: atest VtsHalNetlinkInterceptorV1_0Test -- --abi armeabi-v7a
Change-Id: I3566f1898b3b3fe89fcb69563b1dbd93789135dd
2022-03-08 20:20:01 +00:00
Chris Weir
975ff6b2f2 Fix VtsHalNetlinkInterceptorV1_0Test
Move library dependencies to static_libs to fix linker error when
running with ABI=armeabi-v7a

Bug: 222019884
Test: atest VtsHalNetlinkInterceptorV1_0Test -- --abi armeabi-v7a
Change-Id: I3566f1898b3b3fe89fcb69563b1dbd93789135dd
2022-03-08 11:00:18 -08:00
Sunil Ravi
5cfd323e13 wifi: VTS test for getSupportedRadioCombinationsMatrix
This change added,
1. VTS test for getSupportedRadioCombinationsMatrix()
2. Skip test for getUsableChannels_1_6 if vendor doesn't
support

Bug: 220201314
Bug: 221389141
Bug: 220225758
Test: atest WifiChipHidlTest
Change-Id: I5ddbd4be68d74f1fa26584c94d5b10211261cc1a
2022-03-01 20:42:23 +00:00
Nate Jiang
d7bad8cf80 [VTS] Add test for new HAL API
Bug: 220222961
Test: vts VtsHalWifiNanV1_6TargetTest
Change-Id: Ibcc4cc00c21e553a68bb69946497acad79b273f3
2022-02-28 15:57:13 -08:00
Nate Jiang
eac80de7c3 [VTS] fix getCapabilitiesRequest_1_5 issue
Bug: 218970943
Test: vts VtsHalWifiNanV1_5TargetTest
Change-Id: I4188134b9a02930661ca8c1ea7f6c5a153b87b33
2022-02-28 11:08:43 -08:00
Quang Luong
25dc0afe39 Merge "Add VTS test for V1_6::IWifiChip::getAvailableModes_1_6" into tm-dev 2022-02-25 15:51:02 +00:00
TreeHugger Robot
55e97e5bef Merge changes from topic "presubmit-am-449268fd2d8f40eb8f329fe53374868e"
* changes:
  [automerge] Change the expected AP iface index when dual STAs supported. 2p: 89b3de718d 2p: 6ec42b402c
  [automerge] Change the expected AP iface index when dual STAs supported. 2p: 89b3de718d
  Change the expected AP iface index when dual STAs supported.
2022-02-25 04:15:47 +00:00
TreeHugger Robot
a2c1d763bd Merge "Change the expected AP iface index when dual STAs supported." into tm-dev 2022-02-25 04:15:47 +00:00
Chih-hung Hsieh
34593d4e2a Merge "Add timed out test files to tidy_timeout_srcs" am: ff54f73b4f am: fa83970b3a am: 581616e658
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1992232

Change-Id: I2eac13fe3b5ab0b4f15d6ceadf376e5e74124a81
2022-02-24 01:32:09 +00:00
Chih-hung Hsieh
fa83970b3a Merge "Add timed out test files to tidy_timeout_srcs" am: ff54f73b4f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1992232

Change-Id: Ic6072a539d185abc0bcce2ef1dd4a96ddf70e3b8
2022-02-24 00:40:48 +00:00
Chih-hung Hsieh
ff54f73b4f Merge "Add timed out test files to tidy_timeout_srcs" 2022-02-24 00:21:18 +00:00
Chris Ye
89b3de718d Change the expected AP iface index when dual STAs supported.
When the HAL support dual STAs, AP should start with idx 2.

Bug: 220338166
Test: atest -c android.hardware.wifi@1.0-service-tests
Change-Id: Ic3780ea346417cf878b94e4ead8fc3eff22baf8f
2022-02-23 15:54:06 -08:00
Quang Luong
6bdc75249b Add VTS test for V1_6::IWifiChip::getAvailableModes_1_6
Bug: 220222963
Test: atest VtsHalWifiV1_6TargetTest
Change-Id: I76908ae0e69f8e1b07a654062b1bd0122e0dd910
2022-02-23 11:27:31 -08:00
Gabriel Biren
758e5b37fe Add bssid to onEapFailure callback method.
Bug: 165342942
Test: atest VtsHalWifiSupplicantStaIfaceTargetTest
Change-Id: I188ab7c5dbabd48220d38c66a46003ad3630721c
2022-02-23 17:09:00 +00:00
Gabriel Biren
0453f81fb6 Merge "wifi: Add qosPolicyRequestId in definition of supplicant AIDL APIs" into tm-dev 2022-02-22 20:20:18 +00:00
Treehugger Robot
6d4fd1620c Merge "Add @PropagateAllowBlocking tag to supplicant methods that return an interface." am: 4965e27b86 am: 1331953ef3 am: 24d6da2df8
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1964740

Change-Id: I979a22233e74337a0c50c22820455e142db014d1
2022-02-22 18:31:53 +00:00
Treehugger Robot
1331953ef3 Merge "Add @PropagateAllowBlocking tag to supplicant methods that return an interface." am: 4965e27b86
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1964740

Change-Id: If47724de35d8399d0e391a29a4aa92aa4e1dbbd7
2022-02-22 17:28:45 +00:00
Shivani Baranwal
65f6167f5f wifi: Add qosPolicyRequestId in definition of supplicant AIDL APIs
This CL is to add param qosPolicyRequestId in the supplicant AIDL
APIs needed for QoS policy feature. This param contains the
dialog token information of the Qos Policies.

Bug: 191426881
Test: atest VtsHalWifiSupplicantStaIfaceTargetTest
Change-Id: I31f9bf6006652ac8c75cbdfba231535bfd676ecd
2022-02-22 17:17:11 +00:00