From ec97fd9d0d70af86203b6e16bb6ff8669576ef0c Mon Sep 17 00:00:00 2001 From: Etan Cohen Date: Tue, 4 Feb 2020 14:58:20 -0800 Subject: [PATCH] [WIFICOND][API] Documentation clarification for AP callback registration Bug: 148680192 Test: N/A (builds) Change-Id: Ibb912a7007b36e0ea3417e6d34dca7ddd618678d --- wifi/java/android/net/wifi/wificond/WifiCondManager.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/wifi/java/android/net/wifi/wificond/WifiCondManager.java b/wifi/java/android/net/wifi/wificond/WifiCondManager.java index 43aa1b64efbc8..d4be38a885a40 100644 --- a/wifi/java/android/net/wifi/wificond/WifiCondManager.java +++ b/wifi/java/android/net/wifi/wificond/WifiCondManager.java @@ -1071,8 +1071,13 @@ public class WifiCondManager { } /** - * Register the provided callback handler for SoftAp events. Note that the Soft AP itself is - * configured using {@link #setupInterfaceForSoftApMode(String)}. + * Register the provided callback handler for SoftAp events. The interface must first be created + * using {@link #setupInterfaceForSoftApMode(String)}. The callback registration is valid until + * the interface is deleted using {@link #tearDownSoftApInterface(String)} (no deregistration + * method is provided). + *

+ * Note that only one callback can be registered at a time - any registration overrides previous + * registrations. * * @param ifaceName Name of the interface on which to register the callback. * @param executor The Executor on which to execute the callbacks.