Commit graph

1119 commits

Author SHA1 Message Date
Oscar Shu
cb07b80c3c Merge "Ringbuffer stops logging after wifi toggle" into rvc-qpr-dev 2020-08-04 20:49:52 +00:00
Roshan Pius
ba3b87b6aa wifi(vts): Use blocking getService to wait for service to come up
Switch away from using wifi's custom implementation to block for
supplicant/hostapd daemon to come up.

Bug: 161682236
Test:
vts-tradefed run commandAndExit vts --module VtsHalWifiHostapdV1_0Target
vts-tradefed run commandAndExit vts --module VtsHalWifiSupplicantV1_0Host

Change-Id: Ia05f93ba4a28c036315558edbba30f19c2e6ac95
(cherry picked from commit 6d0af445ee)
2020-07-30 17:47:22 +00:00
Roshan Pius
2329bba9fe wifi(vts): Use blocking getService to wait for service to come up
Switch away from using wifi's custom implementation to block for
supplicant/hostapd daemon to come up.

Bug: 161682236
Test:
vts-tradefed run commandAndExit vts --module VtsHalWifiHostapdV1_0Target
vts-tradefed run commandAndExit vts --module VtsHalWifiSupplicantV1_0Host

Change-Id: Ia05f93ba4a28c036315558edbba30f19c2e6ac95
Merged-In: Ia05f93ba4a28c036315558edbba30f19c2e6ac95
(cherry picked from commit 6d0af445ee)
2020-07-29 23:44:51 +00:00
Roshan Pius
3f0e9f7c76 Merge "wifi(vts): Use blocking getService to wait for service to come up" into rvc-dev am: 5afe29b247 am: 1bf88e14c3
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12204704

Change-Id: I480f527cef71fbfe349129d95f94ac8507e8df2e
2020-07-29 20:56:18 +00:00
xshu
a46114dfb9 Ringbuffer stops logging after wifi toggle
Forces ringbuffer updates before writing zipped files to bugreport.
Also properly resets the ringbuffer callback when it's deregistered.

Bug: 161307741
Test: make vts -j64 && vts-tradefed run commandAndExit vts --module VtsHalWifiV1_0Target
Test: manual verification with triggering a bugreport
Test: manual verification with wifi toggles
Change-Id: I74deffda917054e20cfcf4f0dd90d778626c89d3
Merged-In: I74deffda917054e20cfcf4f0dd90d778626c89d3
(cherry picked from commit 0a0fe51a6a)
2020-07-29 20:45:03 +00:00
Roshan Pius
5afe29b247 Merge "wifi(vts): Use blocking getService to wait for service to come up" into rvc-dev 2020-07-29 20:19:16 +00:00
Dan Shi
ff985a85a8 Suppress gtest error for tests without any instance
Bug: 162052785
Test: m -j vts
Change-Id: I58bc808a82b2128bb8774f762f9b9fcecd2614fb
2020-07-29 09:46:36 -07:00
Dan Shi
9eaab747fe Suppress gtest error for tests without any instance am: ba4d532fee am: 73122cd284 am: e5c9b5e722 am: 1a52c0eb25 am: 1a3e0f86eb
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1374050

Change-Id: I6ddea2dcb636e3ba67ad11d53b9fe12c51314c7a
2020-07-29 06:36:31 +00:00
Dan Shi
1a3e0f86eb Suppress gtest error for tests without any instance am: ba4d532fee am: 73122cd284 am: e5c9b5e722 am: 1a52c0eb25
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1374050

Change-Id: I474b87b3697ea787c0f9be246c13a0d71248141f
2020-07-29 06:20:27 +00:00
Dan Shi
e5c9b5e722 Suppress gtest error for tests without any instance am: ba4d532fee am: 73122cd284
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1374050

Change-Id: Ie5e956d4613f5e947c36ba4f1048f0c3aa8944ba
2020-07-29 05:45:58 +00:00
Dan Shi
ba4d532fee Suppress gtest error for tests without any instance
Bug: 162052785
Test: m -j vts
Change-Id: I8c1a48e6fbd7c8161137902b5332911fa0d7b8b3
2020-07-28 15:12:32 -07:00
TreeHugger Robot
bdc16cba32 Merge "wifi: Fix for DPP VTS test failures on 5GHz only devices" into stage-aosp-rvc-ts-dev am: 80224805c5 am: 4b47ecaf5d
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12219814

Change-Id: I2757c0e5bea86e34ea1cddda986f2fa5c2300376
2020-07-24 23:00:52 +00:00
Xin Li
99b0ded102 Merge stage-aosp-rvc-ts-dev into rvc-dev am: f73fe6b6bc am: e594b4db30
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12203367

Change-Id: I488ca631bb7be0193637f98ecc12491a2c0c33b9
2020-07-24 08:46:10 +00:00
Xin Li
2cda765afc Merge stage-aosp-rvc-ts-dev into rvc-dev am: f73fe6b6bc
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12203367

Change-Id: I74978fe2cd4eabf829d72ac7e9feee51fb3cd799
2020-07-24 08:26:19 +00:00
xshu
0a0fe51a6a Ringbuffer stops logging after wifi toggle
Forces ringbuffer updates before writing zipped files to bugreport.
Also properly resets the ringbuffer callback when it's deregistered.

Bug: 161307741
Test: make vts -j64 && vts-tradefed run commandAndExit vts --module VtsHalWifiV1_0Target
Test: manual verification with triggering a bugreport
Test: manual verification with wifi toggles
Change-Id: I74deffda917054e20cfcf4f0dd90d778626c89d3
2020-07-23 19:24:35 -07:00
Jimmy Chen
9801030dff Merge "wifi: upgrade wifi interface to 1.5" 2020-07-24 00:57:47 +00:00
Sunil Ravi
1eaaa3918e wifi: Fix for DPP VTS test failures on 5GHz only devices
Pass one 2.4GHz channel (1) and one 5GHz channel(40) in
URI channel-list, so that devices which support only one band
can initiate Authentication.

Bug: 161331637
Test: VtsHalWifiSupplicantV1_2TargetTest
Test: VtsHalWifiSupplicantV1_3TargetTest
Change-Id: Ic2677c5f2c2bebe632f823f0472da0a5ae404c0d
(cherry picked from commit 6b75eeb045)
2020-07-23 19:33:07 +00:00
Sunil Ravi
1868aa0cb2 wifi: Fix for DPP VTS test failures on 5GHz only devices am: 6b75eeb045 am: cbc091b4be
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12207216

Change-Id: Ib14c5ca62bccf711fb9472d4f976c7d014437764
2020-07-22 21:26:11 +00:00
Sunil Ravi
cbc091b4be wifi: Fix for DPP VTS test failures on 5GHz only devices am: 6b75eeb045
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12207216

Change-Id: Ia547f9673497b2b6cfe07a4d7710f4b3a4839fa9
2020-07-22 21:12:29 +00:00
Sunil Ravi
6b75eeb045 wifi: Fix for DPP VTS test failures on 5GHz only devices
Pass one 2.4GHz channel (1) and one 5GHz channel(40) in
URI channel-list, so that devices which support only one band
can initiate Authentication.

