summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/wifitests/src/com/android/server/wifi/SoftApManagerTest.java8
-rw-r--r--tests/wifitests/src/com/android/server/wifi/util/ApConfigUtilTest.java2
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/SoftApManagerTest.java b/tests/wifitests/src/com/android/server/wifi/SoftApManagerTest.java
index e37e3a71e..c634b6da1 100644
--- a/tests/wifitests/src/com/android/server/wifi/SoftApManagerTest.java
+++ b/tests/wifitests/src/com/android/server/wifi/SoftApManagerTest.java
@@ -165,7 +165,7 @@ public class SoftApManagerTest extends WifiBaseTest {
mTestSoftApInfo.setFrequency(TEST_AP_FREQUENCY);
mTestSoftApInfo.setBandwidth(TEST_AP_BANDWIDTH_IN_SOFTAPINFO);
// Default set up all features support.
- int testSoftApFeature = SoftApCapability.SOFTAP_FEATURE_CLIENT_FORCE_DISCONNECT
+ long testSoftApFeature = SoftApCapability.SOFTAP_FEATURE_CLIENT_FORCE_DISCONNECT
| SoftApCapability.SOFTAP_FEATURE_ACS_OFFLOAD
| SoftApCapability.SOFTAP_FEATURE_WPA3_SAE;
mTestSoftApCapability = new SoftApCapability(testSoftApFeature);
@@ -1794,7 +1794,7 @@ public class SoftApManagerTest extends WifiBaseTest {
@Test
public void testForceClientDisconnectNotInvokeWhenNotSupport() throws Exception {
- int testSoftApFeature = SoftApCapability.SOFTAP_FEATURE_WPA3_SAE
+ long testSoftApFeature = SoftApCapability.SOFTAP_FEATURE_WPA3_SAE
| SoftApCapability.SOFTAP_FEATURE_ACS_OFFLOAD;
SoftApCapability noClientControlCapability = new SoftApCapability(testSoftApFeature);
noClientControlCapability.setMaxSupportedClients(1);
@@ -1833,7 +1833,7 @@ public class SoftApManagerTest extends WifiBaseTest {
@Test
public void testSoftApEnableFailureBecauseSetMaxClientWhenNotSupport() throws Exception {
- int testSoftApFeature = SoftApCapability.SOFTAP_FEATURE_WPA3_SAE
+ long testSoftApFeature = SoftApCapability.SOFTAP_FEATURE_WPA3_SAE
| SoftApCapability.SOFTAP_FEATURE_ACS_OFFLOAD;
when(mWifiNative.setupInterfaceForSoftApMode(any())).thenReturn(TEST_INTERFACE_NAME);
SoftApCapability noClientControlCapability = new SoftApCapability(testSoftApFeature);
@@ -1868,7 +1868,7 @@ public class SoftApManagerTest extends WifiBaseTest {
@Test
public void testSoftApEnableFailureBecauseSecurityTypeSaeSetupButSaeNotSupport()
throws Exception {
- int testSoftApFeature = SoftApCapability.SOFTAP_FEATURE_CLIENT_FORCE_DISCONNECT
+ long testSoftApFeature = SoftApCapability.SOFTAP_FEATURE_CLIENT_FORCE_DISCONNECT
| SoftApCapability.SOFTAP_FEATURE_ACS_OFFLOAD;
when(mWifiNative.setupInterfaceForSoftApMode(any())).thenReturn(TEST_INTERFACE_NAME);
SoftApCapability noSaeCapability = new SoftApCapability(testSoftApFeature);
diff --git a/tests/wifitests/src/com/android/server/wifi/util/ApConfigUtilTest.java b/tests/wifitests/src/com/android/server/wifi/util/ApConfigUtilTest.java
index 9f235aa34..01c5795ea 100644
--- a/tests/wifitests/src/com/android/server/wifi/util/ApConfigUtilTest.java
+++ b/tests/wifitests/src/com/android/server/wifi/util/ApConfigUtilTest.java
@@ -445,7 +445,7 @@ public class ApConfigUtilTest extends WifiBaseTest {
@Test
public void testSoftApCapabilityInitWithResourceValue() throws Exception {
- int testFeatures = SoftApCapability.SOFTAP_FEATURE_CLIENT_FORCE_DISCONNECT;
+ long testFeatures = SoftApCapability.SOFTAP_FEATURE_CLIENT_FORCE_DISCONNECT;
SoftApCapability capability = new SoftApCapability(testFeatures);
int test_max_client = 10;
capability.setMaxSupportedClients(test_max_client);