ScanResult.ConvertChannelToFrequencyMhzIfSupported(Int32, Int32) Method

Definition

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).

Java documentation for android.net.wifi.ScanResult.convertChannelToFrequencyMhzIfSupported(int, 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.

Applies to