Commit graph

1577 commits

Author SHA1 Message Date
Mahesh KKV
5f30d333d2 wifi: Add Support for Multi-Link Layer stats in shim layer
With MLO, WiFi 7 supports establishing multiple links between the
Station and Access Point. Each of the link has its own stats.

To maintain backward compatibility, if multi link stats is not supported
by vendor, always fallback to single link layer stats.

Bug: 246988155
Test: hardware/interfaces/wifi/aidl/default/tests/runtests.sh
Change-Id: Iede8ce771f0e58975222808b1870e5e2e179384c
2022-12-15 02:39:32 +00:00
Mahesh KKV
131f47c221 wifi: Add multi link layer stats support to AIDL
Bug: 246988155
Test: mm -j
Change-Id: I9b31988215d3953da6dde80aa68ead9236659d50
2022-12-15 02:38:22 +00:00
Mahesh KKV
5fe40535ff wifi: Update vts test for GetLinkLayerStats()
Bug: 246988155
Test: atest VtsHalWifiStaIfaceTargetTest
Change-Id: I0f3f211f5ff5374834da60214d45bba1b8a47b7a
2022-12-15 02:36:07 +00:00
Mahesh KKV
43c7805bde wifi: Add unit test for multi link stats conversion
Bug: 246988155
Test: hardware/interfaces/wifi/aidl/default/tests/runtests.sh
Change-Id: Ia38601dfb7bb5e43ee3b3aeb2a4ea93c7bbcba75
2022-12-15 02:35:46 +00:00
Mahesh KKV
ba4d7fe337 wifi: Fix unit test for LegacyLinkLayerStats
Due to the introduction of multi links, StaLinkLayerStats carries stats
for multiple links as a vector. For LegacyLinkLayerStats, only single
link will be available. So convertLegacyLinkLayerStatsToAidl() push the
stats for single link as the first element of the link vector.Fix the
unit test to index the first link.

Bug: 246988155
Test: hardware/interfaces/wifi/aidl/default/tests/runtests.sh
Change-Id: I8c9a8beca6bda6cf894edb616cdfe54f09d029f7
2022-12-15 02:34:13 +00:00
Sunil Ravi
1781b8f354 Merge "wifi: Add Signal polling interface to AIDL" 2022-12-14 22:54:36 +00:00
Sunil Ravi
fff05cd6e1 wifi: Add the connected frequency in the state change event
Currently framework gets the connected AP frequency
information by checking the scan cache & through signal
poll command. But these mechanisms doesn't work if framework
scan cache is not updated with the connected AP information
(For example in case of roaming and force connection without scan).
To fix this modified supplicant state change interface
and included the frequency of the connected channel in the
state change event.

Bug: 240299862
Test: atest vts
Test: Manual - Tested STA - AP connection and verfied the data
      from debug logs.
Change-Id: I936bd3256420de38cdfee740e43972bc262ec4b8
2022-12-13 21:46:22 +00:00
Sunil Ravi
5fdc39c077 Merge "wifi: Send channel change event to framework" 2022-12-13 21:18:53 +00:00
TreeHugger Robot
db45b01064 Merge "Add setDtimMultiplier() and its implementation." 2022-12-13 00:45:32 +00:00
Sunil Ravi
4855621726 wifi: Legacy HAL support to get concurrent TDLS session count
Added a new field in chip capabilities to get the
maximum number of concurrent TDLS sessions supported
by the chip

Bug: 240247868
Test: Manual - STA connect/disconnect
Change-Id: I62fcd2d4a562b088cdeb4b04f72cfe55ed61241c
2022-12-12 20:20:38 +00:00
Sunil Ravi
dbd11bdd41 wifi: AIDL support to get concurrent TDLS session count
Added a new field in chip capabilities to get the
maximum number of concurrent TDLS sessions supported
by the chip

Bug: 240247868
Test: Manual - STA connect/disconnect
Test: m android.hardware.wifi-update-api
Change-Id: Ie2a4129241f40fc9eba28105b8ea3c06b27a8492
2022-12-12 20:20:35 +00:00
Mahesh KKV
c84d3770eb wifi: Add getWifiChipCapabilities() in shim layer
Bug: 231497844
Test: hardware/interfaces/wifi/aidl/default/tests/runtests.sh
Change-Id: Iba4f749999e9a2aa25455e09440a961188f049f9
2022-12-12 02:40:01 +00:00
Mahesh KKV
766953f20d wifi: Add AIDL support for getWifiChipCapabilities()
Define a new AIDL API to get capabilities from the vendor chip.
Bug: 231497844
Test: m android.hardware.wifi-update-api