Bug: 161331637
Test: VtsHalWifiSupplicantV1_2TargetTest
Test: VtsHalWifiSupplicantV1_3TargetTest
Change-Id: Ic2677c5f2c2bebe632f823f0472da0a5ae404c0d
2020-07-21 22:59:37 -07:00
Jimmy Chen
d460df3f3b wifi: upgrade wifi interface to 1.5
Only a root interface is added and update relevant code.

Bug: 160834354
Test: atest VtsHalWifiV1_0TargetTest VtsHalWifiNanV1_0TargetTest VtsHalWifiApV1_0TargetTest \
            VtsHalWifiV1_1TargetTest \
            VtsHalWifiV1_2TargetTest VtsHalWifiNanV1_2TargetTest \
            VtsHalWifiV1_3TargetTest \
            VtsHalWifiApV1_4TargetTest VtsHalWifiNanV1_4TargetTest VtsHalWifiRttV1_4TargetTest
Change-Id: Ifdffa3a6996eca1d3c4b499258896cdfe5eb9c87
2020-07-22 13:20:39 +08:00
Roshan Pius
6d0af445ee wifi(vts): Use blocking getService to wait for service to come up
Switch away from using wifi's custom implementation to block for
supplicant/hostapd daemon to come up.

Bug: 161682236
Test:
vts-tradefed run commandAndExit vts --module VtsHalWifiHostapdV1_0Target
vts-tradefed run commandAndExit vts --module VtsHalWifiSupplicantV1_0Host

Change-Id: Ia05f93ba4a28c036315558edbba30f19c2e6ac95
2020-07-21 14:28:28 -07:00
Sunil Ravi
f0d4ef79a8 Merge "wlan: add supported interfaces in rc file" into rvc-qpr-dev am: bd6ba06827
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12178405

Change-Id: I8e73af88fa55bb2a171bcbd656ea6d6d98a2290e
2020-07-20 03:59:40 +00:00
TF Huang
ca7a8c9559 wlan: add supported interfaces in rc file
Service vendor.wifi_hal_legacy should add all supported interface
into relevant .rc files.

Bug: 160377428
Test: Wifi presubmit tests
Change-Id: I68e8d3e7ddb1470a92c5ccd30f6d4d5f90ad9e37
Merged-In: I68e8d3e7ddb1470a92c5ccd30f6d4d5f90ad9e37
2020-07-17 20:51:36 +00:00
Xin Li
e3ed4a6e34 Merge ab/12162526 into stage-aosp-rvc-ts-dev
Bug: 148878042
Change-Id: I0ea1d53b0813228b3cfc7820acbdbba0d86d8ae8
2020-07-15 17:55:13 -07:00
TF Huang
3f0c09583c wlan: add supported interfaces in rc file
Service vendor.wifi_hal_legacy should add all supported interface
into relevant .rc files.

Bug: 160377428
Test: Wifi presubmit tests
Change-Id: I68e8d3e7ddb1470a92c5ccd30f6d4d5f90ad9e37
2020-07-14 17:02:20 -07:00
Nate Jiang
96ea213f21 Merge "[VTS] Use primary channel to enable RTT responder" into rvc-dev am: cf95a2fe53 am: b80ceb1915 am: 98b203e9c3 am: 2a422466cf
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12109459

Change-Id: Ica5e5303d8c55f2e532e5cae0767abf69af1cdf3
2020-07-14 19:19:12 +00:00
Nate Jiang
2a422466cf Merge "[VTS] Use primary channel to enable RTT responder" into rvc-dev am: cf95a2fe53 am: b80ceb1915 am: 98b203e9c3
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12109459

Change-Id: Ia41dd76cc19952c783acdc25590ae7c71598ad7d
2020-07-14 18:59:14 +00:00
Nate Jiang
3acf2015e0 Merge "[VTS] Use primary channel to enable RTT responder" into rvc-dev am: cf95a2fe53
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12109459

Change-Id: Idcf73c3e6993a171958c34a3a8b581c1106b6c71
2020-07-14 18:36:46 +00:00
Oleh Cherpak
754d1d990a vts: supplicant: Remove optional service registration am: 31c434b96c am: 8f10e805c5 am: 574c7d7df4
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12131484

Change-Id: Ifdc655ac9ba405dd0423ac7e489297391b05c33e
2020-07-13 16:31:53 +00:00
Oleh Cherpak
cf8962bfa7 vts: hostapd: Remove optional service registration am: 09f373d6c1 am: 10a678b854 am: 5dc0eb2bc5
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12131483

Change-Id: Id63d9a429c87bdbf5b817f3fcac4d96d1583baa9
2020-07-13 16:31:50 +00:00
Oleh Cherpak
8f10e805c5 vts: supplicant: Remove optional service registration am: 31c434b96c
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12131484

Change-Id: Ied1cb324d5c8a0c18f7d3d6cd9ea92474fffd93d
2020-07-13 16:02:57 +00:00
Oleh Cherpak
10a678b854 vts: hostapd: Remove optional service registration am: 09f373d6c1
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12131483

Change-Id: Ib06679c51c94d8e86ea6ac81ceeb95ea04aa3ff4
2020-07-13 16:02:55 +00:00
Oleh Cherpak
31c434b96c vts: supplicant: Remove optional service registration
Wifi VendorHAL is optional for STA mode to function.
Tests should be runnable even on devices without VendorHAL.

Bug: 148883970
Bug: 158343746
Test: run vts -m VtsHalWifiSupplicantV1_0Host

Signed-off-by: Oleh Cherpak <oleh.cherpak@globallogic.com>
Change-Id: Ife6e09e41ccfd6c3ccbdc19394175d17986d310d
Merged-In: Ife6e09e41ccfd6c3ccbdc19394175d17986d310d
2020-07-11 08:38:30 -07:00
Oleh Cherpak
09f373d6c1 vts: hostapd: Remove optional service registration
Wifi VendorHAL is optional for Soft AP mode to function.
Tests should be runnable even on devices without VendorHAL.

Test: run vts -m VtsHalWifiHostapdV1_1Target
Bug: 148907288
Bug: 158343986

Signed-off-by: Oleh Cherpak <oleh.cherpak@globallogic.com>
Change-Id: Id65d09d39d93e540a24e58fda233fd2faf8c3258
Merged-In: Id65d09d39d93e540a24e58fda233fd2faf8c3258
2020-07-11 08:38:27 -07:00
Veerendranath Jakkam
b3d4348b76 wifi: Update wifi_wait_for_driver_ready return status handling
Now wifi_wait_for_driver_ready can return WIFI_ERROR_UNKNOWN also
thus update return status handling.

