Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Nested Classes](https://developer.android.com/reference/android/net/wifi/ScanResult#nestedclasses) \| [Constants](https://developer.android.com/reference/android/net/wifi/ScanResult#constants) \| [Inherited Constants](https://developer.android.com/reference/android/net/wifi/ScanResult#inhconstants) \| [Fields](https://developer.android.com/reference/android/net/wifi/ScanResult#lfields) \| [Ctors](https://developer.android.com/reference/android/net/wifi/ScanResult#pubctors) \| [Methods](https://developer.android.com/reference/android/net/wifi/ScanResult#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/net/wifi/ScanResult#inhmethods)

# ScanResult

*** ** * ** ***


`
public

final

class
ScanResult
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


implements

https://developer.android.com/reference/android/os/Parcelable


`

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.net.wifi.ScanResult |

<br />

*** ** * ** ***

Describes information about a detected access point. In addition
to the attributes described here, the supplicant keeps track of
`quality`, `noise`, and `maxbitrate` attributes,
but does not currently report them to external clients.

## Summary

| ### Nested classes ||
|---|---|
| ` class` | `https://developer.android.com/reference/android/net/wifi/ScanResult.InformationElement` information elements from beacon. |

| ### Constants ||
|---|---|
| `int` | `https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_160MHZ` AP Channel bandwidth is 160 MHZ |
| `int` | `https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_20MHZ` AP Channel bandwidth is 20 MHZ |
| `int` | `https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_320MHZ` AP Channel bandwidth is 320 MHZ |
| `int` | `https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_40MHZ` AP Channel bandwidth is 40 MHZ |
| `int` | `https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_80MHZ` AP Channel bandwidth is 80 MHZ |
| `int` | `https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_80MHZ_PLUS_MHZ` AP Channel bandwidth is 160 MHZ, but 80MHZ + 80MHZ |
| `int` | `https://developer.android.com/reference/android/net/wifi/ScanResult#PREAMBLE_EHT` Preamble type: EHT. |
| `int` | `https://developer.android.com/reference/android/net/wifi/ScanResult#PREAMBLE_HE` Preamble type: HE. |
| `int` | `https://developer.android.com/reference/android/net/wifi/ScanResult#PREAMBLE_HT` Preamble type: HT. |
| `int` | `https://developer.android.com/reference/android/net/wifi/ScanResult#PREAMBLE_LEGACY` Preamble type: Legacy. |
| `int` | `https://developer.android.com/reference/android/net/wifi/ScanResult#PREAMBLE_VHT` Preamble type: VHT. |
| `int` | `https://developer.android.com/reference/android/net/wifi/ScanResult#UNSPECIFIED` The unspecified value. |
| `int` | `https://developer.android.com/reference/android/net/wifi/ScanResult#WIFI_BAND_24_GHZ` Wi-Fi 2.4 GHz band. |
| `int` | `https://developer.android.com/reference/android/net/wifi/ScanResult#WIFI_BAND_5_GHZ` Wi-Fi 5 GHz band. |
| `int` | `https://developer.android.com/reference/android/net/wifi/ScanResult#WIFI_BAND_60_GHZ` Wi-Fi 60 GHz band. |
| `int` | `https://developer.android.com/reference/android/net/wifi/ScanResult#WIFI_BAND_6_GHZ` Wi-Fi 6 GHz band. |
| `int` | `https://developer.android.com/reference/android/net/wifi/ScanResult#WIFI_STANDARD_11AC` Wi-Fi 802.11ac |
| `int` | `https://developer.android.com/reference/android/net/wifi/ScanResult#WIFI_STANDARD_11AD` Wi-Fi 802.11ad |
| `int` | `https://developer.android.com/reference/android/net/wifi/ScanResult#WIFI_STANDARD_11AX` Wi-Fi 802.11ax |
| `int` | `https://developer.android.com/reference/android/net/wifi/ScanResult#WIFI_STANDARD_11BE` Wi-Fi 802.11be |
| `int` | `https://developer.android.com/reference/android/net/wifi/ScanResult#WIFI_STANDARD_11N` Wi-Fi 802.11n |
| `int` | `https://developer.android.com/reference/android/net/wifi/ScanResult#WIFI_STANDARD_LEGACY` Wi-Fi 802.11a/b/g |
| `int` | `https://developer.android.com/reference/android/net/wifi/ScanResult#WIFI_STANDARD_UNKNOWN` Wi-Fi unknown standard |

| ### Inherited constants |
|---|
| From interface `https://developer.android.com/reference/android/os/Parcelable` |---|---| | `int` | `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` Descriptor bit used with `https://developer.android.com/reference/android/os/Parcelable#describeContents()`: indicates that the Parcelable object's flattened representation includes a file descriptor. | | `int` | `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE` Flag for use with `https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)`: the object being written is a return value, that is the result of a function such as "`Parcelable someFunction()`", "`void someFunction(out Parcelable)`", or "`void someFunction(inout Parcelable)`". | |

| ### Fields ||
|---|---|
| ` public https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/net/wifi/ScanResult#BSSID` The address of the access point. |
| ` public static final https://developer.android.com/reference/android/os/Parcelable.Creator<https://developer.android.com/reference/android/net/wifi/ScanResult>` | `https://developer.android.com/reference/android/net/wifi/ScanResult#CREATOR` Implement the Parcelable interface |
| ` public https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/net/wifi/ScanResult#SSID` *This field was deprecated in API level 33. Use `https://developer.android.com/reference/android/net/wifi/ScanResult#getWifiSsid()` instead.* |
| ` public https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/net/wifi/ScanResult#capabilities` Describes the authentication, key management, and encryption schemes supported by the access point. |
| ` public int` | `https://developer.android.com/reference/android/net/wifi/ScanResult#centerFreq0` Not used if the AP bandwidth is 20 MHz If the AP use 40, 80, 160 or 320MHz, this is the center frequency (in MHz) if the AP use 80 + 80 MHz, this is the center frequency of the first segment (in MHz) |
| ` public int` | `https://developer.android.com/reference/android/net/wifi/ScanResult#centerFreq1` Only used if the AP bandwidth is 80 + 80 MHz if the AP use 80 + 80 MHz, this is the center frequency of the second segment (in MHz) |
| ` public int` | `https://developer.android.com/reference/android/net/wifi/ScanResult#channelWidth` AP Channel bandwidth; one of `https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_20MHZ`, `https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_40MHZ`, `https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_80MHZ`, `https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_160MHZ`, `https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_320MHZ`, or `https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_80MHZ_PLUS_MHZ`, or `https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_320MHZ` Value is one of the following: - `https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_20MHZ` - `https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_40MHZ` - `https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_80MHZ` - `https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_160MHZ` - `https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_80MHZ_PLUS_MHZ` - `https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_320MHZ` |
| ` public int` | `https://developer.android.com/reference/android/net/wifi/ScanResult#frequency` The center frequency of the primary 20 MHz frequency (in MHz) of the channel over which the client is communicating with the access point. |
| ` public int` | `https://developer.android.com/reference/android/net/wifi/ScanResult#level` The detected signal level in dBm, also known as the RSSI. |
| ` public https://developer.android.com/reference/java/lang/CharSequence` | `https://developer.android.com/reference/android/net/wifi/ScanResult#operatorFriendlyName` *This field was deprecated in API level 31. - Use `https://developer.android.com/reference/android/net/wifi/WifiInfo#getPasspointProviderFriendlyName()`* |
| ` public long` | `https://developer.android.com/reference/android/net/wifi/ScanResult#timestamp` timestamp in microseconds (since boot) when this result was last seen. |
| ` public https://developer.android.com/reference/java/lang/CharSequence` | `https://developer.android.com/reference/android/net/wifi/ScanResult#venueName` *This field was deprecated in API level 31. - This information is not provided* |

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/net/wifi/ScanResult#ScanResult()() ` Construct an empty scan result. |
| ` https://developer.android.com/reference/android/net/wifi/ScanResult#ScanResult(android.net.wifi.ScanResult)(https://developer.android.com/reference/android/net/wifi/ScanResult source) ` copy constructor |

| ### Public methods ||
|---|---|
| ` static int` | ` https://developer.android.com/reference/android/net/wifi/ScanResult#convertChannelToFrequencyMhzIfSupported(int,%20int)(int channel, int band) ` Utility function to convert Wi-Fi channel number to frequency in MHz. |
| ` static int` | ` https://developer.android.com/reference/android/net/wifi/ScanResult#convertFrequencyMhzToChannelIfSupported(int)(int freqMhz) ` Utility function to convert frequency in MHz to channel number. |
| ` int` | ` https://developer.android.com/reference/android/net/wifi/ScanResult#describeContents()() ` Implement the Parcelable interface |
| ` https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/android/net/wifi/MloLink>` | ` https://developer.android.com/reference/android/net/wifi/ScanResult#getAffiliatedMloLinks()() ` Return the Multi-Link Operation (MLO) affiliated Links for Wi-Fi 7 access points. |
| ` https://developer.android.com/reference/android/net/MacAddress` | ` https://developer.android.com/reference/android/net/wifi/ScanResult#getApMldMacAddress()() ` Return the access point Multi-Link Device (MLD) MAC Address for Wi-Fi 7 access points. |
| ` int` | ` https://developer.android.com/reference/android/net/wifi/ScanResult#getApMloLinkId()() ` Return the access point Multi-Link Operation (MLO) link-id for Wi-Fi 7 access points. |
| ` https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/android/net/wifi/ScanResult.InformationElement>` | ` https://developer.android.com/reference/android/net/wifi/ScanResult#getInformationElements()() ` Get all information elements found in the beacon. |
| ` int[]` | ` https://developer.android.com/reference/android/net/wifi/ScanResult#getSecurityTypes()() ` Get all the security types supported by this ScanResult. |
| ` https://developer.android.com/reference/android/net/wifi/WifiSsid` | ` https://developer.android.com/reference/android/net/wifi/ScanResult#getWifiSsid()() ` The SSID of the access point. |
| ` int` | ` https://developer.android.com/reference/android/net/wifi/ScanResult#getWifiStandard()() ` return the AP wifi standard. |
| ` boolean` | ` https://developer.android.com/reference/android/net/wifi/ScanResult#is80211azNtbResponder()() ` |
| ` boolean` | ` https://developer.android.com/reference/android/net/wifi/ScanResult#is80211mcResponder()() ` |
| ` boolean` | ` https://developer.android.com/reference/android/net/wifi/ScanResult#isPasspointNetwork()() ` |
| ` boolean` | ` https://developer.android.com/reference/android/net/wifi/ScanResult#isRangingFrameProtectionRequired()() ` Returns whether the AP requires frame protection for ranging measurement. |
| ` boolean` | ` https://developer.android.com/reference/android/net/wifi/ScanResult#isSecureHeLtfSupported()() ` Returns whether the AP supports secure HE-LTF for ranging measurement. |
| ` boolean` | ` https://developer.android.com/reference/android/net/wifi/ScanResult#isTwtResponder()() ` |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/net/wifi/ScanResult#toString()() ` Returns a string representation of the object. |
| ` void` | ` https://developer.android.com/reference/android/net/wifi/ScanResult#writeToParcel(android.os.Parcel,%20int)(https://developer.android.com/reference/android/os/Parcel dest, int flags) ` Implement the Parcelable interface |

| ### Inherited methods |
|---|---|
| From class ` https://developer.android.com/reference/java/lang/Object ` |---|---| | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/lang/Object#clone()() ` Creates and returns a copy of this object. | | ` boolean` | ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) ` Indicates whether some other object is "equal to" this one. | | ` void` | ` https://developer.android.com/reference/java/lang/Object#finalize()() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final https://developer.android.com/reference/java/lang/Class<?>` | ` https://developer.android.com/reference/java/lang/Object#getClass()() ` Returns the runtime class of this `Object`. | | ` int` | ` https://developer.android.com/reference/java/lang/Object#hashCode()() ` Returns a hash code value for the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notify()() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notifyAll()() ` Wakes up all threads that are waiting on this object's monitor. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/lang/Object#toString()() ` Returns a string representation of the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait()() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||
| From interface ` https://developer.android.com/reference/android/os/Parcelable ` |---|---| | ` abstract int` | ` https://developer.android.com/reference/android/os/Parcelable#describeContents()() ` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. | | ` abstract void` | ` https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)(https://developer.android.com/reference/android/os/Parcel dest, int flags) ` Flatten this object in to a Parcel. | ||

## Constants

### CHANNEL_WIDTH_160MHZ

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CHANNEL_WIDTH_160MHZ
```

AP Channel bandwidth is 160 MHZ

<br />

Constant Value:

3
(0x00000003)


### CHANNEL_WIDTH_20MHZ

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CHANNEL_WIDTH_20MHZ
```

AP Channel bandwidth is 20 MHZ

<br />

Constant Value:

0
(0x00000000)


### CHANNEL_WIDTH_320MHZ

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CHANNEL_WIDTH_320MHZ
```

AP Channel bandwidth is 320 MHZ

<br />

Constant Value:

5
(0x00000005)


### CHANNEL_WIDTH_40MHZ

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CHANNEL_WIDTH_40MHZ
```

AP Channel bandwidth is 40 MHZ

<br />

Constant Value:

1
(0x00000001)


### CHANNEL_WIDTH_80MHZ

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CHANNEL_WIDTH_80MHZ
```

AP Channel bandwidth is 80 MHZ

<br />

Constant Value:

2
(0x00000002)


### CHANNEL_WIDTH_80MHZ_PLUS_MHZ

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int CHANNEL_WIDTH_80MHZ_PLUS_MHZ
```

AP Channel bandwidth is 160 MHZ, but 80MHZ + 80MHZ

<br />

Constant Value:

4
(0x00000004)


### PREAMBLE_EHT

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int PREAMBLE_EHT
```

Preamble type: EHT.

<br />

Constant Value:

4
(0x00000004)


### PREAMBLE_HE

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int PREAMBLE_HE
```

Preamble type: HE.

<br />

Constant Value:

3
(0x00000003)


### PREAMBLE_HT

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int PREAMBLE_HT
```

Preamble type: HT.

<br />

Constant Value:

1
(0x00000001)


### PREAMBLE_LEGACY

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int PREAMBLE_LEGACY
```

Preamble type: Legacy.

<br />

Constant Value:

0
(0x00000000)


### PREAMBLE_VHT

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int PREAMBLE_VHT
```

Preamble type: VHT.

<br />

Constant Value:

2
(0x00000002)


### UNSPECIFIED

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int UNSPECIFIED
```

The unspecified value.

<br />

Constant Value:

-1
(0xffffffff)


### WIFI_BAND_24_GHZ

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int WIFI_BAND_24_GHZ
```

Wi-Fi 2.4 GHz band.

<br />

Constant Value:

1
(0x00000001)


### WIFI_BAND_5_GHZ

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int WIFI_BAND_5_GHZ
```

Wi-Fi 5 GHz band.

<br />

Constant Value:

2
(0x00000002)


### WIFI_BAND_60_GHZ

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int WIFI_BAND_60_GHZ
```

Wi-Fi 60 GHz band.

<br />

Constant Value:

16
(0x00000010)


### WIFI_BAND_6_GHZ

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int WIFI_BAND_6_GHZ
```

Wi-Fi 6 GHz band.

<br />

Constant Value:

8
(0x00000008)


### WIFI_STANDARD_11AC

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int WIFI_STANDARD_11AC
```

Wi-Fi 802.11ac

<br />

Constant Value:

5
(0x00000005)


### WIFI_STANDARD_11AD

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int WIFI_STANDARD_11AD
```

Wi-Fi 802.11ad

<br />

Constant Value:

7
(0x00000007)


### WIFI_STANDARD_11AX

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int WIFI_STANDARD_11AX
```

Wi-Fi 802.11ax

<br />

Constant Value:

6
(0x00000006)


### WIFI_STANDARD_11BE

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int WIFI_STANDARD_11BE
```

Wi-Fi 802.11be

<br />

Constant Value:

8
(0x00000008)


### WIFI_STANDARD_11N

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int WIFI_STANDARD_11N
```

Wi-Fi 802.11n

<br />

Constant Value:

4
(0x00000004)


### WIFI_STANDARD_LEGACY

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int WIFI_STANDARD_LEGACY
```

Wi-Fi 802.11a/b/g

<br />

Constant Value:

1
(0x00000001)


### WIFI_STANDARD_UNKNOWN

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int WIFI_STANDARD_UNKNOWN
```

Wi-Fi unknown standard

<br />

Constant Value:

0
(0x00000000)


## Fields

### BSSID

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String BSSID
```

The address of the access point.

<br />

### CREATOR

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final Creator<ScanResult> CREATOR
```

Implement the Parcelable interface

<br />

### SSID

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String SSID
```


**This field was deprecated
in API level 33.**   

Use `https://developer.android.com/reference/android/net/wifi/ScanResult#getWifiSsid()` instead.

The network name.

<br />

### capabilities

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String capabilities
```

Describes the authentication, key management, and encryption schemes
supported by the access point.

<br />

### centerFreq0

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int centerFreq0
```

Not used if the AP bandwidth is 20 MHz
If the AP use 40, 80, 160 or 320MHz, this is the center frequency (in MHz)
if the AP use 80 + 80 MHz, this is the center frequency of the first segment (in MHz)

<br />

### centerFreq1

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int centerFreq1
```

Only used if the AP bandwidth is 80 + 80 MHz
if the AP use 80 + 80 MHz, this is the center frequency of the second segment (in MHz)

<br />

### channelWidth

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int channelWidth
```

AP Channel bandwidth; one of `https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_20MHZ`, `https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_40MHZ`,
`https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_80MHZ`, `https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_160MHZ`, `https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_320MHZ`,
or `https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_80MHZ_PLUS_MHZ`, or `https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_320MHZ`


Value is one of the following:

- `https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_20MHZ`
- `https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_40MHZ`
- `https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_80MHZ`
- `https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_160MHZ`
- `https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_80MHZ_PLUS_MHZ`
- `https://developer.android.com/reference/android/net/wifi/ScanResult#CHANNEL_WIDTH_320MHZ`

### frequency

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int frequency
```

The center frequency of the primary 20 MHz frequency (in MHz) of the channel over which the
client is communicating with the access point.

<br />

### level

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int level
```

The detected signal level in dBm, also known as the RSSI.

Use `https://developer.android.com/reference/android/net/wifi/WifiManager#calculateSignalLevel(int)` to convert this number into
an absolute signal level which can be displayed to a user.

<br />

### operatorFriendlyName

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public CharSequence operatorFriendlyName
```


**This field was deprecated
in API level 31.**   

- Use `https://developer.android.com/reference/android/net/wifi/WifiInfo#getPasspointProviderFriendlyName()`

Indicates Passpoint operator name published by access point.

<br />

### timestamp

Added in [API level 17](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public long timestamp
```

timestamp in microseconds (since boot) when
this result was last seen.

<br />

### venueName

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public CharSequence venueName
```


**This field was deprecated
in API level 31.**   

- This information is not provided

Indicates venue name (such as 'San Francisco Airport') published by access point; only
available on Passpoint network and if published by access point.

<br />

## Public constructors

### ScanResult

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public ScanResult ()
```

Construct an empty scan result.

<br />

### ScanResult

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public ScanResult (ScanResult source)
```

copy constructor

<br />

| Parameters ||
|---|---|
| `source` | `ScanResult`: This value cannot be `null`. <br /> |

## Public methods

### convertChannelToFrequencyMhzIfSupported

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static int convertChannelToFrequencyMhzIfSupported (int channel, 
                int band)
```

Utility function to convert Wi-Fi channel number to frequency in MHz.

Reference the Wi-Fi channel numbering and the channelization in IEEE 802.11-2016
specifications, section 17.3.8.4.2, 17.3.8.4.3 and Table 15-6.

See also `https://developer.android.com/reference/android/net/wifi/ScanResult#convertFrequencyMhzToChannelIfSupported(int)`.

<br />

| Parameters ||
|---|---|
| `channel` | `int`: number to convert. <br /> |
| `band` | `int`: of channel to convert. One of the following bands: `https://developer.android.com/reference/android/net/wifi/ScanResult#WIFI_BAND_24_GHZ`, `https://developer.android.com/reference/android/net/wifi/ScanResult#WIFI_BAND_5_GHZ`, `https://developer.android.com/reference/android/net/wifi/ScanResult#WIFI_BAND_6_GHZ`, `https://developer.android.com/reference/android/net/wifi/ScanResult#WIFI_BAND_60_GHZ`. Value is one of the following: - `https://developer.android.com/reference/android/net/wifi/ScanResult#UNSPECIFIED` - `https://developer.android.com/reference/android/net/wifi/ScanResult#WIFI_BAND_24_GHZ` - `https://developer.android.com/reference/android/net/wifi/ScanResult#WIFI_BAND_5_GHZ` - `https://developer.android.com/reference/android/net/wifi/ScanResult#WIFI_BAND_6_GHZ` - `https://developer.android.com/reference/android/net/wifi/ScanResult#WIFI_BAND_60_GHZ` |

| Returns ||
|---|---|
| `int` | center frequency in Mhz of the channel, `https://developer.android.com/reference/android/net/wifi/ScanResult#UNSPECIFIED` if no match <br /> |

### convertFrequencyMhzToChannelIfSupported

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static int convertFrequencyMhzToChannelIfSupported (int freqMhz)
```

Utility function to convert frequency in MHz to channel number.

See also `https://developer.android.com/reference/android/net/wifi/ScanResult#convertChannelToFrequencyMhzIfSupported(int,%20int)`.

<br />

| Parameters ||
|---|---|
| `freqMhz` | `int`: frequency in MHz <br /> |

| Returns ||
|---|---|
| `int` | channel number associated with given frequency, `https://developer.android.com/reference/android/net/wifi/ScanResult#UNSPECIFIED` if no match <br /> |

### describeContents

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int describeContents ()
```

Implement the Parcelable interface

<br />

| Returns ||
|---|---|
| `int` | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either `0` or - `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` |

### getAffiliatedMloLinks

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public List<MloLink> getAffiliatedMloLinks ()
```

Return the Multi-Link Operation (MLO) affiliated Links for Wi-Fi 7 access points.
i.e. when `https://developer.android.com/reference/android/net/wifi/ScanResult#getWifiStandard()` returns `https://developer.android.com/reference/android/net/wifi/ScanResult#WIFI_STANDARD_11BE`.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/android/net/wifi/MloLink>` | List of affiliated MLO links, or an empty list if access point is not Wi-Fi 7. This value cannot be `null`. <br /> |

### getApMldMacAddress

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public MacAddress getApMldMacAddress ()
```

Return the access point Multi-Link Device (MLD) MAC Address for Wi-Fi 7 access points.
i.e. `https://developer.android.com/reference/android/net/wifi/ScanResult#getWifiStandard()` returns `https://developer.android.com/reference/android/net/wifi/ScanResult#WIFI_STANDARD_11BE`.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/net/MacAddress` | MLD MAC Address for access point if exists (Wi-Fi 7 access points), null otherwise. <br /> |

### getApMloLinkId

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getApMloLinkId ()
```

Return the access point Multi-Link Operation (MLO) link-id for Wi-Fi 7 access points.
i.e. when `https://developer.android.com/reference/android/net/wifi/ScanResult#getWifiStandard()` returns `https://developer.android.com/reference/android/net/wifi/ScanResult#WIFI_STANDARD_11BE`, otherwise return
`https://developer.android.com/reference/android/net/wifi/MloLink#INVALID_MLO_LINK_ID`.

Valid values are 0-15 as described in IEEE 802.11be Specification, section 9.4.2.295b.2.

<br />

| Returns ||
|---|---|
| `int` | `https://developer.android.com/reference/android/net/wifi/MloLink#INVALID_MLO_LINK_ID` or a valid value (0-15). Value is between `https://developer.android.com/reference/android/net/wifi/MloLink#INVALID_MLO_LINK_ID` and `https://developer.android.com/` inclusive <br /> |

### getInformationElements

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public List<ScanResult.InformationElement> getInformationElements ()
```

Get all information elements found in the beacon.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/util/List<https://developer.android.com/reference/android/net/wifi/ScanResult.InformationElement>` | This value cannot be `null`. <br /> |

### getSecurityTypes

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int[] getSecurityTypes ()
```

Get all the security types supported by this ScanResult.

<br />

| Returns ||
|---|---|
| `int[]` | array of `WifiInfo#SECURITY_TYPE_*`. This value cannot be `null`. Value is one of the following: - `https://developer.android.com/reference/android/net/wifi/WifiInfo#SECURITY_TYPE_UNKNOWN` - `https://developer.android.com/reference/android/net/wifi/WifiInfo#SECURITY_TYPE_OPEN` - `https://developer.android.com/reference/android/net/wifi/WifiInfo#SECURITY_TYPE_WEP` - `https://developer.android.com/reference/android/net/wifi/WifiInfo#SECURITY_TYPE_PSK` - `https://developer.android.com/reference/android/net/wifi/WifiInfo#SECURITY_TYPE_EAP` - `https://developer.android.com/reference/android/net/wifi/WifiInfo#SECURITY_TYPE_SAE` - `https://developer.android.com/reference/android/net/wifi/WifiInfo#SECURITY_TYPE_OWE` - `https://developer.android.com/reference/android/net/wifi/WifiInfo#SECURITY_TYPE_WAPI_PSK` - `https://developer.android.com/reference/android/net/wifi/WifiInfo#SECURITY_TYPE_WAPI_CERT` - `https://developer.android.com/reference/android/net/wifi/WifiInfo#SECURITY_TYPE_EAP_WPA3_ENTERPRISE` - `https://developer.android.com/reference/android/net/wifi/WifiInfo#SECURITY_TYPE_EAP_WPA3_ENTERPRISE_192_BIT` - `https://developer.android.com/reference/android/net/wifi/WifiInfo#SECURITY_TYPE_PASSPOINT_R1_R2` - `https://developer.android.com/reference/android/net/wifi/WifiInfo#SECURITY_TYPE_PASSPOINT_R3` - `https://developer.android.com/reference/android/net/wifi/WifiInfo#SECURITY_TYPE_DPP` |

### getWifiSsid

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public WifiSsid getWifiSsid ()
```

The SSID of the access point.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/net/wifi/WifiSsid` | This value may be `null`. <br /> |

### getWifiStandard

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getWifiStandard ()
```

return the AP wifi standard.

<br />

| Returns ||
|---|---|
| `int` | Value is one of the following: - `https://developer.android.com/reference/android/net/wifi/ScanResult#WIFI_STANDARD_UNKNOWN` - `https://developer.android.com/reference/android/net/wifi/ScanResult#WIFI_STANDARD_LEGACY` - `https://developer.android.com/reference/android/net/wifi/ScanResult#WIFI_STANDARD_11N` - `https://developer.android.com/reference/android/net/wifi/ScanResult#WIFI_STANDARD_11AC` - `https://developer.android.com/reference/android/net/wifi/ScanResult#WIFI_STANDARD_11AX` - `https://developer.android.com/reference/android/net/wifi/ScanResult#WIFI_STANDARD_11AD` - `https://developer.android.com/reference/android/net/wifi/ScanResult#WIFI_STANDARD_11BE` |

### is80211azNtbResponder

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean is80211azNtbResponder ()
```

<br />

<br />

| Returns ||
|---|---|
| `boolean` | whether AP is a IEEE802.11az Non-Trigger based Ranging Responder. <br /> |

### is80211mcResponder

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean is80211mcResponder ()
```

<br />

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

### isPasspointNetwork

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isPasspointNetwork ()
```

<br />

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

### isRangingFrameProtectionRequired

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isRangingFrameProtectionRequired ()
```

Returns whether the AP requires frame protection for ranging measurement.

Ranging frame protection in IEEE 802.11az, also known as URNM-MFPR (Unassociated Range
Negotiation and Measurement Management Frame Protection Required), is a security policy
that dictates whether ranging frames are required to be protected even without a formal
association between the Initiating STA (ISTA) and Responding STA (RSTA)

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

### isSecureHeLtfSupported

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isSecureHeLtfSupported ()
```

Returns whether the AP supports secure HE-LTF for ranging measurement.

Secure HE-LTF (High Efficiency Long Training Field), is a security enhancement for the HE
PHY (High Efficiency Physical Layer) that aims to protect ranging measurements by using
randomized HE-LTF sequences. This prevents attackers from exploiting predictable HE-LTF
patterns. IEEE 802.11az adds secure HE-LTF support in Extended RSN capabilities.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

### isTwtResponder

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isTwtResponder ()
```

<br />

<br />

| Returns ||
|---|---|
| `boolean` | whether AP is Target Wake Time (TWT) Responder. <br /> |

### toString

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String toString ()
```

Returns a string representation of the object.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | a string representation of the object. <br /> |

### writeToParcel

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void writeToParcel (Parcel dest, 
                int flags)
```

Implement the Parcelable interface

<br />

| Parameters ||
|---|---|
| `dest` | `Parcel`: The Parcel in which the object should be written. This value cannot be `null`. <br /> |
| `flags` | `int`: Additional flags about how the object should be written. May be 0 or `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE`. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE` |