mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-15 01:19:36 +00:00
77d786b6e8
This version takes advantage of all the cleanups to the code. It has been modified to build on older kernels. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
29 lines
399 B
C
29 lines
399 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/* Copyright(c) 2007 - 2011 Realtek Corporation. */
|
|
|
|
#include "../include/drv_types.h"
|
|
|
|
static const u32 ch_freq_map[] = {
|
|
2412,
|
|
2417,
|
|
2422,
|
|
2427,
|
|
2432,
|
|
2437,
|
|
2442,
|
|
2447,
|
|
2452,
|
|
2457,
|
|
2462,
|
|
2467,
|
|
2472,
|
|
2484
|
|
};
|
|
|
|
u32 rtw_ch2freq(u32 channel)
|
|
{
|
|
if (channel == 0 || channel > ARRAY_SIZE(ch_freq_map))
|
|
return 2412;
|
|
|
|
return ch_freq_map[channel - 1];
|
|
}
|