Commit graph

1848 commits

Author SHA1 Message Date
Nate Jiang
4dbabdd0ef Merge "Add discovery session in the bootstrapping request and respond" into main 2023-12-08 19:15:09 +00:00
Les Lee
d8fc1572fd Merge "wifi: rename mode 'ON' to 'VOICE'." into main 2023-12-07 23:23:02 +00:00
Kai Shi
a0fc82730d Merge "Add the HAL support for getCachedScanResult." into main 2023-12-07 22:02:48 +00:00
Gabriel Biren
eb508f78d1 Merge "Add capability bit for the roaming mode feature in the Vendor HAL interface." into main 2023-12-07 21:07:48 +00:00
Gabriel Biren
f9fd4d46c3 Merge "Add new onDeviceFoundWithParams callback to the Supplicant AIDL interface." into main 2023-12-07 19:01:23 +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
Les Lee
b5d73ee5ce 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: Ie3b54f02cf3c73b5a9c2a805ec36703dfd541666
2023-12-07 06:08:57 +00:00
Les Lee
8efe3759f8 wifi: Supports setVoipMode in HAL
Bug: 295885471
Test: manual test, wifi works normally
Change-Id: I20e1479de84fa892c986929eebc692b33f5607a1
2023-12-07 03:52:37 +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
Gabriel Biren
7932ef62f5 Merge "Add android.hardware.wifi.common as a dependency in the supplicant VTS tests." into main 2023-12-06 17:07:58 +00:00
Gabriel Biren
3bdac1771f Merge "Supplicant: Add support to configure and indicate additional vendor data" into main 2023-12-06 17:07:58 +00:00
Vinay Gannevaram
0fe91de0cd Add new onDeviceFoundWithParams callback to the
Supplicant AIDL interface.

Also mark the previous onDeviceFound callbacks
as deprecated.

Bug: 296069900
Test: atest VtsHalWifiSupplicantP2pIfaceTargetTest

Change-Id: Ibeaf20832292a680adf94703b7a0eda1dc9f82d5
2023-12-05 23:17:55 +00:00
Gabriel Biren
7d1bdeb2d4 Add android.hardware.wifi.common as a dependency
in the supplicant VTS tests.

Bug: 296069900
Test: atest VtsHalWifiSupplicantStaIfaceTargetTest \
            VtsHalWifiSupplicantStaNetworkTargetTest \
	    VtsHalWifiSupplicantP2pIfaceTargetTest
Change-Id: I1f6bd7d4c019c39ed9fdfc56db2bc446542f7be2
2023-12-05 20:21:29 +00:00
Gabriel Biren
fd567250a6 Merge "Import android.hardware.wifi.common in the Supplicant interface." into main 2023-12-05 18:35:41 +00:00
Vinay Gannevaram
f503a6f156 Supplicant: Add support to configure and indicate additional vendor data
Add interface support for indicating additional vendor data as list
of Oui Keyed Data in network configuration and connection capabilities.

Bug: 296069900
Test: m

Change-Id: I4ec4a193a51ddce32006284db7e61b2f3de03f03
2023-12-05 00:42:38 +00: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
677bc0f0c4 Import android.hardware.wifi.common in
the Supplicant interface.

Bug: 296069900
Test: m
Change-Id: I207691c74fbcdabd78d024aded5cef705cfb13c9
2023-12-04 22:48:03 +00:00
Gabriel Biren
1c435e44c4 Merge changes from topic "aggressive-roaming-hal" into main
* changes:
  Add aggressive roaming support to the Vendor HAL implementation.
  Add enum for aggressive roaming mode to the Vendor HAL AIDL interface.
2023-12-04 16:31:14 +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
divya.n1
2b8b126ca0 Add enum for aggressive roaming mode to
the Vendor HAL AIDL interface.

Bug: 269196966
Test: m

Change-Id: Icc972fdea98035ad7668b85a7f4c3ae0c38f732d
2023-11-30 23:52:45 +00:00
maheshkkv
7d7e8dbca0 Add HAL support to control EHT mode
Bug: 308711070
Test: m
Change-Id: I5cde09537465d6a500078761780d1c82ed0e6704
2023-11-30 12:44:45 -08: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
Les Lee
abfd5064c4 Merge "Mark Passpoint Icon HAL APIs as @deprecated." into main 2023-11-28 04:57:53 +00:00
Gabriel Biren
ce096bc8d7 Mark Passpoint Icon HAL APIs as @deprecated.
Bug: 241827678
Test: m
Change-Id: Idf9b88ee959b86f757c6d0a5b5ff620876938c7d
2023-11-27 14:19:24 +00:00
Gabriel Biren
214578d9e6 Add list of OuiKeyedData to ApInfo.
Data will be passed to the framework
in the onApInstanceInfoChanged callback.

