ScanResult.ConvertChannelToFrequencyMhzIfSupported(Int32, Int32) Method
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.
Utility function to convert Wi-Fi channel number to frequency in MHz.
[Android.Runtime.Register("convertChannelToFrequencyMhzIfSupported", "(II)I", "", ApiSince=31)]
public static int ConvertChannelToFrequencyMhzIfSupported (int channel, int band);
[<Android.Runtime.Register("convertChannelToFrequencyMhzIfSupported", "(II)I", "", ApiSince=31)>]
static member ConvertChannelToFrequencyMhzIfSupported : int * int -> int
Parameters
- channel
- Int32
number to convert.
- band
- Int32
of channel to convert. One of the following bands:
#WIFI_BAND_24_GHZ
, #WIFI_BAND_5_GHZ
,
#WIFI_BAND_6_GHZ
, #WIFI_BAND_60_GHZ
.
Returns
center frequency in Mhz of the channel, #UNSPECIFIED
if no match
- Attributes
Remarks
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 #convertFrequencyMhzToChannelIfSupported(int)
.
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.