Commit graph

1323 commits

Author SHA1 Message Date
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
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
Treehugger Robot
4965e27b86 Merge "Add @PropagateAllowBlocking tag to supplicant methods that return an interface." 2022-02-22 17:07:12 +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
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
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
Gabriel Biren
41f6858f7a Add @PropagateAllowBlocking tag to supplicant methods
that return an interface.

Bug: 214496214
Test: adb logcat -s Binder:E -e "ISupplicant"
       (Should produce no output when patch is applied.)
Change-Id: Ic89c2d841f0a0cad6c80975f78e1f50f5f15f48d
2022-02-02 20:42:26 +00:00
Gabriel Biren
a691ff43cf Merge "Update supplicant bitmap comments to clarify that defs.h is a useful reference, but not the main definition for the bitmap values in the interface." am: 7b55e1a302 am: 113255aa5c am: aaed9ba96d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1947191

Change-Id: I88bcdc46cfa03ecaa7e3ac3e57617a599ed27bc7
2022-01-13 23:18:14 +00:00
Gabriel Biren
aaed9ba96d Merge "Update supplicant bitmap comments to clarify that defs.h is a useful reference, but not the main definition for the bitmap values in the interface." am: 7b55e1a302 am: 113255aa5c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1947191

Change-Id: Ib9cdf4c0d0d321fdd4dcd58caab1d7f4b19f4d84
2022-01-13 23:01:23 +00:00
Gabriel Biren
7b55e1a302 Merge "Update supplicant bitmap comments to clarify that defs.h is a useful reference, but not the main definition for the bitmap values in the interface." 2022-01-13 22:35:33 +00:00
Gabriel Biren
a0cfeae37a Merge "Allow VTS tests to pass on devices without Hostapd AIDL." am: f97801a1c5 am: 81271949c0 am: 72c29327b7
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1947696

Change-Id: I7631e109f26835d41180ec881782dae3aba1d0bf
2022-01-13 17:20:29 +00:00
Gabriel Biren
72c29327b7 Merge "Allow VTS tests to pass on devices without Hostapd AIDL." am: f97801a1c5 am: 81271949c0
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1947696

Change-Id: I45d4dbe9e28bbbaa21e15dda5067968e8089be21
2022-01-13 17:09:32 +00:00
Gabriel Biren
f97801a1c5 Merge "Allow VTS tests to pass on devices without Hostapd AIDL." 2022-01-13 16:34:32 +00:00
Gabriel Biren
962d5dfa99 Allow VTS tests to pass on devices without Hostapd AIDL.
Bug: 214298597
Test: Run VTS tests on an AOSP build (since AOSP
       is still using the HIDL interface).
Change-Id: I4bd005b5c96570694477a4b45fa5cc790c45be8f
2022-01-12 23:15:17 +00:00
Gabriel Biren
64203384b1 Merge "Allow VTS tests to pass on devices without Supplicant AIDL." am: ac91c7c9dd am: 57aaae7ad5 am: fc12c9d39e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1945692

Change-Id: Ie53860d68503835213260539fe587a184c64f348
2022-01-12 23:14:43 +00:00
Gabriel Biren
fc12c9d39e Merge "Allow VTS tests to pass on devices without Supplicant AIDL." am: ac91c7c9dd am: 57aaae7ad5
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1945692

Change-Id: I246a670fa0cfb7a0d0cd26ea390291b1815e75c5
2022-01-12 23:08:29 +00:00
Gabriel Biren
ac91c7c9dd Merge "Allow VTS tests to pass on devices without Supplicant AIDL." 2022-01-12 22:52:18 +00:00
Gabriel Biren
5214086d25 Update supplicant bitmap comments to clarify that
defs.h is a useful reference, but not the main
definition for the bitmap values in the interface.

Bug: 210904141
Test: N/A since only comments were updated
Change-Id: Ib721d6ea0182db50f05ddab10096583481f85413
2022-01-12 22:02:55 +00:00
Gabriel Biren
cc7409e8f9 Allow VTS tests to pass on devices without Supplicant AIDL.
Bug: 212653303
Bug: 212652735
Bug: 212652340
Test: Run VTS tests on an AOSP build (since AOSP
       is still using the HIDL interface).
Change-Id: I442efb35c4c68a1337cacc952c3fdb338ef2615d
2022-01-12 00:46:38 +00:00
Treehugger Robot
ebaa020bc2 Merge "Prepares android.hardware.wifi@1.0-service" am: 1303d913f3 am: 5cd48bab29 am: b9f3b6228e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1908491

Change-Id: I80753e5975880530b3999bb03c5b262c095e36e2
2022-01-11 03:08:57 +00:00
Treehugger Robot
b9f3b6228e Merge "Prepares android.hardware.wifi@1.0-service" am: 1303d913f3 am: 5cd48bab29
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1908491