Bug: 296069900
Test: m
Change-Id: I69eac9a0b92916be9b80e844d6287545454fa203
2023-11-23 01:18:15 +00:00
Gabriel Biren
d947966ab2 Merge "Add list of OuiKeyedData to the Hostapd AIDL IfaceParams type." into main 2023-11-21 23:15:24 +00:00
Sunil Ravi
c5dfae3aae Merge "wifi: Modified API for P2pProvisionDiscoveryCompleted event" into main 2023-11-21 17:54:10 +00:00
Gabriel Biren
66bab48e20 Add list of OuiKeyedData to the Hostapd
AIDL IfaceParams type.

Requires update to the latest compatibility
matrix to upgrade the Hostapd HAL to V2.

Bug: 296069900
Test: m
Change-Id: I125937857fbc5fee0815369532e502da4c454a53
2023-11-21 00:55:09 +00:00
Sunil Ravi
e5ad97060d wifi: Modified API for P2pProvisionDiscoveryCompleted event
Deprecated the existing onProvisionDiscoveryCompleted API
which is used to indicate the completion of a P2P provision
discovery request. Added a new modified API called
onProvisionDiscoveryCompletedEvent to include the P2P group interface
name. This is for framework to know which group owner interface
received the provision discovery request, when the Peer device tries
to join the existing P2P group owner.

Bug: 296063280
Test: vts test
Test: Ran P2P negotiated connection tests via Wi-Fi Direct settings
      window.
Change-Id: If349ed600f2a474d50c0b05d58331b5b8ba9e94d
2023-11-20 20:35:39 +00:00
Gabriel Biren
793ebcc1e2 Merge changes from topic "vendor-hal-params" into main
* changes:
  Update the Vendor HAL and compatibility matrix to implement V2 of the Vendor HAL interface.
  Add an API to the Vendor HAL to create an AP or Bridged AP iface using vendor-specific parameters.
2023-11-16 21:07:50 +00:00
Gabriel Biren
aa9bd83dbd Update the Vendor HAL and compatibility matrix to
implement V2 of the Vendor HAL interface.

Also involves adding a default implementation of the
new method createApOrBridgedApIface().

Bug: 296069900
Test: m
Change-Id: Iea8aa0b66a23125c066d72b710004496d41defcb
2023-11-13 22:09:19 +00:00
Sunil Ravi
92edc5069f Merge changes from topic "Supplicant_AIDL_interface_V3" into main
* changes:
  wifi: API to Notify the IP address of connected client
  wifi: Format Supplicant HAL files as a part of update API
  wifi: Update Supplicant HAL to V3
2023-11-10 21:24:27 +00:00
Sunil Ravi
246e87d0fa wifi: API to Notify the IP address of connected client
When the wpa_supplicant assigns the IP address
(WFA EAPOL IP address allocation feature),
the assigned IP address of the client on the GO side
is notified in the AP-STA-CONNECTED event.
So to obtain the IP info to framework , modified the
AIDL SupplicantP2pIfaceCallback#onStaAuthorized to
include group interface name and the assigned IP of client.

Bug: 291202830
Test: Establish P2P connection and verified from the logs that
      the P2P Client IP address is received to framework via new
      HAL API.
Test: vts test
Change-Id: Ie7b6944e88c3962c9d2b4a223cd383077e59f4a8
2023-11-10 03:39:45 +00:00
Gabriel Biren
61430f49d1 Add an API to the Vendor HAL to create an AP
or Bridged AP iface using vendor-specific
parameters.

Bug: 296069900
Test: m
Change-Id: I4bc05195a6e0b539b426d994e59f9f61a78c1255
2023-11-10 00:07:24 +00:00
Sunil Ravi
d139f8a7de wifi: Format Supplicant HAL files as a part of update API
updated the files modified via the command
m android.hardware.wifi.supplicant-update-api

Bug: 291202830
Test: Build successfully
Test: Establish P2P connection and verified from the logs that
      the P2P Client IP address is received to framework via new
      HAL API.
Change-Id: I80fffc34f0b81db85413d382475ec7744533cb8a
2023-11-09 22:40:41 +00:00
Sunil Ravi
08c4c46cc4 wifi: Update Supplicant HAL to V3
Bug: 291202830
Test: Build successfully
Test: Establish P2P connection and verified from the logs that
      the P2P Client IP address is received to framework via new
      HAL API.
