2013-05-08 21:45:39 +00:00
|
|
|
/******************************************************************************
|
|
|
|
*
|
|
|
|
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms of version 2 of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
|
|
* more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along with
|
|
|
|
* this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
|
|
|
|
*
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
2013-05-19 04:28:07 +00:00
|
|
|
|
2013-05-08 21:45:39 +00:00
|
|
|
#include "odm_precomp.h"
|
2013-05-19 04:28:07 +00:00
|
|
|
|
2013-07-10 18:25:07 +00:00
|
|
|
/* 3============================================================ */
|
|
|
|
/* 3 IQ Calibration */
|
|
|
|
/* 3============================================================ */
|
2013-05-08 21:45:39 +00:00
|
|
|
|
2013-08-06 20:37:28 +00:00
|
|
|
void ODM_ResetIQKResult(struct odm_dm_struct *pDM_Odm)
|
2013-05-08 21:45:39 +00:00
|
|
|
{
|
|
|
|
}
|
2013-07-15 04:50:52 +00:00
|
|
|
|
2013-08-14 17:03:28 +00:00
|
|
|
u8 ODM_GetRightChnlPlaceforIQK(u8 chnl)
|
2013-05-08 21:45:39 +00:00
|
|
|
{
|
2013-08-14 17:03:28 +00:00
|
|
|
u8 channel_all[ODM_TARGET_CHNL_NUM_2G_5G] = {
|
2013-08-06 20:37:28 +00:00
|
|
|
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
|
|
|
|
36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64,
|
|
|
|
100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120, 122,
|
|
|
|
124, 126, 128, 130, 132, 134, 136, 138, 140, 149, 151, 153,
|
|
|
|
155, 157, 159, 161, 163, 165
|
|
|
|
};
|
2013-08-14 17:03:28 +00:00
|
|
|
u8 place = chnl;
|
2013-05-08 21:45:39 +00:00
|
|
|
|
2013-08-06 20:37:28 +00:00
|
|
|
if (chnl > 14) {
|
|
|
|
for (place = 14; place < sizeof(channel_all); place++) {
|
2013-05-09 04:04:25 +00:00
|
|
|
if (channel_all[place] == chnl)
|
2013-05-08 21:45:39 +00:00
|
|
|
return place-13;
|
|
|
|
}
|
2013-05-19 04:28:07 +00:00
|
|
|
}
|
2013-05-08 21:45:39 +00:00
|
|
|
return 0;
|
|
|
|
}
|