Commit graph

943 commits

Author SHA1 Message Date
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