Change-Id: I3c1cfce4df2101125a628f230b938b3be0f80311
2022-12-12 02:39:18 +00:00
Sunil Ravi
55651432be wifi: Send channel change event to framework
Added a new StaIfaceCallback method to indicate that
the operating frequency of the BSS is changed
due to channel switch announcement from the AP.

Bug: 195617184
Test: Manually triggered channel switch through peer AP hostapd command
      and verified the new frequency in STA logs.
Change-Id: I9dd59d7c5d4ddc5f3443f8b6786cfea9beec4f3c
2022-12-10 23:04:25 +00:00
TreeHugger Robot
9a05af80ae Merge "Notify the AT_PERMANENT_ID_REQ is denied from peer." 2022-12-10 05:21:42 +00:00
Kai Shi
6d02d408aa Add setDtimMultiplier() and its implementation.
Bug: 259554744
Test: compile
Change-Id: Ifda9d857e7dff83c8163503e62081e39952c53d7
2022-12-09 18:33:40 -08:00
Gabriel Biren
f2efc21d5d Merge changes from topic "switch-to-aidl-vendor-hal"
* changes:
  Update VTS test dependencies.
  Update Vendor HAL APEX to use the AIDL service.
2022-12-09 18:01:54 +00:00
Nate(Qiang) Jiang
f75666df29 Merge "Create a snapshot of the hardware_legacy" 2022-12-09 03:19:00 +00:00
Nate Jiang
7a7fd84ce2 Create a snapshot of the hardware_legacy
Create a snapshot of hardware_legacy for legacy HIDL, to avoid any build breakage due to new hardware_legacy for the new AIDL. Should be removed with the HIDL when we finish the switch

Bug: 205044134
Test: build and CtsWifiTest

Change-Id: Ib1068112f6c90f2a41b68e20027d959c95798120
2022-12-08 09:38:52 -08:00
Mahesh KKV
c18959820f wifi: Add Signal polling interface to AIDL
Bug: 260018485
Test: m android.hardware.wifi.supplicant-update-api
Change-Id: I8cfca1b2e17c153703b524a0d6dd13199c90cdd6
2022-12-08 08:41:52 -08:00
Gabriel Biren
bd150ea1f1 Update VTS test dependencies.
Supplicant and Hostapd tests have a dependency on
the Vendor HAL in order to do setup/cleanup,
such as bringing up an interface.

This change will make the tests compatible with either
the HIDL or AIDL Vendor HAL, depending on which
is available.

Bug: 205044134
Test: atest VtsHalHostapdTargetTest
      atest VtsHalWifiSupplicantStaIfaceTargetTest \
            VtsHalWifiSupplicantStaNetworkTargetTest \
	    VtsHalWifiSupplicantP2pIfaceTargetTest
      Tests were run using both the HIDL and AIDL
      Vendor HALs.
Change-Id: I1f6b15016414a0bf614703315b47b5b47d3a1e50
2022-12-07 23:53:52 +00:00
Gabriel Biren
bfc9931975 Update Vendor HAL APEX to use the AIDL service.
Bug: 205044134
Test: Check that AIDL service is running on a
      Bluejay device.
Change-Id: I5a09fe1a68fee871e6ff8fa338f4482500e6cf48
2022-12-07 23:49:53 +00:00
Sunil Ravi
f521450b35 wifi: Send DPP connection status result
This change is for Enrollee to send the DPP connection status
result frame to configurator. The changes includes,
1. Modified the existing onDppSuccessConfigReceived callback function
to indicate that configurator has requested for the connection status
result frame.
2. New callback function to indicate that the connection status result
frame is sent.
3. Defined connection status code.

Bug: 235844564
Test: m android.hardware.wifi.supplicant-update-api
Test: Manual - Ran DPP tests and confirmed that
      connection status frame is processed correctly
