Commit graph

532 commits

Author SHA1 Message Date
Purushottam Kushwaha
843c3d3dfa Add Legacy HAL API to create an interface
using vendor data.

Bug: 296069900
Test: m
Change-Id: If2cb15034682dc71b684329b731960abb568255f
Signed-off-by: Purushottam Kushwaha <quic_pkushwah@quicinc.com>
2024-02-29 18:35:25 +00:00
Mahesh KKV
cf247da059 Merge "Deprecate wifi_twt_clear_stats" into main 2024-01-05 22:43:01 +00:00
Mahesh KKV
929b24d90c Deprecate wifi_twt_clear_stats
Bug: 296108122
Test: m
Change-Id: I5d51e3579e73e2ab798f5feb0219c110267b21e4
2023-12-29 08:44:03 -08:00
Mahesh KKV
1486d3011e Add number of spatial streams for 11az results
Bug: 317922145
Test: m
Change-Id: I439f3cd2e4adc5ddcd444e9af322ab5fcddf6845
2023-12-27 16:11:38 -08:00
maheshkkv
b83596e8e6 Make TWT wake interval 64 bit
As the TWT Wake Interval Mantissa is a 2-byte field and TWT Wake
Interval Exponent is a 5-bit field, Maximum TWT Wake Interval = 65,535 x
[2^31] microseconds. So make TWT wake inteval 64 bit to avoid overflow.

Bug: 296108122
Test: m
Change-Id: Ib4736a98f50abd1b8d63e3c5fa32b2c540bbcb0f
2023-12-14 16:35:41 -08:00
maheshkkv
ba4e0aa3bd Fix 11az non-TB measurment time unit
Bug: 295619650
Test: m
BYPASS_INCLUSIVE_LANGUAGE_REASON=HE refers to High Efficiency.
Change-Id: I56e25cffece0d18e22dd9a8dee19fb38893e5021
2023-12-14 20:55:55 +00:00
maheshkkv
4b094d3591 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: I604421cbe8b792cc5fd9f766fd5e2422bc14e5bd
2023-12-14 09:07:30 -08:00
Isaac Chiou
1ccf6c5f05 Merge "Expanding WiFi SAR scenarios for CAP sensor" into main 2023-12-13 03:32:26 +00:00
Mahesh KKV
7826fc79ee Merge "Add TWT support for legacy vendor HAL" into main 2023-12-12 21:36:47 +00:00
maheshkkv
eca888d407 Add TWT support for legacy vendor HAL
Bug: 296108122
Test: m
Change-Id: I79c67f34b77dac100610cc2e22f22dd631ecc17a
2023-12-12 10:53:35 -08:00
Kai Shi
9061e7a162 Merge "Add capability bit for the cached scan data feature" into main 2023-12-11 23:21:33 +00:00
Mahesh KKV
ab39d6ea62 Merge "Add IEEE 802.11az support for legacy HAL" into main 2023-12-11 18:35:31 +00:00
maheshkkv
7ea8202556 Add IEEE 802.11az support for legacy HAL
Bug: 295619650
Test: Run RTT with WifiRttScan app
Change-Id: I22ea32e3845ae3e285ac29be8d5531018cd8c2b3
2023-12-11 01:29:15 +00:00
Kai Shi
1e6e9b8117 Add capability bit for the cached scan data feature
Test: compilation
Bug: 269485350
Change-Id: Ib8d01c97d095ec598a81f083464e05222352ece1
2023-12-08 17:25:59 -08:00
Les Lee
77f5f11fc5 Merge "wifi: Supports new feature flag about Voip mode" into main 2023-12-09 00:48:08 +00:00
Nate Jiang
edcec4bb31 Merge "[Wifi-Aware]- Pairing related interface changes." into main 2023-12-08 19:15:09 +00:00
Les Lee
1861cc223c wifi: Supports new feature flag about Voip mode
Bug: 295885471
Test: manual test, wifi works normally
Change-Id: I44e6d741a924e16a480476f864d08f5545081846
2023-12-08 01:22:32 +00:00
Les Lee
7bc634dc1d Merge "wifi: rename mode 'ON' to 'VOICE'." into main 2023-12-07 23:23:02 +00:00
Isaac Chiou
7b7f24071c Expanding WiFi SAR scenarios for CAP sensor
Add more scenarios for CAP sensor enabled case