Change-Id: I3078eb4fa690d49c29c5fca78f551ff22d13e3c6
2023-11-09 22:36:01 +00:00
Gabriel Biren
7c79f702c0 Add types-only AIDL package
android.hardware.wifi.common.

Types from this package will be
used across the Supplicant, Hostapd,
and Wifi Vendor HALs.

Initial type OuiKeyedData can be
used by vendors to pass additional
vendor-specific parameters.

Bug: 296069900
Test: m
Change-Id: Icef0261200358ecb662131bc06930d0d4db60312
2023-11-08 01:26:07 +00:00
Kenn Frankel
90b8c9901d Merge "Convert Nlinterceptor HAL to Vendor Apex (CF)" into main am: cf4cbd0b9b am: 51f4d2506d am: 7d909387ec
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2798153

Change-Id: Iba9aa998b5cd8eb3868b357bcfca753629dba429
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-07 20:54:51 +00:00
Kenn Frankel
51f4d2506d Merge "Convert Nlinterceptor HAL to Vendor Apex (CF)" into main am: cf4cbd0b9b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2798153

Change-Id: I5ade17306ca8aca2d6720f06fa45f8402d288e9b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-07 19:41:22 +00:00
Kenn Frankel
ae3f1fb976 Convert Nlinterceptor HAL to Vendor Apex (CF)
Bug: 300011249
Test: atest VtsHalNetlinkInterceptorV1_0Test

Change-Id: I521877b24354ff95eb941daf314ca1f14d37bd70
2023-11-01 22:58:04 +00:00
Xin Li
e4d528153d Merge "Merge android14-tests-dev" into main 2023-10-26 20:11:38 +00:00
Hsiu-Chang Chen
802828f461 wifi: Enhance tombstone folder dumping behavior
In current implementation, files in the tombstone folder are only
archived when there is at least one active wifi interface. The
examination is unnecessary and it causes problems for us to get wifi
logs if reporter takes bugreport with STA/SAP off. In this change,
tombstone files will be archived regardless of the state of the wifi
interfaces.

Bug: 303429585
Test: dumpsys android.hardware.wifi.IWifi/default
Change-Id: I8a8b09f6473b2a1f93478b0393963e87b1fb9ad7
2023-10-23 01:02:40 +00:00
Nate Jiang
33864539f4 Add comment to indicate the usage of the Service specific info in SDEA
Bug: 301045790
Test: N/A

Change-Id: I5c844915d26dd6b47a7577f80faa408046058427
2023-10-20 17:38:34 +00:00
Xin Li
84fe582d6e Merge 10952656
Merged-In: I27fe6f65f491db9d88710cf163eba12079499a09
Change-Id: I0c62786a40dd3c2d042929c7cb2e4334169bef84
2023-10-17 10:08:42 -07:00
Jooyung Han
8cee65d03f Merge "Cleanup: use shared apex_key (wifi HAL APEX)" into main am: de82b61de8 am: 8f26c19e6e am: 5b0414899e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2780370

Change-Id: I8c2fe3cb79116ac875d7c80d0e1be8825fe31626
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-17 08:38:34 +00:00
Jooyung Han
5b0414899e Merge "Cleanup: use shared apex_key (wifi HAL APEX)" into main am: de82b61de8 am: 8f26c19e6e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2780370

Change-Id: I3984a5d2eb5593ce11cb5cb38dd4463135eb317c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-17 08:03:19 +00:00
Xin Li
11ee4fea87 Merge android14-tests-dev
Bug: 263910020
Merged-In: I770dc5620648df2eab608e030c5e76cf190f315d
Change-Id: If4fe726d538386d70061e8051299d8fb393ef5df
2023-10-10 16:17:14 -07:00
Jooyung Han
3efe294141 Cleanup: use shared apex_key (wifi HAL APEX)
Bug: 296524155
Test: m
Change-Id: Id1bdc3614cf0387f726211c4b8e04909879198eb
2023-10-10 15:49:06 +09:00
Ye Jiao
2236b96bf4 Disable Wi-Fi framework during VTS
When VTS case kills supplicant in SetUp, Wi-Fi framework will trigger
recovery process and causes races between VTS and Wi-Fi framework.

Disable Wi-Fi framework using 'cmd wifi' in SetUp.

Bug: 297820612
Test: run vts -m VtsHalWifiHostapdV1_0TargetTest with new case
(cherry picked from https://android-review.googlesource.com/q/commit:46538346af90bf93dcafa36206fc2ea5c545dd93)
Merged-In: I5ea7f00cfebf79021185f66766454d053c973b31
Change-Id: I5ea7f00cfebf79021185f66766454d053c973b31
2023-09-26 16:35:18 +00:00