1 // SPDX-License-Identifier: GPL-2.0
2 /******************************************************************************
4 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
6 ******************************************************************************/
9 #include <linux/kernel.h>
11 static const u32 ch_freq_map[] = {
28 u32 rtw_ch2freq(u32 channel)
30 if (channel == 0 || channel > ARRAY_SIZE(ch_freq_map))
33 return ch_freq_map[channel - 1];