Change-Id: I58b559364e9bd28efcd1bb473350bda45a9ea8c0
2022-01-11 02:24:56 +00:00
Treehugger Robot
1303d913f3 Merge "Prepares android.hardware.wifi@1.0-service" 2022-01-11 01:35:49 +00:00
Treehugger Robot
3a20cc3f55 Merge "[LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces" am: 782706bd09 am: c63160ed14 am: 2954763f9c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1937409

Change-Id: I08bb6e43effb42e79c598a69b71c3a2c4dba183c
2022-01-07 02:24:31 +00:00
Treehugger Robot
2954763f9c Merge "[LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces" am: 782706bd09 am: c63160ed14
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1937409

Change-Id: I8b285f728ea147127dc8a9764f41f7159076cb2c
2022-01-07 02:00:39 +00:00
Bob Badour
6acef468cc [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces
Added SPDX-license-identifier-Apache-2.0 to:
  ir/aidl/Android.bp
  ir/aidl/default/Android.bp
  wifi/supplicant/aidl/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all
Change-Id: I6796bb068122811520f911c0376b7f6caecf471c
2022-01-05 11:14:10 -08:00
Sundong Ahn
c5ec034276 Prepares android.hardware.wifi@1.0-service
Prepares android.hardware.wifi@1.0-service for use by a wifi HAL vendor APEX.
- Creates a cc_defaults with soong config vars for @1.0-service and
  @1.0-service lib that customized implementations can override.

Bug: 205065320
Test: m -j with mac80211_hwsim vendor APEX on Cuttlefish
Test: Connect to wifi
Change-Id: I5827ed1ceb9be8278a54fd828249bf8e549fb950
Merged-In: I5827ed1ceb9be8278a54fd828249bf8e549fb950
2022-01-05 05:07:37 +00:00
Gabriel Biren
edfe1d1472 Merge "Add Wifi HAL supplicant AIDL interface definitions." am: a798cf2c63 am: dc3be74728 am: 7b93d69e16
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1916957

Change-Id: I62c90daf1822e00cc3b7a96f50eec09ec81559fd
2021-12-16 18:48:14 +00:00
Gabriel Biren
7b93d69e16 Merge "Add Wifi HAL supplicant AIDL interface definitions." am: a798cf2c63 am: dc3be74728
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1916957

Change-Id: Ida9607319241549e774f41f493c02022870a606a
2021-12-15 22:33:15 +00:00
Gabriel Biren
a798cf2c63 Merge "Add Wifi HAL supplicant AIDL interface definitions." 2021-12-15 21:13:41 +00:00
Gabriel Biren
28a4812752 Add Wifi HAL supplicant AIDL interface definitions.
Converted from android.hardware.wifi.supplicant@1.4 HIDL interface.

Bug: 196235436
Test: m android.hardware.wifi.supplicant-update-api
BYPASS_INCLUSIVE_LANGUAGE_REASON=HE refers to High Efficiency

Change-Id: I9872f297450457c347fb5fe8cf4005b01d3ab1f6
2021-12-14 23:45:07 +00:00
Treehugger Robot
3596bc95ea Merge "Wifi: P2P VTS tests fail with no P2P support" am: a4a390c0d9 am: f44059b065 am: 22d7ba9f28
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1892882

Change-Id: If1736fe5f7f44b2ab3ed36bd696f66f7cbb09c44
2021-11-18 22:29:15 +00:00
Treehugger Robot
22d7ba9f28 Merge "Wifi: P2P VTS tests fail with no P2P support" am: a4a390c0d9 am: f44059b065
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1892882

Change-Id: I656eec9ad70552d2805d616964fe2e81597b2daf
2021-11-18 22:05:22 +00:00
Treehugger Robot
f44059b065 Merge "Wifi: P2P VTS tests fail with no P2P support" am: a4a390c0d9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1892882

Change-Id: Iba6f9e413f5f49cf0bc09ec70339e982dc669ed2
2021-11-18 21:58:54 +00:00
Blair Prescott
7156c06525 Wifi: P2P VTS tests fail with no P2P support
Skip P2P tests if P2P is not supported.

Bug: 200064365
Test: run vts -m VtsHalWifiSupplicantP2pV1_4TargetTest
Change-Id: I6ba23bb27f24700980cab28d1ff806e5efc65ec9
2021-11-15 13:49:21 -08:00
Xin Li
8f6d361f15 Merge sc-qpr1-dev-plus-aosp-without-vendor@7810918
Bug: 205056467
Merged-In: I96a417467346a57b13c2efae12a183d78506afc3
Change-Id: I570a3b599281f519af7a440562c83f8484684fd5
2021-11-10 08:05:55 +00:00
Gabriel Biren
ab78434023 Merge "Switch hostapd VTS tests to NDK backend." am: e3f88a32db am: 4c9bacbd20 am: f88f0464fb am: 3795cbf883
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1880508

Change-Id: I2622b9f777971cad3f5440b0274a179bad2c0570
2021-11-09 17:06:32 +00:00
Gabriel Biren
3795cbf883 Merge "Switch hostapd VTS tests to NDK backend." am: e3f88a32db am: 4c9bacbd20 am: f88f0464fb
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1880508

Change-Id: I76eac287d9a3144c639edff4bc6d47b0c12726f2
2021-11-09 16:38:28 +00:00
Gabriel Biren
f88f0464fb Merge "Switch hostapd VTS tests to NDK backend." am: e3f88a32db am: 4c9bacbd20
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1880508

Change-Id: Idf7e47cf496d040776433bbb586058a332dd5717
2021-11-09 16:19:36 +00:00
Gabriel Biren
b3eb504848 Switch hostapd VTS tests to NDK backend.
Bug: 204889679
Test: Make and run VtsHalHostapdTargetTest
      m vts -j
      vts-tradefed run commandAndExit vts \
          --module VtsHalHostapdTargetTest
Change-Id: I0fe97b18b83098df6c70a5057576704c4b1f7383
2021-11-03 19:45:39 +00:00
Sunil Ravi
6f95834134 Update the p2p device interface name am: 6adbab13ee am: 31902d7b96
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/16087108

Change-Id: I643afff58307b3ae73124d0b2e828b8cc5322402
2021-10-20 02:01:30 +00:00
Sunil Ravi
31902d7b96 Update the p2p device interface name am: 6adbab13ee
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/16087108

Change-Id: I7870273f60548e2f8feb63a81eed3899fb73cc3d
2021-10-20 01:34:49 +00:00
Sunil Ravi
6adbab13ee Update the p2p device interface name
In some implementations P2P device interface is created under
primary interface(wlan0 by default). In those implementations
p2p device name is predefined in system property wifi.direct.interface.
And the interface is created by supplicant with primary interface as
the parent interface. The naming of p2p device interface is
p2p-dev-<parent interface> ("p2p-dev-wlan0").

With STA+STA feature, wlan0 interface gets deleted in certain scenarios
and wlan1 becomes the active interface. In such scenarios P2P fails to
create the interface as parent interface wlan0 is deleted.

To fix the issue update the p2p device interface from system property
based on the current active wlan interface. ie First get the p2p parent
interface name from p2p device interface name set in property.
Check if the parent interface derived from p2p device interface name is
the current active interface. If not, get the current active interface
and update the name as p2p-dev-<ifname> ("p2p-dev-wlan1").
This helps HIDL/supplicant to get an active wlan interface from p2p
device interface name and succeed in creating the p2p interface under the
active interface.

Bug: 203434193

Test: Manual - Tested STA+STA which ended up deleting wlan0 interface.
      Then ran p2p tests and confirmed that p2p scan and connection
      works.
Change-Id: I522cec02a662c057e21d434f3ed98c7e7a4ca8f0
Merged-In: I522cec02a662c057e21d434f3ed98c7e7a4ca8f0
(cherry picked from commit 7f2822aff7)
2021-10-19 18:14:26 +00:00
TreeHugger Robot
87034011f0 Merge "wifi: extending framework restart waiting time" into sc-v2-dev am: c69d81e5f3
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/16063834

Change-Id: Iaa650b3b3edf214f556fbfd4dbed0cf27bf60ae9
2021-10-19 17:23:15 +00:00
TreeHugger Robot
c69d81e5f3 Merge "wifi: extending framework restart waiting time" into sc-v2-dev 2021-10-19 17:06:10 +00:00
Treehugger Robot
429b3a5e2a Merge "Update OWNERS for VtsHalWifiSupplicant tests." am: b27df86140 am: ec003365b1 am: b0f892dad1 am: 94a36d98dd
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1793006

Change-Id: Ibf77e0f0ecea71289f4bc5e41b67ee4d2944f3ce
2021-10-19 01:57:36 +00:00
Treehugger Robot
94a36d98dd Merge "Update OWNERS for VtsHalWifiSupplicant tests." am: b27df86140 am: ec003365b1 am: b0f892dad1
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1793006

Change-Id: Ic2a2695bea4a3e251b23e0f9a85c41395787a58a
2021-10-19 01:42:37 +00:00
Treehugger Robot
b0f892dad1 Merge "Update OWNERS for VtsHalWifiSupplicant tests." am: b27df86140 am: ec003365b1
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1793006

Change-Id: I4abc372f26d69454b8f7fb9c16429d094891c2bf
2021-10-19 01:29:26 +00:00
Treehugger Robot
b27df86140 Merge "Update OWNERS for VtsHalWifiSupplicant tests." 2021-10-19 00:55:03 +00:00
Roshan Pius
5e9ec95556 wifi: remove disable_framework option to pass the stopWifiFramework procedure am: 9c4930dfd9
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/16063833

Change-Id: I4efeb8d3cc6e61dbc0b595285448c3e615b531ac
2021-10-18 05:27:02 +00:00