Language

WifiBand Enum

Definition

Identifies Wi-Fi frequency-band codes.

public enum WifiBand
type WifiBand = 
Inheritance
WifiBand

Fields

Name Value Description
Unspecified -1

The managed value -1, with no JNI field mapping. Unspecified separately exposes the native constant with the same numeric value.

Band24Ghz 1

Wi-Fi 2.4 GHz band.

Android reference for android.net.wifi.ScanResult.WIFI_BAND_24_GHZ.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Band5Ghz 2

Wi-Fi 5 GHz band.

Android reference for android.net.wifi.ScanResult.WIFI_BAND_5_GHZ.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Band6Ghz 8

Wi-Fi 6 GHz band.

Android reference for android.net.wifi.ScanResult.WIFI_BAND_6_GHZ.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Band60Ghz 16

Wi-Fi 60 GHz band.

Android reference for android.net.wifi.ScanResult.WIFI_BAND_60_GHZ.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Remarks

GetAllowedChannels(WifiBand, WifiAvailableChannelModes) and GetUsableChannels(WifiBand, WifiAvailableChannelModes) accept only band codes 0, 1, 6, 7, 8, 15, 16, 31. A query for the 5 GHz band must include DFS channels: use code 6, not Band5Ghz, whose code is 2. An all-band query uses code 0, not Unspecified, whose managed value is -1. The query codes also differ from the hotspot configuration codes in SoftApConfigurationBand.

Applies to