From cbd0c76ad09c8ed7c1f29389502569c136199a93 Mon Sep 17 00:00:00 2001 From: Roshan Pius Date: Thu, 16 Mar 2017 10:59:58 -0700 Subject: [PATCH] WifiConfiguration: Update psk documentation Adding some documentation to explain the expected contents of this field. Bug: 35967623 Test: make update-api Change-Id: Ia28e2c79834c4d7b0de7350c18d5f32633e6309d --- wifi/java/android/net/wifi/WifiConfiguration.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wifi/java/android/net/wifi/WifiConfiguration.java b/wifi/java/android/net/wifi/WifiConfiguration.java index 99d4d1ee057d6..93abfd79077a3 100644 --- a/wifi/java/android/net/wifi/WifiConfiguration.java +++ b/wifi/java/android/net/wifi/WifiConfiguration.java @@ -281,7 +281,9 @@ public class WifiConfiguration implements Parcelable { public int apChannel = 0; /** - * Pre-shared key for use with WPA-PSK. + * Pre-shared key for use with WPA-PSK. Either an ASCII string enclosed in + * double quotation marks (e.g., {@code "abcdefghij"} for PSK passphrase or + * a string of 64 hex digits for raw PSK. *

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