From 846b99d62942975e7d76c59bf3514bca7528ec1f Mon Sep 17 00:00:00 2001 From: Kai Shi Date: Wed, 9 Sep 2020 21:52:06 -0700 Subject: Unit test for the new 6GHz channelization Move up 6GHz band start and end frequencies by 10MHz per IEEE 802.11ax draft 7.0 Annex E Table E-4. Add operating class 135 and 136. Cherry-picking unit test changes to rvc-qpr-dev. Bug: 167426957 Test: atest com.android.server.wifi Test: manual test with 6GHz capable STA and AP Change-Id: If0cb3dda1412f8ca3b3e8d7a3b6912f5ef15f6f5 Merged-In: I2c9eb3d704d68b37685363c230d67758c31e17a1 --- .../src/com/android/server/wifi/util/ApConfigUtilTest.java | 6 +++--- .../com/android/server/wifi/util/InformationElementUtilTest.java | 6 +++--- 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 16c915729..df85aa996 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 */ - 5945, SoftApConfiguration.BAND_6GHZ, 1, - 5960, SoftApConfiguration.BAND_6GHZ, 4, - 6100, SoftApConfiguration.BAND_6GHZ, 32 + 5955, SoftApConfiguration.BAND_6GHZ, 1, + 5970, SoftApConfiguration.BAND_6GHZ, 4, + 6110, 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 a0d1da854..3d54e69d0 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(6040, heOperation.getCenterFreq0()); + assertEquals(6050, 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(6040, heOperation.getCenterFreq0()); - assertEquals(6080, heOperation.getCenterFreq1()); + assertEquals(6050, heOperation.getCenterFreq0()); + assertEquals(6090, heOperation.getCenterFreq1()); } /** -- cgit v1.2.3