Commit Graph

63 Commits

Author SHA1 Message Date
qiangjiang
99ce358cb8 Add bootstrapping_instance_id to make this value more clear
Bug: 354820259
Test: TH
Change-Id: Idf793f42c21cb395fac749c1f71d29ce8e95aa52
2024-08-21 21:46:46 +00:00
Gabriel Biren
b46f53270a Handle additional WifiBand cases in
convertAidlWifiBandToLegacy.

Several cases related to 6 Ghz are
not currently handled.

CL is adapted from aosp/3015819
which was developed for HIDL.

Bug: 331453855
Test: m
Change-Id: Ide86ef46eb6fbe3c4dd8648230ad5bf8a8112203
2024-04-03 21:11:41 +00:00
Gabriel Biren
2ccf70f569 Temporarily print the size of all
variable-length fields in StaLinkLayerStats.

Will be used to verify whether
abnormally large instances of this class
can cause getLinkLayerStats to fail with
an IllegalArgumentException.

Bug: 324519882
Test: Manual test:
       1. Reboot device
       2. Connect to wifi
       3. Verify logged link layer stats
Change-Id: I9378c7e4c2befd98743eb0752fe00cd322110c0f
2024-02-21 19:18:33 +00:00
Mahesh KKV
ea414bf237 Add number of spatial streams for 11az results
Bug: 317922145
Test: m
Change-Id: I28bedde8e5ffc5c34c9f8b26ee4a3ae06974a481
2024-01-02 20:16:12 -08:00
Gabriel Biren
f8e4a123d8 Address ANAPIC feedback for Supplicant V3
and Vendor HAL V2.

Comments addressed include:
- Indicate version where methods were
  deprecated.
- Bitmasks should use an int rather
  than an enum.
- Use 'us' suffix instead of 'micros'
  for consistency with the rest of
  the interface.

Bug: 317404786
Test: m
Change-Id: I026479aaa3f358913f61c6505ff9dccb0edc5ae8
2023-12-27 00:46:04 +00:00
maheshkkv
6339cde065 Fix 11az non-TB measurment time unit
Bug: 295619650
Test: m
Change-Id: I8a0cc8d59db939cfc5adfd6e3ce5d6817db0a2f8
2023-12-14 12:46:28 -08:00
maheshkkv
31b0948915 Add I2R and R2I 11az LTF repetition count
Add IEEE 802.11az LTF repetition count for both I2R and R2I in 11az
RTT ranging result. Also remove the LTF repetition count from RTT
capabilities and config. The reason for removing is that vendor
software can pick the optimized value without an input from
framework.

Bug: 295619650
Test: m
Change-Id: I54b3ba9f490a9de83ac63b1dcde1e1cb4e1bd8fc
2023-12-13 10:17:10 -08:00
Mahesh KKV
87ee8c7f9a Merge "Add TWT support for vendor HAL" into main 2023-12-12 21:36:47 +00:00
maheshkkv
3990382e47 Add TWT support for vendor HAL
Bug: 296108122
Test: m
Change-Id: I897d405567a23e3c30ca46dce49c52dc939b508c
2023-12-12 10:31:54 -08:00
Kai Shi
2d5f8ca95f Merge "Add capability bit for the cached scan data feature" into main 2023-12-11 23:21:33 +00:00
Kai Shi
df7736245f Add capability bit for the cached scan data feature
Test: compilation
Bug: 269485350
Change-Id: I94fe5ae67a777bec955794ccd4dba7ea43b3c9aa
2023-12-11 11:50:21 -08:00
Mahesh KKV
c1f2c5e643 Merge "Add HAL support for IEEE 802.11 az ranging" into main 2023-12-11 18:35:31 +00:00
Les Lee
94378bed55 Merge "wifi: Supports new feature flag about Voip mode" into main 2023-12-09 00:48:08 +00:00
Nate Jiang
4dbabdd0ef Merge "Add discovery session in the bootstrapping request and respond" into main 2023-12-08 19:15:09 +00:00
Kai Shi
a0fc82730d Merge "Add the HAL support for getCachedScanResult." into main 2023-12-07 22:02:48 +00:00
divya.n1
b8c242abc7 Add capability bit for the roaming mode feature
in the Vendor HAL interface.

Bug: 269196966
Test: m

Change-Id: I0d4e5ed922d88f8e557509d3aa1808e168b5a077
2023-12-07 18:37:03 +00:00
Nate Jiang
b7ec0384da Add discovery session in the bootstrapping request and respond
Bug: 292462023
Test: atest SingleDeviceTest
Change-Id: I8ec57f5f2af14ccb546c452b82c62652c43f0d4e
2023-12-07 10:22:28 -08:00
maheshkkv
7d422812c7 Add HAL support for IEEE 802.11 az ranging
Bug: 295619650
Test: m
Change-Id: Ieba17a1414afa8fddca7d0d87e786c760c6789e5
2023-12-06 22:38:20 -08:00
Les Lee
b792cda368 wifi: Supports new feature flag about Voip mode
ag/25582780 is the vts for this aidl change.

Bug: 295885471
Test: manual test, wifi works normally
Change-Id: I74f8861d43a2a5850dfb3b5b57575858d7f61398
2023-12-07 04:48:46 +00:00
Kai Shi
7d0e5e927b Add the HAL support for getCachedScanResult.
Bug: 269485350
Test: adb shell cmd wifi get-cached-scan-data
Test: adb shell halutil -get_cached_scan_results
Test: hardware/interfaces/wifi/aidl/default/tests/runtests.sh
Change-Id: Ie94fbdd51a21c25c6aefa4afbd40cfcaabbe0f8c
2023-12-06 17:30:39 -08:00
Nate Jiang
3478b3d87e Merge "Add CSIA into NDP request to support frame protection" into main 2023-12-04 23:51:57 +00:00
Gabriel Biren
67d33e9710 Add aggressive roaming support to the
Vendor HAL implementation.

Bug: 269196966
Test: Vendor HAL Gtest suite
Test: atest VtsHalWifiStaIfaceTargetTest
Change-Id: I63d9f9a6994fbf76c16c82834f70c7a1e4966ad4
2023-12-01 01:32:14 +00:00
Nate Jiang
bbf2198766 Add CSIA into NDP request to support frame protection
Bug: 294810242
Test: atest SingleDeviceTest
Change-Id: Ia59c4e9fbed473b6630e5db1e9af78f58467de77
2023-11-29 15:49:23 -08:00
maheshkkv
236b04d3c3 Fix Legacy to AIDL conversion for link state
Bug: 296807191
Test: hardware/interfaces/wifi/aidl/default/tests/runtests.sh
Change-Id: Iea60d7894b22558b386f62a77ff43aa374b6c40f
2023-08-22 17:52:00 +00:00
Gabriel Biren
2f86249fcb Rename getCapabilities to getFeatureSet
in the Vendor HAL implementation.

Bug: 267819850
Test: Run gTest suite
Change-Id: Id21f3edde0b01636d0a994cc8b7b1d434bacaa04
2023-03-09 19:14:36 +00:00
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
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
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
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
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
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
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
50358c1b1b Merge "Add a maximum MLO association link count" 2023-02-15 21:58:08 +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
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
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
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
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
Oscar Shu
79e826d1c9 Support AFC channel allowance feature flag
Bug: 242917176
Test: compile

Change-Id: I45c0ac54ead7c83a9f83c2a3875a4beaffc2eed0
2023-01-27 22:04:31 +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