Commit graph

1409 commits

Author SHA1 Message Date
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
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
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
Ahmed ElArabawy
af1169fbf9 Wifi: Add Supplicant HAL APIs to get MLO Links Info
This commit adds the Supplicant HAL API to get MLO (Multi-Link
Operation) links info

Bug: 198746544
Test: VTS test
Change-Id: I4a40ddd402124d56571e97ad143eb2eb6fdc7cc2
2022-02-09 14:32:12 -08:00
Quang Luong
5194b3538c Merge "Add IfaceConcurrencyType and related methods for AP_BRIDGED concurrency" 2022-02-09 16:41:26 +00:00
Ahmed ElArabawy
a52fc5015a Merge "Wifi: add maximum channel bandwidth limit to softAp" 2022-02-09 03:34:07 +00:00
Jimmy Chen
6deedfe255 Merge "p2p: add new HAL API to pass vendor-specific data" 2022-02-08 23:51:45 +00:00
Ahmed ElArabawy
7f620e3a86 Wifi: add maximum channel bandwidth limit to softAp
This commit adds the maximum bandwidth limit on softAp connection.

Bug: 215120219
Test: VTS test
Change-Id: Ic364ad13ec2787080f99479e00bce5aacf88022d
2022-02-08 13:31:15 -08:00
Quang Luong
5d8805e25a Add IfaceConcurrencyType and related methods for AP_BRIDGED concurrency
Add IfaceConcurrencyType to represent Iface implementations that
have different concurrency implications for the same IfaceType, such as
Bridged AP and Single AP for IWifiApIface. Add a new IWifiChip HAL API,
getAvailableModes_1_6 to return the new concurrency type combos.

Bug: 207055799
Test: 1.6/default/tests/runtests.sh
Change-Id: Iad20a3d95d54dd8b624db912fd3153c2a3372f45
2022-02-08 09:54:00 -08:00
Ahmed ElArabawy
f815455af5 IHostapd: Add support for OWE security encryption type.
This commit is to add the EncryptionType:WPA3_OWE  to allow setup of OWE Soft-AP.

Bug: 217669241
Test: VTS tests
Change-Id: Ib862ba014eacaf4429bd3e44def3f7394643f98e
2022-02-04 15:31:10 -08:00
Gabriel Biren
550bb6b479 Merge "Improve initialization sequence for supplicant AIDL VTS tests." am: 1048b42ea6 am: 352fc9106f am: 36072bf04a am: fddd95734d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1966398

Change-Id: If38b8bfe7cfe510a07293c1aabe6a785dd8e7380
2022-02-03 01:59:29 +00:00
Gabriel Biren
fddd95734d Merge "Improve initialization sequence for supplicant AIDL VTS tests." am: 1048b42ea6 am: 352fc9106f am: 36072bf04a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1966398

Change-Id: I50b5079096de46fcf8cdbabaf34e7b31817df6db
2022-02-03 01:40:27 +00:00
Gabriel Biren
36072bf04a Merge "Improve initialization sequence for supplicant AIDL VTS tests." am: 1048b42ea6 am: 352fc9106f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1966398

Change-Id: I985f2fb96ff63c753c21f987f90cc544e013d728
2022-02-03 00:58:15 +00:00
Gabriel Biren
4e6c9a2b80 Improve initialization sequence for supplicant
AIDL VTS tests.

Bug: 215298798
Bug: 215467859
Test: atest VtsHalWifiSupplicantStaIfaceTargetTest \
            VtsHalWifiSupplicantStaNetworkTargetTest \
            VtsHalWifiSupplicantP2pIfaceTargetTest
      (Tested on both a Coral and Oriole device)
Change-Id: I435e16a447af16d9cd619c5bc8883ed24151080a
2022-02-02 22:18:20 +00:00
Ahmed ElArabawy
7b7e4616c3 Merge "wifi: Add support for AP initiated QoS policy feature" 2022-02-02 03:25:12 +00:00
Veerendranath Jakkam
ad6d094932 wifi: Add support for AP initiated QoS policy feature
This commit defines supplicant AIDL APIs needed for QoS policy
feature.

Bug: 191426881
Test: VTS test
Change-Id: Iab9c78d716da6c263ac7c6d49e257ee2e794a648
(cherry-picked from commit 4f43701bd12994f7bbaacf6b547ae7d7093b6c38)

