Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 74e20124 authored by Etan Cohen's avatar Etan Cohen
Browse files

[RTT] Add error code for Responder not support IEEE 802.11mc

Add an error code which will be used when the Responder does not
support IEEE 802.11mc - and by implication when such non-support
results in an error.

Note: @hide for now - will be unhidden in a subsequent CL.

Bug: 72975604
Test: unit tests, integration tests
Change-Id: I903abe6cfe19e771e4e4cdaadec48e82f009cbf3
parent 682c6a97
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -59,6 +59,19 @@ public final class RangingResult implements Parcelable {
     */
    public static final int STATUS_FAIL = 1;

    /**
     * Individual range request status, {@link #getStatus()}. Indicates that the ranging operation
     * failed because the specified peer does not support IEEE 802.11mc RTT operations. Support by
     * an Access Point can be confirmed using
     * {@link android.net.wifi.ScanResult#is80211mcResponder()}.
     * <p>
     * On such a failure, the individual result fields of {@link RangingResult} such as
     * {@link RangingResult#getDistanceMm()} are invalid.
     *
     * @hide
     */
    public static final int STATUS_RESPONDER_DOES_NOT_SUPPORT_IEEE80211MC = 2;

    private final int mStatus;
    private final MacAddress mMac;
    private final PeerHandle mPeerHandle;