Bug: 307167824
Test: New scenarios can be set properly
Change-Id: I80a91108b650adbe4ff4c0a7986acbe8b193cf77
2023-12-07 08:44:32 +00:00
divya.n1
da2ba3d9a2 Add support bit for the roaming mode feature
in libhardware_legacy.

Bug: 269196966
Test: m

Change-Id: I987abe655bb1beb20ae479bb245b586c9832202f
2023-12-07 00:50:30 +00:00
Ajay Davanageri
6c9a9b470d [Wifi-Aware]- Pairing related interface changes.
Bug: 292462023
Test: Verified using the halutil cl.

Change-Id: I93d30ca48a63f0600c2a1028f89c31b10c7c534f
2023-12-06 15:55:42 -08:00
Les Lee
890a8f67f6 wifi: rename mode 'ON' to 'VOICE'.
To improve clarity and accommodate future functionalities,
we should rename the existing 'ON' mode to 'VOICE'.
This change establishes 'VOICE' as the fundamental mode for VOIP operations.
Additionally, it paves the way for adding future modes, such as 'VOICE_VIDEO',
as the system evolves.

Bug: 295885471
Test: TH
Change-Id: I1eeab83f2c0f2e6b67cf4c694796eadf5f53cda7
2023-12-05 09:28:16 +00:00
Nate Jiang
d961824689 Merge "wifinan: Add interface changes to config csia capabities and gtk protection" into main 2023-12-04 23:51:56 +00:00
divya.n1
0a5f2e437c Add aggressive roaming support to libhardware_legacy.
Bug: 269196966
Test: m
Change-Id: Iac41f2fe29a2a605b5ac51d9b03e9e07a0d38a08
2023-12-01 01:36:22 +00:00
Vinay Gannevaram
4f5f981889 wifinan: Add interface changes to config csia capabities and gtk protection
Configure CSIA capabilities and gtk protection during NDP setup to enable
Group key security for group data and management frames

Bug: 294810242
Test: build
Change-Id: Iadfcfb98aa59e837a9f87871f5ee936ba3e947b9
2023-11-29 10:57:48 -08:00
Nate Jiang
3596d59b9a Increase the size of SDEA_SERVICE_SPECIFIC_INFO
Bug: 301045790
Test: Cts SinlgeDeviceTest
Change-Id: If56ddaeba8f776b5b8fcfafcf11d826f82729a33
2023-09-21 22:24:05 +00:00
Hsiu-Chang Chen
104cefa180 Add a new SAR scenario for rear camera active
Bug: 285609097
Test: Performance teset
Change-Id: I56b830cbb9303cff1ff43eaa753c117a220a962f
2023-06-16 06:54:32 +00:00
Vinay Gannevaram
787b2cd73a Update NAN MAJOR and MINOR version to 4.0.0
As NAN interface supports the functionality of WiFi-Aware 4.0
specification, update MAJOR and MINOR version accordingly

Bug: 280415518
Test: TH
Change-Id: I29c80311ba5447aebeba9d455d81293f23c20a1d
2023-05-04 13:57:26 -07:00
Vinay Gannevaram
d1de22e90f Interface changes for Aware 4.0 Bootsrapping and Shared Key
Some methods like service managed bootstrapping required SDEA attribute to
carry service specific information during bootstrapping handshake. Also
once Pairing is setup User can transmit follow up frames to share NIK to the
peer which should carry shared key descriptor. Comeback timeout can be set by
Bootstrapping responder to defer the ongoing handshake.
Hence Add interface changes for above requirements.