Change-Id: Ifb7a58192723d2d9135f4c5fffe192780c8bb482
2022-02-02 00:11:07 +00:00
Isaac Chiou
9cf44590f2 Add HAL APIs for WiFi CHRE NAN RTT
1. Add new APIs to enable/disable CHRE NAN RTT
2. Add a new API to register callback.
   This callback should report events from WLAN driver for CHRE.

Test: New APIs work fine
Bug: 206614765
Change-Id: I8c8ab002064a9556be2e7d3972703bb3255a3a41
2022-01-29 07:27:01 +08:00
Ahmed ElArabawy
4b5e558389 Merge "IHostapd: Add support for OWE_TRANSITION security encryption type." 2022-01-28 19:01:41 +00:00
Sunil Ravi
e309d35b75 Merge "wifi: Get the supported radio combinations matrix" 2022-01-28 19:00:27 +00:00
Jimmy Chen
262c7739cc p2p: add new HAL API to pass vendor-specific data
Bug: 197695047
Test: atest VtsHalWifiSupplicantStaIfaceTargetTest \
            VtsHalWifiSupplicantStaNetworkTargetTest \
            VtsHalWifiSupplicantP2pIfaceTargetTest
Change-Id: Ie746deb74c08307b70bd7959e5950c5f3c1679c5
2022-01-28 16:54:14 +08:00
Jimmy Chen
182b766022 Merge "p2p: support find a specific channel" 2022-01-28 08:43:58 +00:00
Mia
8d34c5179c wifi: add an api route for removing a P2P client
Bug: 159098347
Test: atest FrameworksWifiTests
Change-Id: I83b1febb6e56965806a4cc18c0eba9520cce6ce3
2022-01-27 07:31:50 +00:00
Sunil Ravi
ef97d23f88 wifi: Get the supported radio combinations matrix
Added API to get the supported radio combinations
of the chip. This is mainly to check if the chip is
capable of multi band simultaneous operation.

For Example in case of a chip which has two radios, where one radio is
capable of 2.4GHz 2X2 only and another radio which is capable of either
5GHz or 6GHz 2X2, number of possible radio combinations in this case
are 5 and possible combinations are:
    {{{2G 2X2}}, //Standalone 2G
    {{5G 2X2}}, //Standalone 5G
    {{6G 2X2}}, //Standalone 6G
    {{2G 2X2}, {5G 2X2}}, //2G+5G DBS
    {{2G 2X2}, {6G 2X2}}} //2G+6G DBS

Bug: 208877624
Test: vts test
Change-Id: I4c90f80002ca138133a575bca80dfdef2a593ab2
2022-01-26 23:18:37 -08:00
TreeHugger Robot
1aab61da7b Merge "Wifi: Remove premature 'return'" 2022-01-27 06:46:25 +00:00
Jimmy Chen
05e636413b p2p: support find a specific channel
Bug: 159094739
Test: atest VtsHalWifiSupplicantStaIfaceTargetTest \
            VtsHalWifiSupplicantStaNetworkTargetTest \
            VtsHalWifiSupplicantP2pIfaceTargetTest
Change-Id: Ia55b0b13588f9df39a53ccc945c43f2ba7c962f1
2022-01-27 12:33:15 +08:00
Chris Ye
af7d54543f Merge "Get bridged AP interface name from Wifi HAL." 2022-01-26 21:46:51 +00:00
Purushottam Kushwaha
e13c7b20e2 IHostapd: Add support for OWE_TRANSITION security encryption type.
This commit is to add the EncryptionType:OWE_TRANSITION to allow setup
of OWE-Transition Soft-AP.

Bug: 181736011
Test: VTS tests
Change-Id: Ibfcadfc6fd9c4d0d88755f6d07de72c78efc5968
Signed-off-by: Purushottam Kushwaha <quic_pkushwah@quicinc.com>
2022-01-26 09:45:39 -08:00
Greg Kaiser
51c7bd47ab Wifi: Remove premature 'return'
We want to fill in more fields in our conversion method, so we
let the logic proceed to all of them.

Test: TreeHugger
Bug: 203220137
Change-Id: Ia7a9c978ec778eebd17b9ce74f43cc320e92b971
2022-01-26 07:13:18 -08:00
Nate(Qiang) Jiang
ab62fa679b Merge changes from topics "Aware3.1", "instantFilter"
* changes:
  Wifi: Add HAL API and implementation for instant mode filter
  Wifi: Add support for Wifi Aware 3.1