Change-Id: I45866707971c874c9270e7316a7b86fe0953d95a
2022-12-07 07:30:58 +00:00
Mahesh KKV
7998e043fa Merge changes from topic "Wi-Fi 7: TID2Link & Link Removal"
* changes:
  wifi: Notify MLO Link status updates
  wifi: Add TID to link mapping support
2022-12-06 22:50:13 +00:00
Steven Liu
c276eafd3a Notify the AT_PERMANENT_ID_REQ is denied from peer.
Bug: 239710602
Test: atest VtsHalWifiSupplicantStaNetworkTargetTest
Change-Id: Ib21d601cc980505d7cb60091ec1dd88a579d9738
2022-12-06 20:16:41 +00:00
TreeHugger Robot
b51f4c577b Merge "Add HAL API to support conservative mode for EAP-SIM/AKA/AKA'" 2022-12-06 01:26:52 +00:00
Mahesh KKV
9cb9424e1f wifi: Notify MLO Link status updates
Add a callback to notify MLO link status changes due to
- Multi-Link Reconfiguration (AP Removal)
- TID to link mapping updates

Bug: 247119055
Bug: 248289182
Test: mm -j

Change-Id: I1010cfb3ef608466a46d54e1ef2ae4e665504210
2022-12-02 14:02:50 -08:00
Mahesh KKV
f0bd8c223f wifi: Add TID to link mapping support
TID-to-link mapping, which is introduced in IEEE 802.11be standard
allows an Access Point and a Station to determine how uplink and
downlink QoS traffic corresponding to TID values between 0 and 7 will be
assigned to the setup multi links.

This commit adds an interface to TID-to-link mapping in existing MloLink
AIDL.

BUG: 247119055
Test: mm -j
Change-Id: I3ef6e37d9857606020a8e0580c82ca8ab1b8bf82
2022-12-02 14:02:50 -08:00
Gabriel Biren
f3262f970d Add AIDL implementation for the vendor HAL service.
Bug: 205044134
Test: Pass AIDL VTS tests and regression tests.
Change-Id: Iad04ce01f71fc220443e05a4be05d7d5545227e8
2022-12-02 14:01:50 -08:00
Gabriel Biren
631a8118d7 Revert "Convert vendor HAL service to use new AIDL interface."
This reverts commit e58e263bce.

Reason for revert: Blocking Wembley team

Change-Id: I3cf471e88b880a95a0a2c39f47fb0804deee65cf
2022-12-01 22:29:32 +00:00
Gabriel Biren
e58e263bce Convert vendor HAL service to use new AIDL interface.
Bug: 205044134
Test: Pass AIDL VTS tests and regression tests.
Change-Id: I286ffbf67efddc6c34d34ebd9e9bd9f36139c962
2022-11-28 18:29:23 +00:00
Steven Liu
9ff9db4635 Add HAL API to support conservative mode for EAP-SIM/AKA/AKA'
Bug: 239710602
Test: atest vts
Change-Id: Ic2d0d8453cff79c4242c1d701b36c482146a701f
2022-11-26 18:22:36 +00:00
TreeHugger Robot
1f5dec26ef Merge "wifi: new state change HAL callback with current used key management mask" 2022-11-22 18:50:09 +00:00
Jimmy Chen
d7ed5ae3f9 wifi: new state change HAL callback with current used key management mask
Bug: 230766005
Test: atest vts
Change-Id: I9a9d85df53fe615f89a448f8ece16c6cbfbf6dee
2022-11-16 13:36:34 +08:00
Jimmy Chen
67ebabc6ae wifi: EAP minimum TLS version API
Bug: 160819609
Test: atest VtsHalWifiSupplicantStaNetworkTargetTest
Change-Id: I33e8d2f36e63560d6e084a5dcc78e89077486c0c
2022-11-16 09:40:14 +08:00
Biswarup Pal
76514ebd34 Add HAL API to pass GO interface MAC address in GC from supplicant
The GO interface MAC address would be used to calculate the link-local
IPv6 address of the GO in the GC side.

Test: m
Bug: 233912758
Change-Id: I8cdae90a2703d446dafbdfba8f99c191b751f552
2022-11-15 09:55:00 +00:00
kensun
a7e0a83c0e Add HAL APIs to query cached scan results
Add HAL API to retrieve the on-chip scan results.

