From 40b5617e15e7f02de8346d99abe2a90edf0d17a0 Mon Sep 17 00:00:00 2001 From: Samuel Tan Date: Wed, 23 Mar 2016 14:21:28 -0700 Subject: [PATCH] ScanResult: add clarifying comments to |flags| and |capabilities| fields Add internal comments to the |flags| and |capabilities| fields of ScanResult to clarify their relationship to the fields in the per-BSS scan results from WPA supplicant. BUG: None Change-Id: I8685283f8cc1006ffd22f2cb2ee8f8605cc0fd2b TEST: N/A --- wifi/java/android/net/wifi/ScanResult.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/wifi/java/android/net/wifi/ScanResult.java b/wifi/java/android/net/wifi/ScanResult.java index a9259fa2e30c9..67cf10732b9d6 100644 --- a/wifi/java/android/net/wifi/ScanResult.java +++ b/wifi/java/android/net/wifi/ScanResult.java @@ -56,6 +56,11 @@ public class ScanResult implements Parcelable { */ public int anqpDomainId; + /* + * This field is equivalent to the |flags|, rather than the |capabilities| field + * of the per-BSS scan results returned by WPA supplicant. See the definition of + * |struct wpa_bss| in wpa_supplicant/bss.h for more details. + */ /** * Describes the authentication, key management, and encryption schemes * supported by the access point. @@ -211,6 +216,10 @@ public class ScanResult implements Parcelable { /** {@hide} */ public static final long FLAG_80211mc_RESPONDER = 0x0000000000000002; + /* + * These flags are specific to the ScanResult class, and are not related to the |flags| + * field of the per-BSS scan results from WPA supplicant. + */ /** * Defines flags; such as {@link #FLAG_PASSPOINT_NETWORK}. * {@hide}