WifiBand Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Identifies Wi-Fi frequency-band codes.
public enum WifiBand
type WifiBand =
- Inheritance
-
WifiBand
Fields
| Name | Value | Description |
|---|---|---|
| Unspecified | -1 | The managed value |
| Band24Ghz | 1 | Wi-Fi 2.4 GHz band. Android reference for 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 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 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 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.