Bug: 232030878
Test: New API works fine
Change-Id: I159aec819959e4ad020ee0d44c8110fe34d451b0
2022-11-10 02:26:50 +00:00
Jaewan Kim
7df5c1c345 Disable verbose nlinterceptor log
Test: No verbose log on Cloud Android with Wi-Fi is turned on
Bug: 256518068
Change-Id: I062e698b64114f139997cd24b16f90dd52048247
2022-11-01 08:34:56 +09:00
Etan Cohen
742354a2a4 Merge "Coalesce OWNERS" am: c1c823a9c1 am: 01c4d7fc07 am: d84cfa698b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2260625

Change-Id: I6f97891fbf8069fdbe3f65be1f2848f6ec648ce3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-22 19:54:55 +00:00
Etan Cohen
b65ff31684 Coalesce OWNERS
Bug: N/A
Test: N/A
Change-Id: Ia603a0cc323e65903f8de6a04ce1dd82407f012d
2022-10-19 04:06:09 +00:00
Gabriel Biren
336c45c95d Merge "Add a null pointer check for wifi_chip in configureChipToSupportIfaceTypeInternal." am: 46417dd857 am: eb25ad2692 am: fc9f86a157
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2256003

Change-Id: I474e0c383db003edf0a046f41810bf1b5fb0f1de
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-18 18:30:12 +00:00
Gabriel Biren
b1c2d07e4e Add a null pointer check for wifi_chip in
configureChipToSupportIfaceTypeInternal.

Bug: 253411345
Test: atest VtsHalHostapdTargetTest
Change-Id: Ieb6de7311de8d98742e302b35196bee7fa7661ed
2022-10-17 16:25:07 +00:00
Kenn Frankel
22f5a24b17 Merge "AOSP counterpart of wifi hal apex" am: 2b49939f33 am: fad5dead0f am: 763c1896ab
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2239855

Change-Id: I35e09988ea1a8fceb6de20e31e731261e0d4c4c5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-14 02:56:05 +00:00
Kenn Frankel
e85de1d957 AOSP counterpart of wifi hal apex
Bug: 247018693
Test: CtsWifiTestCases
Change-Id: I5deb95b4cc0c1075f65bc809ca256df91ce9a9bb
2022-10-07 22:13:38 +00:00
Treehugger Robot
ad4f2563a9 Merge "Disable some sanitizers on libnlinterceptor targets." am: 481337da0a am: 8f467b85c4 am: 1813415c3f am: a6fb0adec5 am: d80d2df338
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2239862

Change-Id: I708d62dd47a7be9b9b5a60992a568fd8264623ab
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-04 01:02:54 +00:00
Peter Collingbourne
f10ee08f84 Disable some sanitizers on libnlinterceptor targets.
ASan is not meant to be enabled in production binaries, and the fuzzer
"sanitizer" is only intended to be used with fuzz targets. So disable
both of them.

Change-Id: Ice7d8d3fd6621077d485b430d9e06fb3ba240e87
2022-09-30 18:08:28 -07:00
Les Lee
3ba02e052b wifi: Two AP instances use the same interface name
When device supports two AP interfaces (i.e. {AP, 2}. not a bridged case),
the AP interface name might be observed from the getPredefinedApIfaceNames.
Check if the interface name is used or not when creating a new interface.

Bug: 244387442
Test: Manual test by commands
adb shell cmd wifi start-softap tetheredAp open -b 2
adb shell cmd wifi start-lohs lohs open -b 5

Change-Id: I59b3796895ee09452a9650c4dc138ad9e143282e
2022-09-08 02:02:22 +00:00
Treehugger Robot
08f3ea9e97 Merge changes from topic "cp-libwifihal-soong"
* changes:
  Build libwifi-hal-* modules only for the first arch
  android.hardware.wifi@1.0-service in soong
2022-08-22 02:30:56 +00:00
donghongweng
3e559f9c05 Fix unqualified-std-cast-call compiler warning am: f533ccb14e am: e3b2140f84 am: 930c93ed76 am: 599f7c0175 am: fd470c4c62
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2184585

Change-Id: I37a50edec8e523ca4ed68e8b5534248670de72f6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-19 07:45:20 +00:00
donghongweng
f533ccb14e Fix unqualified-std-cast-call compiler warning
Test: m
Change-Id: I403ce701846a3d3582e1dfa5557fe981e86f2140
2022-08-17 15:49:59 +08:00