2022-01-26 07:00:04 +00:00
Sunil Ravi
839b1e2eed Merge "Wifi: API to set the indoor state of device" 2022-01-26 02:56:43 +00:00
Nate Jiang
6e13599d95 Wifi: Add HAL API and implementation for instant mode filter
Bug: 203220137
Test: pass vts test
Change-Id: I7f4d9d4390ad69bcfdb2419c2e172c4df2d6863b
2022-01-25 14:41:15 -08:00
Nate Jiang
50c001dd21 Wifi: Add support for Wifi Aware 3.1
Bug: 203220137
Test: pass vts test
Change-Id: I576e03b7cb94466c094a7e4ca1714dddd81ddd5f
2022-01-25 14:40:53 -08:00
Sunil Ravi
5955985741 Wifi: API to set the indoor state of device
If set, it indicates that the device is operating
in an indoor environment. When driver receives this
indication, it can safely enable WFD GO operation
on indoor channels.

Bug: 207671411
Test: Manual basic wifi tests

Change-Id: I4cc4c22444f0796c280220534d43c4ae8cae0899
2022-01-25 11:41:55 -08:00
Chris Ye
02c7bb3df9 Get bridged AP interface name from Wifi HAL.
In bridged AP VTS test, need to get the interface name from bridged AP
from Wifi HAL.
As Wifi HAL is still in HIDL interface, need to use HIDL API to obtain
the bridged AP interface name.

Test: atest VtsHalHostapdTargetTest
Bug: 211073349
Change-Id: Ib594877899ff0fe3ef0a7f01fdb169204dff6a74
2022-01-25 19:15:15 +00:00
TreeHugger Robot
a6edb0b76c Merge "wifi: add API for setting roaming consortium selection" 2022-01-25 00:58:24 +00:00
Ahmed ElArabawy
05571e4718 Wifi: Add implementation for vendor HAL for 11be support
This commit adds the implementation for the HAL API changes
to enable 11be support.

Bug: 198746544
Test: Build Succeeds
Test: VTS test
Change-Id: I2d1f296856698951c2c0111200e7c7bf661da132
2022-01-21 14:08:14 -08:00
Ahmed ElArabawy
d73b64ccc5 Wifi: Update wifi vendor hal API with changes for 11be support
This commit adds the required changes for the support of
802.11be (WiFi-7) support to the wifi vendor hal API.

Bug: 198746544
Test: Build Succeeds
Test: VTS test
Change-Id: I1f631aaa247ce4240dd398230b57c7edae55c141
2022-01-21 14:07:02 -08:00
Ahmed ElArabawy
484046eaa8 Merge "WiFi: Basic support for 11be to Supplicant HAL" 2022-01-19 20:08:08 +00:00
Ahmed ElArabawy
9a066e4efe Merge "WiFi: Basic support for 11be to Hostapd HAL" 2022-01-19 20:07:31 +00:00
Ahmed ElArabawy
0cf627aed2 Wifi: Add vendor hal 1.6 to rc and make files
This CL adds ver 1.6 in Android.bp and rc file. Those were missed
when the HAL version was uprev'd to 1.6

Bug: 214108561
Test: atest VtsHalWifiV1_0TargetTest VtsHalWifiNanV1_0TargetTest VtsHalWifiApV1_0TargetTest \
            VtsHalWifiV1_1TargetTest \
            VtsHalWifiV1_2TargetTest VtsHalWifiNanV1_2TargetTest \
            VtsHalWifiV1_3TargetTest \
            VtsHalWifiApV1_4TargetTest VtsHalWifiNanV1_4TargetTest VtsHalWifiRttV1_4TargetTest \
            VtsHalWifiV1_5TargetTest VtsHalWifiNanV1_5TargetTest VtsHalWifiApV1_5TargetTest
Change-Id: I5ce531b92af12b54b4a25548e6fef1198fb23716
2022-01-19 16:38:05 +00:00
Jimmy Chen
a2b862a527 wifi: add API for setting roaming consortium selection
Bug: 210879633
Test: atest VtsHalWifiSupplicantStaNetworkTargetTest
Change-Id: I3eb89065ae7348d34ac09627af16d2d9460c9173
2022-01-19 09:56:30 +08:00