Bug: 157090295
Test: Basic function test, SSR test
Change-Id: Iea459bc2801418b1b21d15ce1ca3da9be64a4fe3
2020-07-10 08:36:59 +00:00
Nate Jiang
400d9fa0a9 [VTS] Use primary channel to enable RTT responder
Bug: 160109667
Test: atest VtsHalWifiRttV1_4TargetTest
Change-Id: I9bbe5cdaf9656503acb87e2888856e0f199dc45f
2020-07-08 10:56:26 -07:00
Jooyung Han
d610435ac4 update hidl .bp
HIDL libs are not necessarily part of VNDK now. Because some are
used by VNDK libs, they are still VNDK. But rest are now just
vendor-available.

.hidl_for_test files are also removed because they are used to exclude
test-purpose hidl libs from VNDK libs.

Instead, .hidl_for_system_ext files are added to tests/lazy to
distinguish them from others which are installed /system.

Bug: 143933769
Test: update-makefiles.sh && m com.android.vndk.current
Merged-In: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
Change-Id: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
(cherry picked from commit b0907a6bb8)
2020-07-07 16:22:36 +09:00
Ahmed ElArabawy
2134bf71f8 Wifi: Handle subsystem restart notification
This commit adds the logic to handle a notification of a wifi subsystem
restart to trigger the callback to the framework for self recovery.

Bug: 159367026
Test: force a firmware restart and make sure Wifi is recovered.
Change-Id: If6b5863d1d7473917088ec5be1910fa0db5dd6ae
2020-07-02 17:35:25 +00:00
Jooyung Han
d18cba85fe update hidl .bp
HIDL libs are not necessarily part of VNDK now. Because some are
used by VNDK libs, they are still VNDK. But rest are now just
vendor-available.

.hidl_for_test files are also removed because they are used to exclude
test-purpose hidl libs from VNDK libs.

Instead, .hidl_for_system_ext files are added to tests/lazy to
distinguish them from others which are installed /system.

Bug: 143933769
Test: update-makefiles.sh && m com.android.vndk.current
Merged-In: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
Change-Id: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
(cherry picked from commit b0907a6bb8)
2020-07-02 12:26:37 +09:00
Jooyung Han
b0907a6bb8 update hidl .bp
HIDL libs are not necessarily part of VNDK now. Because some are
used by VNDK libs, they are still VNDK. But rest are now just
vendor-available.

.hidl_for_test files are also removed because they are used to exclude
test-purpose hidl libs from VNDK libs.

Instead, .hidl_for_system_ext files are added to tests/lazy to
distinguish them from others which are installed /system.

Bug: 143933769
Test: update-makefiles.sh && m com.android.vndk.current
Change-Id: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
2020-07-02 09:18:17 +09:00
Nate Jiang
63f34eda73 Fix NAN validate interface existence
Bug: 156879576
Test: atest android.hardware.wifi@1.0-service-tests

Change-Id: I8505e343f5b2ea5ea522cbb2ea344ff8914aea3d
2020-05-21 00:01:51 -07:00
TreeHugger Robot
32c900b64e Merge "Disable framework for test VtsHalWifiSupplicantV1_3TargetTest" into rvc-dev 2020-05-20 05:02:05 +00:00
TreeHugger Robot
ecec92b7fd Merge "IWifi: Validate dedicated NAN discovery interface." into rvc-dev 2020-05-20 03:14:36 +00:00
Nate Jiang
8c0fec12ec Skip test when NAN or RTT feature not supported
Bug: 155372761
Test: atest VtsHalWifiApV1_4TargetTest, VtsHalWifiNanV1_4TargetTest, VtsHalWifiRttV1_4TargetTest
SingleDeviceTest
Merged-In: I04bfffe9dc587e3f7209601c3712422b6e2d165c
Change-Id: I04bfffe9dc587e3f7209601c3712422b6e2d165c
2020-05-19 20:29:07 +00:00
Nate Jiang
4ad7daa925 IWifi: Validate dedicated NAN discovery interface.
Bug: 156879576
Test: atest android.hardware.wifi@1.0-service-tests
Change-Id: I9150b683ceb5631139eab6e0c6c8edb4209c9493
2020-05-19 20:20:10 +00:00
Dan Shi
c09c353e52 Disable framework for test VtsHalWifiSupplicantV1_3TargetTest
Bug: 156268286
Test: atest VtsHalWifiSupplicantV1_3TargetTest
Change-Id: I8208cbf6ca26655615ecb6c0a39c50e6b62e8f6e
2020-05-19 13:05:09 -07:00
Nate Jiang
7f304d738b Merge "[VTS] Seperate Nan and Rtt from Sap test" into rvc-dev 2020-05-13 20:18:00 +00:00
TreeHugger Robot
caaa36bce0 Merge "wifi: check device capaiblities before running vts tests" into rvc-dev 2020-05-13 07:02:05 +00:00
Nate Jiang
9ecaa48a02 [VTS] Seperate Nan and Rtt from Sap test
Bug: 155372761
Test: atest VtsHalWifiApV1_4TargetTest, VtsHalWifiNanV1_4TargetTest, VtsHalWifiRttV1_4TargetTest
Change-Id: I0af11c01e9d87c0837f45b733010c96b5ba94f04
2020-05-12 23:53:58 -07:00
Jimmy Chen
8587b8870e wifi: check device capaiblities before running vts tests
Wi-Fi Direct might not be supported, the test runner should
check it first before running tests.

Bug: 155372909
Test: * atest VtsHalWifiSupplicantP2pV1_2TargetTest
      * remove Wi-Fi Direct support in device.mk
        atest VtsHalWifiSupplicantP2pV1_2TargetTest
Change-Id: Ie32b5fb831eebba818b83a9b9855e8a66b929e3d
2020-05-13 10:49:47 +08:00
kumachang
d6bd3cf761 wifi: skip nan vts tests if nan is not supported
Bug: 155372909
Test: atest VtsHalWifiNanV1_0TargetTest
Change-Id: I20c90509395788a72999cd6029573502004d1815
2020-05-12 19:46:49 +08:00
Jimmy Chen
9003d20916 vts: test setting WAPI psk hex
Bug: 139257562
Test: atest VtsHalWifiSupplicantV1_3TargetTest
Change-Id: Id7b181f7d9280926c441ac6fbf7420f17a857c02
2020-05-08 02:56:46 +08:00
Jimmy Chen
503f786f11 Merge "wifi: stop running supplicant before tests" into rvc-dev 2020-05-02 04:41:28 +00:00
Ahmed ElArabawy
c4c9da2f0b Merge "Wifi: Optionally avoid interface down/up when doing setMacAddress" into rvc-dev 2020-05-01 01:41:39 +00:00
Ahmed ElArabawy
3ee519be3a Wifi: Optionally avoid interface down/up when doing setMacAddress
Some vendors implementation will reset wifi chip when doing interface
down.
Accordingly, We need to avoid the interface down/up when doing
setMacAddress to avoid loss of sync between framework and firmware.

This commit uses a BOARD_WIFI_AVOID_IFACE_RESET_MAC_CHANGE macro to
check if it is needed to avoid interface down/up at setMacAddress.

Bug: 153771961
Test: VTS Test
Test: atest VtsHalWifiV1_2TargetTest
Change-Id: I971764f1c272ebfd245959974fa0d1b10ba7c39b
2020-04-30 15:07:58 -07:00
Roshan Pius
78cb59913a Allow tethering name config
Test: manual

