summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2017-03-02 16:01:02 -0800
committerRoshan Pius <rpius@google.com>2017-03-02 16:43:18 -0800
commit6a8908d2bc0367397eb92444ac78cc8d43160ef6 (patch)
tree7f16fdf78afa23d7d5ac41f44c5b617652c2432e /tests
parenta89f52e241cc52873b3856d4e035717cd562c2db (diff)
SupplicantStaNetworkHal: Fix wep key handling
According to our public documentation, the wep keys can either be a quoted ASCII string or a hex string. Since this is similar to the SSID field, rename the helper function in NativeUtil to reuse for both. Bug: 35907939 Test: Fixed unit test input for wep networks and validated existing WEP related tests pass. Change-Id: I180b9261252dc5745fa3e30e4bc980cde054ba2a
Diffstat (limited to 'tests')
-rw-r--r--tests/wifitests/src/com/android/server/wifi/WifiConfigurationTestUtil.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/WifiConfigurationTestUtil.java b/tests/wifitests/src/com/android/server/wifi/WifiConfigurationTestUtil.java
index a8c0303b9..dba4d2f00 100644
--- a/tests/wifitests/src/com/android/server/wifi/WifiConfigurationTestUtil.java
+++ b/tests/wifitests/src/com/android/server/wifi/WifiConfigurationTestUtil.java
@@ -63,8 +63,8 @@ public class WifiConfigurationTestUtil {
public static final String TEST_SSID = "WifiConfigurationTestUtilSSID";
public static final String TEST_PSK = "WifiConfigurationTestUtilPsk";
public static final String[] TEST_WEP_KEYS =
- {"WifiConfigurationTestUtilWep1", "WifiConfigurationTestUtilWep2",
- "WifiConfigurationTestUtilWep3", "WifiConfigurationTestUtilWep3"};
+ {"\"WifiConfigurationTestUtilWep1\"", "\"WifiConfigurationTestUtilWep2\"",
+ "45342312ab", "45342312ab45342312ab34ac12"};
public static final int TEST_WEP_TX_KEY_INDEX = 1;
public static final String TEST_FQDN = "WifiConfigurationTestUtilFQDN";
public static final String TEST_PROVIDER_FRIENDLY_NAME =