diff --git a/wifi/java/android/net/wifi/rtt/RangingRequest.java b/wifi/java/android/net/wifi/rtt/RangingRequest.java index 32f21b9cbc79c..52b3d8691c795 100644 --- a/wifi/java/android/net/wifi/rtt/RangingRequest.java +++ b/wifi/java/android/net/wifi/rtt/RangingRequest.java @@ -156,14 +156,18 @@ public final class RangingRequest implements Parcelable { /** * Add the device specified by the {@code peerMacAddress} to the list of devices with * which to measure range. - * + *
* The MAC address may be obtained out-of-band from a peer Wi-Fi Aware device. A Wi-Fi * Aware device may obtain its MAC address using the {@link IdentityChangedListener} * provided to * {@link WifiAwareManager#attach(AttachCallback, IdentityChangedListener, Handler)}. - * - * * Note: in order to use this API the device must support Wi-Fi Aware - * {@link android.net.wifi.aware}. + *
+ * Note: in order to use this API the device must support Wi-Fi Aware + * {@link android.net.wifi.aware}. The peer device which is being ranged to must be + * configured to publish a service (with any name) with: + *
* The {@link PeerHandle} may be obtained as part of the Wi-Fi Aware discovery process. E.g. * using {@link DiscoverySessionCallback#onServiceDiscovered(PeerHandle, byte[], List)}. - * + *
* Note: in order to use this API the device must support Wi-Fi Aware - * {@link android.net.wifi.aware}. + * {@link android.net.wifi.aware}. The peer device which is being ranged to must be + * configured to publish a service (with any name) with: + *