Bug: 155110247
Test: Compiles
Test: Verified that SAP is working

Change-Id: I6f0fd5b891dd6e6c2f0ceab05f6830b56f6474b1
2020-04-30 21:43:29 +00:00
Jimmy Chen
c633302a86 wifi: stop running supplicant before tests
The first test would always fail because it tries to
use system-initiating supplicant process.

Bug: 155257934
Test: atest VtsHalWifiSupplicantV1_3TargetTest
Change-Id: I79b69ec04faab5e8f2af0e5e3a9b1cc4c3aa0c36
2020-04-30 15:37:29 +08:00
Jimmy Chen
c578a91356 wifi: skip tests if RTT is not supported
Bug: 153418156
Test: atest VtsHalWifiApV1_4TargetTest

Change-Id: I2aa58c501f44a9b32c1a7ebf48aa8fcbfb08b046
2020-04-21 07:54:11 +00:00
Roshan Pius
d234d8b1d6 Merge "wifi_sta_iface: Deprecate setScanningMacOui" into rvc-dev 2020-04-17 06:12:32 +00:00
Roshan Pius
322677a172 wifi_sta_iface: Deprecate setScanningMacOui
Bug: 154267383
Test: Device boots up and connects to wifi networks.
Change-Id: I70206e2c25d90ebd5ac35938af9ca2ebffefa318
2020-04-16 16:53:02 -07:00
Veerendranath Jakkam
25b3a6f0a4 Synchronize on_ring_buffer_data_callback and writeRingbufferFiles
on_ring_buffer_data_callback callback is invoked on getting the
corresponding driver/firmware ringbuffer logs. This callback further
stores the ringbuffer data locally in cur_buffer. While the data is
getting updated through this callback, writeRingbufferFilesInternal
can get triggered from a different context which accesses the same buffer
-cur_buffer.
Synchronization is missing between these two contexts while accessing the
buffer and this commit attempts the same.

Bug: 153970986
Test: Manual - collect the bugreport and check the ring buffer logs.
Change-Id: Id99a517f4d72872b84b48c3df75dd29743f3e9b2
2020-04-15 21:53:48 -07:00
Roshan Pius
acf79bfacf Merge "Use additional interface for the WiFi Aware Discovery operations." into rvc-dev 2020-04-15 04:51:44 +00:00
Roshan Pius
5ba0a90cac Use additional interface for the WiFi Aware Discovery operations.
NAN operations are currently done on the STA interface.This resulted
in the NAN sessions getting terminated in all the instances where the
STA interface is restarted (IFF DOWN/UP), due to connected MAC
randomization.
Hence, remove the dependency of NAN over STA interface. This change
expects the driver to create a dedicated interface for the
NAN operations. The iface name needs to be set in "wifi.aware.interface"
property.

Bug: 1636219
Test: HAL unit tests
Test: Device boots up and connects to wifi network.
Change-Id: I1b6d64eb94334172a8cd621d0b15ed8c8dc87f91
2020-04-14 13:47:42 -07:00
Dan Shi
fdbc494c69 Remove references of VtsHalHidlTargetTestBase
Bug: 147894326
Test: build
Change-Id: If847cc3aa5bb17682b92266f5460efe9d3fadfab
2020-04-13 23:15:50 -07:00
Daniel Norman
ecb16248c9 Adds IWifi 1.3 and 1.4 as interfaces provided by vendor.wifi_hal_legacy.
Bug: 150474819
Bug: 152173671
Test: vts_ibase_test
Change-Id: Ie5462d41177ec6dd56e6de266157e7d4ac28b388
Merged-In: Ie5462d41177ec6dd56e6de266157e7d4ac28b388

(cherry picked from commit f58ff069ee)

Change-Id: Ie5462d41177ec6dd56e6de266157e7d4ac28b388
2020-04-08 21:39:24 +00:00
Dan Shi
55d110bcd0 Rename vts-core to vts am: ba894f81db
Change-Id: Ifb5d31470ee6d3b29b2f1af4be54b1fbdd888a7c
2020-04-07 23:45:55 +00:00
Dan Shi
aad51fa000 Rename vts-core to vts
Bug: 151896491
Test: local build
Exempt-From-Owner-Approval: This CL update suite name vts-core to vts as
the suite name is updated. This CL won't change test logic or behavior.

Change-Id: I562b4dc50765e953800a814a8fd84a01c1b9352b
Merged-In: I562b4dc50765e953800a814a8fd84a01c1b9352b
2020-04-07 16:37:40 -07:00
Dan Shi
ba894f81db Rename vts-core to vts
Bug: 151896491
Test: local build
Exempt-From-Owner-Approval: This CL update suite name vts-core to vts as
the suite name is updated. This CL won't change test logic or behavior.

Change-Id: I562b4dc50765e953800a814a8fd84a01c1b9352b
Merged-In: I562b4dc50765e953800a814a8fd84a01c1b9352b
2020-04-07 15:17:02 -07:00
Nate Jiang
eb9d19960e Make VTS test use the highest supported preamble
VTS should use the highest supported preamble.
If preamble is not support by device, LOWI will return unknow error.

Bug: 152440187
Test: atest VtsHalWifiApV1_4TargetTest
Change-Id: I972377a526c5d62a733878df5fd80d4af17e37ff
2020-04-06 23:32:34 -07:00
Dan Shi
86b285465f Remove dependency on VtsHalHidlTargetTestEnvBase
Bug: 143892896
Test: atest VtsHalWifiApV1_0TargetTest \
  VtsHalWifiNanV1_0TargetTest \
  VtsHalWifiV1_0TargetTest \
  VtsHalWifiV1_1TargetTest \
  VtsHalWifiV1_2TargetTest \
  VtsHalWifiNanV1_2TargetTest \
  VtsHalWifiV1_3TargetTest \
  VtsHalWifiApV1_4TargetTest \
  VtsHalWifiHostapdV1_0TargetTest \
  VtsHalWifiHostapdV1_1TargetTest \
  VtsHalWifiHostapdV1_2TargetTest \
  VtsHalWifiSupplicantV1_0TargetTest \
  VtsHalWifiSupplicantP2pV1_0TargetTest \
  VtsHalWifiSupplicantV1_1TargetTest \
  VtsHalWifiSupplicantV1_2TargetTest \
  VtsHalWifiSupplicantP2pV1_2TargetTest

Change-Id: I8a18f18f3aaa497642f380fea43517ec14554993
2020-03-31 11:34:32 -07:00
Ahmed ElArabawy
7f817f5e23 Wifi: Fix vts tests error handling
In current code, VTS tests checks on null pointer using EXPECT_NE
then proceed with using the variable. This causes a null pointer
exception when the test fails.
This commit replaces the EXPECT_NE with ASSERT_NE to exit the test
on failure.