Bug: 279363671
Test: build, flash and CtsWifiTestCases
Change-Id: I67c4e5283189cfc80ef86b610d9d7f021ff4b29b
2023-04-26 17:03:13 -07:00
Nate Jiang
2b3c3a49bf NAN R4 additional iface changes for WFA certification
Bug: 269440402
Test: build
Change-Id: Ieaa28d5a5b71ca755f06b72c24fa8090179eeb4a
2023-02-21 21:48:40 +00:00
Mahesh KKV
f4ca30e56e Merge "Add wifi hal API for Multi-Link Operation mode" 2023-02-16 02:00:57 +00:00
Mahesh KKV
624e87ccb1 Merge "Add TID-To-Link mapping negotiation feature" 2023-02-16 01:27:52 +00:00
Nate(Qiang) Jiang
2bdc960423 Merge "Modify HAL for Aware suspension mode" 2023-02-15 23:24:00 +00:00
Mahesh KKV
b469837ed3 Merge "Add maximum association link count" 2023-02-15 21:58:07 +00:00
Mahesh KKV
da7fe36ab5 Add wifi hal API for Multi-Link Operation mode
Bug: 268235139
Test: Build successfully
Change-Id: Ia103ecc2b5cad29520c7b4235ccc051629561fdc
2023-02-15 12:15:09 -08:00
Nate Jiang
1e1b31581d 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: I1ce107aa9abe1f31b738a382faecb8503cf09816
2023-02-15 17:00:57 +00:00
maheshkkv
3c54751d17 Add maximum 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: Build successfully
Change-Id: I1fe60f68fb99b0cb00a851981cbe45cde74457e1
2023-02-15 07:04:36 +00:00
maheshkkv
f716fa48a8 Add TID-To-Link mapping negotiation feature
Bug: 268219346
Test: Build successfully
Change-Id: I7b875e7fd0583ae4b4d48a284cf30af6602f9511
2023-02-13 22:58:41 -08:00
Nate Jiang
b505efe7ff Modify based on the vendor feedback
- Add end pairing request method
- Handle bootstrapping comeback event
- Add cipher type in the pairing request
- Remame AKM to NAN specific

Bug: 265075699
Test: cts sinlgeDeviceTest
Change-Id: Ic55370873ba8d938ea32f63b3e69253ee47bd969
2023-02-13 17:26:19 -08:00
Mahesh KKV
ef9956a53b Add link state for link layer stats
Bug: 263029630
Test: Build successfully
Change-Id: I31a7ab0893fc8168d16a68631f5e06d4170ef71d
2023-02-10 14:16:11 -08:00
Mahesh KKV
cd75a54c4a Rename max_mlo_link_count to max_mlo_str_link_count
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: build and wifi connection

Change-Id: Ic12055a4a340aeff15382e198a76328431f9def6
2023-02-05 20:37:01 -08:00
Oscar Shu
55f43fb91e Legacy wifi feature flag for AFC channel allowance
Bug: 242917176
Test: compile
Change-Id: Ida30239103d751eb4c7ce5bf96e8068a92a77247
2023-02-01 21:32:19 +00:00
Ye Jiao
282246a8ad Move setScanMode to legacy HAL
Cherry-pick from: https://partner-android-review.git.corp.google.com/c/platform/hardware/libhardware_legacy/+/2368871
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: I2e9d30698a8bcb915a746f6253ec3b6e6d903bc0
2023-01-27 05:07:04 +00:00
Nate Jiang
36cff5cd7d Move the newly added method to the end of the function table
This can avoid pointer mismatch due to HIDL is using a cached version of
the legacy HAL.

Bug: 265396931
Test: build and wifi connection
Change-Id: Id56c4b315cbd84f8ba69f7d7e12b3d07e656defb
2023-01-26 03:01:50 +00:00
Biswarup Pal
52e781f927 Merge "Add suspendable option in NanPublishRequest and NanSubscribeRequest" 2023-01-12 10:55:41 +00:00
Phill Hayers
4f30a17322 Add a new function in wifi_hal_fn table for suspend/resume.
Bug: 259950106
Test: m android.hardware.wifi-update-api
Change-Id: I6d9b8baef13f07a684d5486576c3298be1e5e482
2023-01-11 15:43:03 +00:00
Biswarup Pal
b3d0989c55 Add suspendable option in NanPublishRequest and NanSubscribeRequest
Test: m
Bug: 263014869
Change-Id: I71f28b36be13befaf4d7f85dfab369593bc8e61d
2023-01-11 13:09:47 +00:00
Biswarup Pal
2ebbe247b0 Add NAN suspension flag to NanCapabilities HAL
Test: m
Bug: 262872127
Change-Id: I1c59200af16f31cd801d06e15eb3a9f64664aa73
2023-01-09 23:36:32 +00:00
Biswarup Pal
5bfb836888 Merge "Revert "Revert "[Aware] Add paramters in NanConfigRequest to sup..."" 2023-01-09 23:30:52 +00:00
Biswarup Pal
584f074153 Revert "Revert "[Aware] Add paramters in NanConfigRequest to sup..."
Revert submission 20917465-revert-20813956-issue-262873111-API-set-clusterId-newAPI-FRIOZCUQWG

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

Change-Id: I71fd896e76e996a01a7c50237a9777f33bc11367
2023-01-09 21:21:22 +00:00