From f0d5c5c30a72717b4a82c052e367cff78d0bbbb2 Mon Sep 17 00:00:00 2001 From: David Castro Date: Wed, 19 Sep 2018 15:04:12 -0400 Subject: [PATCH] docs: Updates the documentation for the wepKeys field. Updated documentation indicates that four WEP key values must be provided. This replaces the earlier reference to "up to four." Providing fewer than four values causes a java.lang.IllegalArgumentException. Documentation also references the option to provide empty strings for up to three of the values. Test: make ds-docs Bug: 36949880 Change-Id: I1da9f0ecfb390623f4d53ca508a554303861ed98 Exempt-From-Owner-Approval: Docs-only change --- wifi/java/android/net/wifi/WifiConfiguration.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wifi/java/android/net/wifi/WifiConfiguration.java b/wifi/java/android/net/wifi/WifiConfiguration.java index 2918cf697dee1..4a7d7038457ed 100644 --- a/wifi/java/android/net/wifi/WifiConfiguration.java +++ b/wifi/java/android/net/wifi/WifiConfiguration.java @@ -328,9 +328,10 @@ public class WifiConfiguration implements Parcelable { public String preSharedKey; /** - * Up to four WEP keys. Either an ASCII string enclosed in double - * quotation marks (e.g., {@code "abcdef"}) or a string - * of hex digits (e.g., {@code 0102030405}). + * Four WEP keys. For each of the four values, provide either an ASCII + * string enclosed in double quotation marks (e.g., {@code "abcdef"}), + * a string of hex digits (e.g., {@code 0102030405}), or an empty string + * (e.g., {@code ""}). *

* When the value of one of these keys is read, the actual key is * not returned, just a "*" if the key has a value, or the null