Bug: 152576797
Test: atest VtsHalWifiV1_0TargetTest
Change-Id: I5e54634020216f91144a234caf2b990de5706d8c
2020-03-27 00:08:58 -07:00
Jimmy Chen
54cae11b79 Wifi: omit FILS related vts tests if not supported
Supplicant FILS operation is independent from driver key management
driver support, i.e. even FILS is not supported in driver,
these APIs still could be used. These APIs are controlled by supplicant
CONFIG_FILS directly. To avoid inconsistent capability check, omit FILS
vts tests if any of driver and supplicant does not support it.

Bug: 149042449
Test: atest VtsHalWifiSupplicantV1_3TargetTest
Change-Id: Ia0cdaac282f9ec6e9450d72795ed6461433bdf3b
2020-03-03 14:12:10 +08:00
Ahmed ElArabawy
c4ae073b9a Merge "Wifi: Add support for mapping DSCP to Wifi AC" 2020-02-21 00:23:06 +00:00
Nate Jiang
6c2e21ff55 Merge "Fix nan Vts test" 2020-02-20 05:51:52 +00:00
Nate(Qiang) Jiang
a075122fca Fix nan Vts test
count shoule be initialize to 0 before test.

Bug: 149709834
Test: atest VtsHalWifiApV1_4TargetTest
Change-Id: I47c43571bc3ff91f389a4c9f41e050cc13c104a2
2020-02-19 17:34:29 -08:00
Ahmed ElArabawy
a1d1365ed3 Wifi: Add support for mapping DSCP to Wifi AC
This commit adds the needed enum and methods to handle the mapping
of DSCP into wifi access categories.

Bug: 141500691
Bug: 141550272
Test: Builds successfully
Change-Id: I3a85c211057907c2363f7f349d0075e6b4a1b152
2020-02-19 16:48:41 -08:00
Ahmed ElArabawy
98eab1d10c Add VTS tests to RTT impact of support of 11ax
This commit adds missing VTS tests for the support of 80211ax and its
impact to RTT.

Bug: 139354972
Test: atest VtsHalWifiApV1_4TargetTest
Change-Id: Ib13b65b5b76d1d940ac784a4a3b4899af88e541a
2020-02-17 23:00:46 -08:00
Ahmed ElArabawy
82e3c6bb60 Add missing instantiation code for Vts tests
Instantiation script is missing from the
wifi/1.4/vts/functional/wifi_nan_iface_hidl_test.cpp
wifi/1.4/vts/functional/wifi_chip_hidl_test.cpp

Bug: 149709807
Test: atest VtsHalWifiApV1_4TargetTest
Change-Id: Ifd4ac0adbdffa77381a60f48f830ebccb6535dfe
2020-02-17 16:23:20 -08:00
Sunil Ravi
2797c113c8 Merge "wifi: Improve documentation of hidl APIs." 2020-02-13 17:25:29 +00:00
Sunil Ravi
c8c0064e99 wifi: Improve documentation of hidl APIs.
Added changes as per ANAPIC review to improve
documentation of few hidl APIs.

Bug: 148617258
Test: Not tested as there is no code change.
Change-Id: I3f91c6b8aad3f34807534a3fbc3cf5a3c3233cd7
2020-02-12 18:22:01 -08:00
Sunil Ravi
2350a89e78 Merge "wifi: Fix for VtsHalWifiSupplicantV1_0TargetTest failures" 2020-02-12 23:17:13 +00:00
Sunil Ravi
6e58a649e8 wifi: Fix for VtsHalWifiSupplicantV1_0TargetTest failures
Since some of the APIs are overridden by an upgraded API in newer HAL,
Check the return value of such deprecated APIs and if it's
FAILURE_UNKNOWN, don't proceed and consider it as pass.

Bug: 147821406
Bug: 146991831
Bug: 149045565
Test: atest VtsHalWifiSupplicantV1_0TargetTest
Test: atest VtsHalWifiSupplicantV1_1TargetTest
Test: atest VtsHalWifiSupplicantV1_2TargetTest
Change-Id: I28c4431bfeaaa7a628be71f41f8299a85fed7eed
2020-02-12 10:46:46 -08:00
Jimmy Chen
cd92c8328e wifi: skip p2p vts tests if p2p is not supported
Bug: 149053982
Test: * remove wifi direct featuer in device.mk
      * flash build
      * atest VtsHalWifiSupplicantP2pV1_2Target

Change-Id: I9d8a41e4d1f2cde9d311481d285be448583b8d9e
2020-02-11 10:57:59 +08:00
Jimmy Chen
019164c4b9 wifi: fix uninitialized variable
Bug: 149042449
Test: atest VtsHalWifiSupplicantV1_3TargetTest
Change-Id: Ie583d1db3697891c96c9186526ae47f40751b822
2020-02-07 09:59:50 +08:00
Les Lee
c124b39f9e Merge "vts: Use shell command to get softap feature" 2020-02-05 07:08:49 +00:00
lesl
9be5a79afe vts: Use shell command to get softap feature
We should only run the vts which claim is supported.

Bug: 140172237
Test: atest VtsHalWifiHostapdV1_2TargetTest
Change-Id: If0b1d9f0a73bd171621299dab7828a9caf928a7a
2020-02-05 11:12:19 +08:00
Automerger Merge Worker
14edbe86dd Merge "Remove reference of VtsHalHidlTargetTestBase" am: badb75e309 am: 88b5b44f89 am: 4eaa7205f8
Change-Id: Ie3eb4abb16005f5a8d137ce800dcc8e21e32b5e8
2020-02-05 00:23:34 +00:00
Automerger Merge Worker
4eaa7205f8 Merge "Remove reference of VtsHalHidlTargetTestBase" am: badb75e309 am: 88b5b44f89
Change-Id: I8f0ee727d4370aae80a44a016dbc12e8cda079bd
2020-02-05 00:06:24 +00:00
Automerger Merge Worker
88b5b44f89 Merge "Remove reference of VtsHalHidlTargetTestBase" am: badb75e309
Change-Id: Ia1b74f69ff92f57117e5e9510896b6c4b6730548
2020-02-04 23:54:32 +00:00
Sunil Ravi
ba3f79954b Merge "wifi: Add provision to create/delete dynamic interface(s)" 2020-02-04 18:28:10 +00:00
Ahmed ElArabawy
afd901411f Merge "Wifi: Add documentation for MacAddress" 2020-02-04 17:23:03 +00:00
Sunil Ravi
ddab4bbd9c wifi: Add provision to create/delete dynamic interface(s)
This commit does following:
create/delete softap interface at runtime, if needed.
create/delete station interface at runtime, if needed.

Bug: 146539882
Bug: 121156971
Test: Manual - Basic wifi sanity test.
Change-Id: I6ab9c9e134d2f09e27283c9e60df885392834de4
Signed-off-by: Vinay Gannevaram <quic_vganneva@quicinc.com>
2020-02-03 22:47:01 -08:00
TreeHugger Robot
79899f080f Merge "Remove reference of VtsHalHidlTargetTestBase" 2020-02-04 05:05:34 +00:00
Dan Shi
ea83307a5e Remove reference of VtsHalHidlTargetTestBase
Bug: 147894326
Test: m -j VtsHalCasV1_1TargetTest \
  VtsHalWifiSupplicantV1_3TargetTest
