]> git.karo-electronics.de Git - karo-tx-linux.git/blob - drivers/staging/rtl8188eu/hal/HalPhyRf.c
Merge tag 'dm-3.16-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/device...
[karo-tx-linux.git] / drivers / staging / rtl8188eu / hal / HalPhyRf.c
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of version 2 of the GNU General Public License as
7  * published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12  * more details.
13  *
14  * You should have received a copy of the GNU General Public License along with
15  * this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
17  *
18  *
19  ******************************************************************************/
20
21  #include "odm_precomp.h"
22
23 /* 3============================================================ */
24 /* 3 IQ Calibration */
25 /* 3============================================================ */
26
27 void ODM_ResetIQKResult(struct odm_dm_struct *pDM_Odm)
28 {
29 }
30
31 u8 ODM_GetRightChnlPlaceforIQK(u8 chnl)
32 {
33         u8      channel_all[ODM_TARGET_CHNL_NUM_2G_5G] = {
34                 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
35                 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64,
36                 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120, 122,
37                 124, 126, 128, 130, 132, 134, 136, 138, 140, 149, 151, 153,
38                 155, 157, 159, 161, 163, 165
39         };
40         u8      place = chnl;
41
42         if (chnl > 14) {
43                 for (place = 14; place < sizeof(channel_all); place++) {
44                         if (channel_all[place] == chnl)
45                                 return place-13;
46                 }
47         }
48         return 0;
49 }