summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Shi <kaishi@google.com>2020-09-23 15:52:28 -0700
committerKai Shi <kaishi@google.com>2020-09-24 02:37:25 +0000
commit7d7e35c61fd2665a5473e2bd23d63021a1148d2e (patch)
treec1b6164100227bc044deaadc9099cae56f133764
parent846b99d62942975e7d76c59bf3514bca7528ec1f (diff)
Revert unit test change for the new 6GHz channelization
This is to revert unit test changes for these who stick with the old pre-built wifi apex which doesn't have the change of framework/base/wifi for the new 6G channelization. Bug: 167426957 Test: atest com.android.server.wifi Change-Id: I41cdcdbab4d0a45340e9df5a4e3193727c9878c4 Merged-In: I2c9eb3d704d68b37685363c230d67758c31e17a1
-rw-r--r--tests/wifitests/src/com/android/server/wifi/util/ApConfigUtilTest.java6
-rw-r--r--tests/wifitests/src/com/android/server/wifi/util/InformationElementUtilTest.java6
2 files changed, 6 insertions, 6 deletions
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 df85aa996..16c915729 100644
--- a/tests/wifitests/src/com/android/server/wifi/util/ApConfigUtilTest.java
+++ b/tests/wifitests/src/com/android/server/wifi/util/ApConfigUtilTest.java
@@ -112,9 +112,9 @@ public class ApConfigUtilTest extends WifiBaseTest {
5845, SoftApConfiguration.BAND_5GHZ, 169,
5865, SoftApConfiguration.BAND_5GHZ, 173,
/* Now some 6GHz channels */
- 5955, SoftApConfiguration.BAND_6GHZ, 1,
- 5970, SoftApConfiguration.BAND_6GHZ, 4,
- 6110, SoftApConfiguration.BAND_6GHZ, 32
+ 5945, SoftApConfiguration.BAND_6GHZ, 1,
+ 5960, SoftApConfiguration.BAND_6GHZ, 4,
+ 6100, SoftApConfiguration.BAND_6GHZ, 32
};
private static final int[] EMPTY_CHANNEL_LIST = {};
diff --git a/tests/wifitests/src/com/android/server/wifi/util/InformationElementUtilTest.java b/tests/wifitests/src/com/android/server/wifi/util/InformationElementUtilTest.java
index 3d54e69d0..a0d1da854 100644
--- a/tests/wifitests/src/com/android/server/wifi/util/InformationElementUtilTest.java
+++ b/tests/wifitests/src/com/android/server/wifi/util/InformationElementUtilTest.java
@@ -1367,7 +1367,7 @@ public class InformationElementUtilTest extends WifiBaseTest {
assertTrue(heOperation.is6GhzInfoPresent());
assertFalse(heOperation.isVhtInfoPresent());
assertEquals(ScanResult.CHANNEL_WIDTH_80MHZ, heOperation.getChannelWidth());
- assertEquals(6050, heOperation.getCenterFreq0());
+ assertEquals(6040, heOperation.getCenterFreq0());
assertEquals(0, heOperation.getCenterFreq1());
}
@@ -1412,8 +1412,8 @@ public class InformationElementUtilTest extends WifiBaseTest {
assertTrue(heOperation.is6GhzInfoPresent());
assertFalse(heOperation.isVhtInfoPresent());
assertEquals(ScanResult.CHANNEL_WIDTH_160MHZ, heOperation.getChannelWidth());
- assertEquals(6050, heOperation.getCenterFreq0());
- assertEquals(6090, heOperation.getCenterFreq1());
+ assertEquals(6040, heOperation.getCenterFreq0());
+ assertEquals(6080, heOperation.getCenterFreq1());
}
/**