Change-Id: I9a45a522edd03b6aba3ab5772a259fad7b706a23
2020-02-04 03:30:15 +00:00
Dan Shi
9910d38aa7 Remove reference of VtsHalHidlTargetTestBase
Bug: 147894326
Test: m -j VtsHalWifiHostapdV1_0TargetTestUtil \
  VtsHalSensorsTargetTestUtils
Change-Id: If11f23db93333ddd702ce5ebf7c5c0b9583c57fa
2020-02-04 03:29:50 +00:00
Ahmed ElArabawy
c8d863fd29 Wifi: Add documentation for MacAddress
This commit adds documentation for MacAddress type definition.

Bug: 148617829
Test: Build successful
Change-Id: I535b78ac6826a478e8bbe10c2eced30e64f05724
2020-02-03 15:56:59 -08:00
Sunil Ravi
8d343bdfc0 wifi: Fix for VtsHalWifiSupplicantV1_2TargetTest failures
Check the return value of deprecated APIs and if it's
FAILURE_UNKNOWN, don't proceed and consider it as pass.

Bug: 147434122
Test: atest VtsHalWifiSupplicantV1_2TargetTest
Change-Id: Ib6cfb70c514f10faa54ca11011657528374175e6
2020-02-03 13:20:15 -08:00
Ahmed ElArabawy
1845b8e555 Wifi: Improve documentation for some hidl APIs
This commit improves some of the comments for the Wifi Hidl APIs.

Bug: 148236141
Test: No test is done
Change-Id: Iff6b191c8b258615ddaacad570b81f0ada968ed4
2020-01-31 17:22:36 -08:00
Automerger Merge Worker
478ad5c96a wifi(implementation): Clear wifi event callback objects while stopping am: 4c1b6780b4
Change-Id: Ibd07d9585b3048c175888296b2bef570ba14ee4b
2020-01-29 21:34:10 +00:00
Kyounghan Lee
4c1b6780b4 wifi(implementation): Clear wifi event callback objects while stopping
This fixes a deadlock between WifiNative and HalDeviceManager
because it removes about 30 times callbacks of
IWifiEventCallback#onFailure() or onStop(). Such excessive callbacks
within a short period tend to make high probabilities of the deadlock.

Note: This is a side effect of how the framework is registering multiple
callbacks. But, unfortunately there is no HAL API to unregister
callback. So, this is somewhat of a workaround fix.

Bug: 144137870
Test: Verified that the HAL no longer accumulates callbacks from
framework.
Test: Device boots up and connects to wifi networks.
Change-Id: I441e2f815a0a49c3936615f06a65a6ed5366a628
Merged-In: I441e2f815a0a49c3936615f06a65a6ed5366a628
2020-01-29 11:09:41 -08:00
Kyounghan Lee
f2e21c27fd wifi(implementation): Clear wifi event callback objects while stopping
This fixes a deadlock between WifiNative and HalDeviceManager
because it removes about 30 times callbacks of
IWifiEventCallback#onFailure() or onStop(). Such excessive callbacks
within a short period tend to make high probabilities of the deadlock.

Note: This is a side effect of how the framework is registering multiple
callbacks. But, unfortunately there is no HAL API to unregister
callback. So, this is somewhat of a workaround fix.

Bug: 144137870
Test: Verified that the HAL no longer accumulates callbacks from
framework.
Test: Device boots up and connects to wifi networks.
Change-Id: I441e2f815a0a49c3936615f06a65a6ed5366a628
2020-01-29 07:03:17 -08:00
Kumar Anand
f5fbead6dc Merge "wifi: thermal hal api" 2020-01-23 22:36:17 +00:00
Kumar Anand
f2747e04ef wifi: thermal hal api
Use global handle instead of interface handle as thermal
mitigation is not interface specific.

Bug: 112471991
Test: atest FrameworksWifiTests
Change-Id: Ia8aadec7794bd2dbd5954ec0225caa349b31070c
2020-01-23 22:25:52 +00:00
Kai Shi
5e12b9635d Wifi: add 3 new fields to ConnectionCapabilities.
Add channel bandwidth, max number of Rx spatial streams, max number of
Tx spatial streams to connectionCapabilitie() which is derived from
association request and response frames after a new association.

bug: 147390882
Test: VTS test
Test: manual test with various phones and APs.
Change-Id: Iaeb5e0419887b766ec1a4cb13843494539aa3ddd
2020-01-19 10:26:03 -08:00
Vamsi Krishna
2f82923cfa wifi: Add required API to connect to FILS enabled APs
Add support to configure FILS key_mgmt types while adding
configurations for FILS enabled APs. FILS defines two different
AKM suites, one based on SHA256 and the other based on SHA384.
Also add API to enable ERP keys generation while connecting FILS
enabled APs. Once generated, the ERP keys can be used to make faster
connections to the FILS enabled APs which are within the same realm
as that of the AP with which the ERP keys are generated.

FILS also provides provision to exchange Higher Layer Packets(HLPs)
along with association request and association response frames. Add
API to configure HLP packets that can be sent with Association
request while connecting to FILS enabled APs. Also add API to flush the
HLP packets that were already configured during previous connection
requests.

Bug: 143259898
Test: WiFi basic sanity test
Test: VTS test
Change-Id: If5cb0c112d46fa8695b4517f42cb7c6706970751
2020-01-17 17:24:11 -08:00
Ahmed ElArabawy
43363d72c7 Merge "Wifi: Remove the IHostapd.HwModeParams.heBssColor" 2020-01-16 20:03:36 +00:00
Ahmed ElArabawy
0e8175e8c2 Wifi: Remove the IHostapd.HwModeParams.heBssColor
This commit removes the heBssColor field from IHostapd.HwModeParams

Bug: 141831296
Test: VTS Test
Change-Id: I586a26e9b1057ccce23d4d91c7ea8dca13c59528
2020-01-15 07:18:56 -08:00
Isaac Chiou
0f97764f22 Wifi: create new callback to deliver eap error code
Create new callback to deliver eap error code
from supplicant to framework

Bug: 139880103
Test: atest VtsHalWifiSupplicantV1_3TargetTest
Change-Id: I6604356672899d7a0933af6fb20879bb91871efd
2020-01-14 21:26:03 +08:00
Dan Shi
0b214dc46e Merge "Convert VtsHalWifiSupplicantV1_3TargetTest to be parameterized test" 2020-01-11 04:43:42 +00:00
TreeHugger Robot
f2aaa68ec4 Merge "hostapd: Add SAE Support" 2020-01-11 01:07:02 +00:00
Dan Shi
79e804d6fb Convert VtsHalWifiSupplicantV1_3TargetTest to be parameterized test
Bug: 142397658
Test: atest VtsHalWifiSupplicantV1_3TargetTest
Change-Id: I85a064b05439776c3083f8cf9762d5f2a994b959
2020-01-10 16:11:22 -08:00
Dan Shi
26ca8f9384 Merge "Convert VtsHalWifiSupplicantV1_*TargetTest to be parameterized test" 2020-01-10 20:19:11 +00:00
lesl
1cc02e52d9 hostapd: Add SAE Support
Bug: 142752869
Test: Manuel
Test: vts-tradefed run commandAndExit vts-hal --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VtsHalWifiHostapdV1_2Target -l INFO
Change-Id: I811760206d05825f11f07f71cef21ed03a8c7204
2020-01-10 16:17:56 +08:00
Dan Shi
d64367312e Convert VtsHalWifiSupplicantV1_*TargetTest to be parameterized test
Bug: 142397658
Test: atest VtsHalWifiSupplicantV1_1TargetTest \
  VtsHalWifiSupplicantV1_2TargetTest \
  VtsHalWifiSupplicantP2pV1_2TargetTest

