TwclWiFiInterface.FrequencyToChannel(Cardinal) Method

The method converts the given central frequency to the WLAN channel number.

Namespace: wclWiFi
public
 class function FrequencyToChannel(const Frequency: Cardinal): Byte;

Parameters

Frequency
Type: Cardinal

The central frequency.

Return Value

Type: Byte

If the Frequency if a valid central frequency the method returns the channel number. If the central frequency is invalid or unknown the method returns 0.