Commit graph

1448 commits

Author SHA1 Message Date
TreeHugger Robot
1fd86d9b89 Merge "Check and catch the callback transaction error" into tm-dev 2022-04-28 02:10:35 +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
70f5837e1f Freeze AIDL APIs for TM
Bug: 225941299
Test: m
Change-Id: I61eb51c0334eb99489c6f1570110d7e18c350c99
2022-04-16 07:03:24 +09: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
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
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
bc43c2f896 Merge "Fixed HostApd VTS test failure." into tm-dev 2022-03-31 16:25:38 +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
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 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
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
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
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
Treehugger Robot
4965e27b86 Merge "Add @PropagateAllowBlocking tag to supplicant methods that return an interface." 2022-02-22 17:07:12 +00:00
TreeHugger Robot
ac5dc18df1 Merge "wifi: fix NULL pointer in unit tests" into tm-dev 2022-02-19 02:07:53 +00:00
Chih-Hung Hsieh
ad1bf31b78 Add timed out test files to tidy_timeout_srcs
* Timed out runs do not show any warning messages.
* These test files cannot finish clang-tidy runs with
  the following settings:
    TIDY_TIMEOUT=90
    WITH_TIDY=1
    CLANG_ANALYZER_CHECKS=1
* When TIDY_TIMEOUT is set, in Android continuous builds,
  tidy_timeout_srcs files will not be compiled by clang-tidy.
  When developers build locally without TIDY_TIMEOUT,
  tidy_timeout_srcs files will be compiled.
* Some of these test modules may be split into smaller ones,
  or disable some time consuming checks, and then
  enable clang-tidy to run within limited time.

Bug: 201099167
Test: make droid tidy-hardware-interfaces_subset
Change-Id: I1de28f1572fff368f67eab512fffec9f2e5c2a9b
2022-02-18 17:25:41 -08:00
Gabriel Biren
b29181a507 Merge "Reorder the hostapd Generation enum to list the WiFi generations chronologically." into tm-dev 2022-02-18 23:09:21 +00:00
Ahmed ElArabawy
25692880c0 Merge "Wifi: Add VTS tests for Vendor HAL 1.6" into tm-dev 2022-02-18 22:22:52 +00:00
Ahmed ElArabawy
98112251b1 Merge "Wifi: Fix VTS tests broken due to uprev to Vendor HAL 1.6" into tm-dev 2022-02-18 22:20:45 +00:00
Quang Luong
6a72ebc9c5 Merge "Reinstate functionality of IWifiChip.getAvailableModes()" into tm-dev 2022-02-18 21:13:34 +00:00
Jimmy Chen
1cfe081491 wifi: fix NULL pointer in unit tests
getSupportedIfaceName() should be mocked to avoid
NULL pointer exception.

Bug: 217267980
Test: atest android.hardware.wifi@1.0-service-tests
Change-Id: I97a9cb8430ea77a6fe068f20586ab27df9291400
2022-02-18 09:21:48 -08:00
Gabriel Biren
832cfea94c Create callback to call on auxiliary supplicant events, namely
EAP_METHOD_SELECTED, SSID_TEMP_DISABLED, and OPEN_SSL_FAILURE.

Bug: 165342942
Test: m
Change-Id: I28ccd513bba937041ae8be1c5eff1fa6cb491c97
2022-02-18 16:54:35 +00:00
Ahmed ElArabawy
b2c8852cba Wifi: Add VTS tests for Vendor HAL 1.6
This commit adds the VTS tests for the Wifi Vendor HAL 1.6

Bug: 220014236
Test: atest VtsHalWifiV1_6TargetTest
Test: atest VtsHalWifiNanV1_6TargetTest
Test: atest VtsHalWifiRttV1_6TargetTest
Change-Id: Id9f034c25029ef7a7f437185082abef67776ac8f
2022-02-18 08:54:31 -08:00
Gabriel Biren
fea031e81d Reorder the hostapd Generation enum to list
the WiFi generations chronologically.

Bug: 213475388
Test: Build the interface (mm -j)
Change-Id: I9f501c021956a376c03884dadade473ab0953bd3
(cherry picked from commit 04deb64be1)
2022-02-18 16:53:03 +00:00
Ahmed ElArabawy
7f40eee612 Wifi: Fix VTS tests broken due to uprev to Vendor HAL 1.6
This commit skips the tests for the deprecated HAL APIs due to the
addition of the Vendor HAL ver. 1.6

Bug: 220201314
Test: atest VtsHalWifiRttV1_4TargetTest
Test: atest VtsHalWifiV1_5TargetTest
Change-Id: I9c15249effa9a678115bf644012c0047ad13c66b
2022-02-18 08:51:53 -08:00
Quang Luong
6d66167031 Reinstate functionality of IWifiChip.getAvailableModes()
IWifiChip.getAvailableModes() is needed as a dependency for VTS tests.
Reinstate the API to avoid breaking old tests, ignoring the new
AP_BRIDGED concurrency type.

Bug: 219617823
Test: atest VtsHalWifiV1_0TargetTest VtsHalWifiV1_1TargetTest
VtsHalWifiV1_2TargetTest VtsHalWifiV1_3TargetTest
VtsHalWifiV1_4TargetTest VtsHalWifiV1_5TargetTest

Change-Id: Ide5b251b20f1ea56a76c2ce3b04c4e28fc29624c
2022-02-18 08:51:34 -08:00
Gabriel Biren
05e2e84c60 Update supplicant callbacks with reccomendations
from the ANAPIC review.

- Declare entire callback interfaces as oneway
  rather than each individual function.
- Remove onTerminating() method from ISupplicantCallback.

Bug: 215566635
Test: atest VtsHalWifiSupplicantStaIfaceTargetTest \
            VtsHalWifiSupplicantStaNetworkTargetTest \
            VtsHalWifiSupplicantP2pIfaceTargetTest
Change-Id: Ia9c95ef1ad7ada99a7f778ea063b9036cb4e3b42
2022-02-13 00:21:22 +00:00
Sunil Ravi
118641434a Merge "Supplicant: Add support for DPP AKM configuration and connection." 2022-02-12 02:26:02 +00:00
Xin Li
0bf8f21279 Merge sc-v2-dev-plus-aosp-without-vendor@8084891
Bug: 214455710
Merged-In: Id9e06f88539b59480d5cf57a4ba67cef4676c1d5
Change-Id: Id6b1ea4f8700446b044255e80f21c137aeb7acf1
2022-02-11 07:27:13 +00:00
Purushottam Kushwaha
f335be12c6 Supplicant: Add support for DPP AKM configuration and connection.
This commit adds HAL interfaces needed to facilitate DPP AKM based
configuration and connection to DPP network.

Bug: 207732665
Test: vts test
Change-Id: Ibea85c9c50b6ce7da77477c399e95f45d924fcb6
Signed-off-by: Purushottam Kushwaha <quic_pkushwah@quicinc.com>
2022-02-10 20:04:44 -08:00