Change-Id: I14a3e94d0b3681c5a3ebd17435dc36d279790c79
2020-01-09 09:48:03 -08:00
Ahmed ElArabawy
0e99148d7a Wifi: Add frequency list to chanelPrams in hostapd
This commit adds a new parameter to the channel parameters for IHostapd
Hidl interface to handle a list of channel freq in MHz to be used in
ACS. This is needed as part of support of Wifi 6GHz band since 6GHz band
channels use same channel numbers as 2.4/5GHz bands.

Bug: 146186687
Bug: 139354972
Test: Manual
Test: VTS test
Change-Id: I8692f3cd28cfaae1d3b870c9f8dbcdd2ff350ee4
2020-01-09 17:28:41 +00:00
Hai Shalom
a8cc19186a Merge "[SAE] Add support to add SAE Authentication algorithm" 2020-01-09 00:40:08 +00:00
Ahmed ElArabawy
f08d1e41ee Merge "Wifi: Make sure that VTS tests start with a clean state" 2020-01-08 16:23:31 +00:00
Ahmed ElArabawy
dcfab61c9b Wifi: Make sure that VTS tests start with a clean state
In current code base, The SetUp() method in wifi VTS tests does not
reset Wifi state. Hence the first Wifi test runs with unspecified state.
Following test cases are not impacted due to that TearDown() takes care
of resetting the Wifi state.

This commit adds the stopWifi() method to the SetUp() so all test cases
start from the same Wifi state.

Bug: 145312303
Test: Run all wifi VTS tests
Test: atest <VTS test module name>
Change-Id: I63d7c0d27f4ceb713dda3804786a199dc2274be5
2020-01-08 03:51:43 +00:00
Kumar Anand
deb46003eb Merge "wifi: Legacy HAL Thermal API stub" 2020-01-07 22:12:23 +00:00
Hai Shalom
08b70226f3 [SAE] Add support to add SAE Authentication algorithm
Add support to add SAE Authentication algorithm in the
framework (public API), and in the Supplicant HAL.

Bug: 147253259
Test: Manual connection to SAE, PSK, OWE and Open APs
Test: atest WifiConfigurationTest
Change-Id: I853e816be1ba618d61ac0fcb4b116879baba4be2
2020-01-06 16:31:36 -08:00
Ahmed ElArabawy
c4af97a1a8 Wifi: IHostapd: Add 11ax parameters
This commit adds the 802.11ax parameters for SoftAp.

Bug: 141831296
Test: atest VtsHalWifiHostapdV1_2TargetTest
Change-Id: I7258c10c5dda040e6e05c1a8ec595072017e3ace
2020-01-06 11:21:01 -08:00
Roger Wang
950df46128 Merge "hostapd: Add debug level control" 2020-01-03 02:45:15 +00:00
Ahmed ElArabawy
9392b58da0 Wifi: Fix VtsHalWifiHostapdV1_1TargetTest
This commit fixes VTS tests in VtsHalWifiHostapdV1_1TargetTest
resulting from upgrading APIs and stopping support for old APIs.

Bug: 147006566
Test: atest VtsHalWifiHostapdV1_1TargetTest
Change-Id: Ia6be7f08c160ef3b0478630193fb6a39e774e109
2019-12-30 10:11:57 -08:00
Ahmed ElArabawy
436ab20ef6 Wifi: Fix VTS tests in VtsHalWifiNanV1_2TargetTest
This commit fixes VTS tests in VtsHalWifiNanV1_2TargetTest resulting
from upgrading APIs and stopping support for old APIs.

Bug: 146989939
Test: atest VtsHalWifiNanV1_2TargetTest
Change-Id: Ibc71cdb3ead7fb346ac62ebfd132f82ee3d81eeb
2019-12-29 23:44:25 -08:00
Ahmed ElArabawy
36defb377e Wifi: Fix VTS tests
This commit fixes VTS tests resulting from upgrading APIs and stopping
support for old APIs.

Bug: 144926452
Test: atest VtsHalWifiV1_0TargetTest
Test: atest VtsHalWifiV1_3TargetTest
Change-Id: I73140be1dfb969da24c802e658e97d4040837243
2019-12-29 21:56:41 -08:00
Ahmed ElArabawy
5a3e81c7fb Fix vts test VtsHalWifiV1_2TargetTest
VTS test for WifiChipHidlTest#registerEventCallback_1_2 was failing
on the default implementation of the 1.4 HAL. This is because
registerEventCallback_1_2() is no longer supported due to the upgrade
to registerEventCallback_1_4().

This commit fixes this VTS test error by allowing ERROR_NOT_SUPPORTED
as a valid test output.

Bug: 146020950
Test: atest VtsHalWifiV1_2TargetTest

Change-Id: Ia58b0dad5ed753c22d620b0fad6904d634e01e72
2019-12-29 21:56:13 -08:00
Roger Wang
9e00293747 hostapd: Add debug level control
Add new API: setDebugParams

Bug: 129111866
Test: manual test
Test: atest VtsHalWifiHostapdV1_2TargetTest

Change-Id: I0e61db3d029c89380b687ecddd38a00aafcff0cc
2019-12-30 13:07:36 +08:00
Sunil Ravi
ae33929ac9 Wifi: DPP test cases failing in VTS test
call  1_3 version of GetKeyMgmtCapabilities() from isDppSupported() method.

Bug: 146804291
Test: atest -c VtsHalWifiSupplicantV1_3TargetTest
Change-Id: Ib0bfe2e48b8cbe3d04e73f65bd926ab1992a4bae
2019-12-23 15:09:10 -08:00
Sunil Ravi
c6489a5641 Wifi: MBO-OCE feature support (phase 3)
Added hidl call back function to notify framework about
bss transition request frame handling status.
Also fixed few code style issues by running hidl-gen -Lformat.

Bug: 139474288
Test: Manual
Test: VTS test
Change-Id: I00760f14d81a59e63042b1a5be9f9e3f74ff3a83
2019-12-21 01:37:17 +00:00
Kumar Anand
913d5604ee wifi: Legacy HAL Thermal API stub
Add the stub implementation for Wifi thermal API

Bug: 140311866
Test: Manual, on device
Change-Id: I401bf7a38fa52d160ae45cd519a225c07360cd3c
2019-12-20 16:40:37 -08:00
Hai Shalom
a94e59a387 [DPP R2] Update VTS test for supplicant 1.2
Update VTS test for supplicant 1.2 to skip the DPP tests
if the underyling HAL is 1.3. The reason is because 1.3
HAL uses different callbacks.

Bug: 139381558
Test: atest VtsHalWifiSupplicantV1_2Host
Change-Id: Ie9cd93e33bda3ca22ee2b5593d185f1918be847e
2019-12-20 14:31:56 -08:00
Hai Shalom
36768048c4 [DPP R2] Support for DPP R2
Added necessary types and enhanced the callbacks for DPP R2.
Added VTS tests for DPP R2 using HAL 1.3.

Bug: 139381558
Test: atest VtsHalWifiSupplicantV1_3Host
Change-Id: I18a58d6bd0e0b8260946f2186abda5bac93729c7
2019-12-20 09:19:23 -08:00
Automerger Merge Worker
5fc2c40179 Merge "Wifi: fix p2p vts failure on no p2p support devices" am: 189894129c am: 96643ab05c am: 2406c41f21
Change-Id: I406fca1dbafa54b28daf467de2272e8750793222
2019-12-19 17:10:18 +00:00
Jimmy Chen
29caaf770c Merge "Wifi: WAPI constants and methods" 2019-12-19 09:28:52 +00:00
Automerger Merge Worker
2406c41f21 Merge "Wifi: fix p2p vts failure on no p2p support devices" am: 189894129c am: 96643ab05c
Change-Id: I4134c6c97d1a8338fc0ba8c0cf0973e3479523ab
2019-12-19 02:39:27 +00:00
Automerger Merge Worker
d719d5726e [AWARE] Protect string copy against buffer overflow am: 5039b6099e
Change-Id: If36fa8b7de6f0b9092e9c7c7f50f6fd8111f6cb3
2019-12-19 01:38:38 +00:00
Etan Cohen
5039b6099e [AWARE] Protect string copy against buffer overflow
Fixes: 143789898
Test: (Unit) atest com.android.server.wifi
Test: ACTS ThroughputTest:test_iperf_single_ndp_aware_only_ib
Test: (VTS) atest VtsHalWifiApV1_4TargetTest
Change-Id: I5b8aa1d9a6388fe20cb7e1cd6a76d5e59e14d099
2019-12-18 15:08:00 -08:00
Jimmy Chen
87b62f142d Wifi: fix p2p vts failure on no p2p support devices
P2P vts tests should be omitted if p2p
is not supported.

Bug: 145315660
Test: atest VtsHalWifiSupplicantP2pV1_0TargetTest

Change-Id: Ia4cda22a2fce22335f8f230dbd7fd3418b1b3890
2019-12-18 15:43:05 +08:00
Ahmed ElArabawy
c828cff678 Wifi-hostapd: Add 6GHz impacts to softAP
This commit adds changes needed to support the 6GHz band to
SoftAP.

Bug: 139354972
Test: Manual
Test: VTS test
Change-Id: Ib4e14facc7cbb54ba89ecf07e75df8dceacb361f
2019-12-17 14:58:55 -08:00
Ahmed ElArabawy
b23485ddc5 Remove 6GHz capability query through HAL
It was decided to perform the check on the device support of 6GHz
through overlay configs instead of through HAL.
This commit removes the Hidl API changes that were used for that
check.

Bug: 145936758
Bug: 139354972
Test: Manual
Test: VTS test
Test: Unit test: hardware/interfaces/wifi/1.4/default/tests/runtests.sh
Change-Id: I81fdf603a668a71e3e875211367111fffee20e54
2019-12-12 16:37:36 -08:00
Nate(Qiang) Jiang
18b38eb441 Fix 6GHz support for NAN
add NAN 6Ghz support in 1.4, size of bandSpecificConfig should be 3.

Bug: 146062988
Test: unit test
Test: acts AttachTest DiscoveryTest DataPathTest

Change-Id: I3bd0a4f32d804eae848bc15d9813d5ccb3e5fc62
2019-12-12 18:51:37 +00:00
Ahmed ElArabawy
f72f955b4a Merge changes from topic "hostapd_1_2"
* changes:
  Freeze wifi hostapd 1.2 HAL
  IHostapd: Add hostapd 1.2
2019-12-10 19:01:40 +00:00
lesl
0bad28f064 IHostapd: Add hostapd 1.2
Add new API: forceClientDisconnect

Bug:142752869
Test: Manual Test
Test: VTS: VtsHalWifiHostapdV1_2Target
Change-Id: Ia05ec993815c16731aa9be1f257f941eacf1575f
2019-12-10 17:55:27 +08:00
Ahmed ElArabawy
46b5698a33 Fix format for android.hardware.wifi@1.4
This commit includes the format changes when running the command:
hidl-gen -Lformat android.hardware.wifi@1.4 -randroid.hardware:hardware/interfaces

Bug: 145961722
Test: Build successful
Change-Id: I59b3c4e3f12389ff2660a563b6eb0454a637c35e
2019-12-09 22:08:55 -08:00
Jimmy Chen
e374a4a0a6 Wifi: WAPI constants and methods
This change includes two parts:
* Define WAPI proto, key management, and cipher constants.
* Expose WAPI HAL API for setting the certificate suite.

Bug: 139257562
Test: atest VtsHalWifiSupplicantV1_3TargetTest
Change-Id: Id7a58b242776d641a091b9ede3f147b7d42003d1
2019-12-09 09:45:51 +08:00
Ahmed ElArabawy
83baffdac2 Wifi: Add 6GHz band to NAN structures and methods
This commit adds 6GHz band to NAN related structures and methods.

Bug: 139354972
Test: Manual
Test: VTS test
Test: Unit test:
Test: ./hardware/interfaces/wifi/1.4/default/tests/runtests.sh
Change-Id: I33f63fde67d5a839678076fdb7c76d5eb8645131
2019-12-06 08:57:24 -08:00
Ahmed ElArabawy
fd809fcdfc Wifi: Add 6GHz bands to WifiBand
This commit adds 6GHz band to WifiBand and update the impacted
structures and methods in Wifi HAL.
Note that Background scar related HAL API will not be using the
new band, and will continue with the legacy set of bands.

Bug: 139354972
Test: Manual
Test: VTS test
Test: Unit test: ./hardware/interfaces/wifi/1.4/default/tests/runtests.sh
Change-Id: I54662251034806338ad64d4622ade259ca260a79
2019-12-04 18:36:59 -08:00
TreeHugger Robot
e1ed33bd98 Merge "hal(wifi): Set HAL logd severity based on ringbuffer verbosity" 2019-12-02 10:49:43 +00:00
Etan Cohen
1cefaf6241 [AWARE] Protect string copy against buffer overflow
Fixes: 143789898
Test: (Unit) atest com.android.server.wifi
Test: ACTS ThroughputTest:test_iperf_single_ndp_aware_only_ib
Test: (VTS) atest VtsHalWifiApV1_4TargetTest
Change-Id: I5b8aa1d9a6388fe20cb7e1cd6a76d5e59e14d099
2019-11-26 12:35:49 -08:00