1 /******************************************************************************
3 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
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.
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
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
19 ******************************************************************************/
21 #ifndef __PHYDMACS_H__
22 #define __PHYDMACS_H__
24 #define ACS_VERSION "1.0"
25 #define CLM_VERSION "1.0"
27 #define ODM_MAX_CHANNEL_2G 14
28 #define ODM_MAX_CHANNEL_5G 24
30 // For phydm_AutoChannelSelectSettingAP()
31 #define STORE_DEFAULT_NHM_SETTING 0
32 #define RESTORE_DEFAULT_NHM_SETTING 1
33 #define ACS_NHM_SETTING 2
37 BOOLEAN bForceACSResult;
38 u1Byte CleanChannel_2G;
39 u1Byte CleanChannel_5G;
40 u2Byte Channel_Info_2G[2][ODM_MAX_CHANNEL_2G]; //Channel_Info[1]: Channel Score, Channel_Info[2]:Channel_Scan_Times
41 u2Byte Channel_Info_5G[2][ODM_MAX_CHANNEL_5G];
43 #if ( DM_ODM_SUPPORT_TYPE & ODM_AP )
46 u1Byte NHM_Cnt[14][11];
48 // AC-Series, for storing previous setting
53 u1Byte Reg0x9A0; // u1Byte
55 // N-Series, for storing previous setting
60 u1Byte Reg0xE28; // u1Byte
67 odm_AutoChannelSelectInit(
72 odm_AutoChannelSelectReset(
77 odm_AutoChannelSelect(
83 ODM_GetAutoChannelSelectResult(
88 #if ( DM_ODM_SUPPORT_TYPE & ODM_AP )
91 phydm_AutoChannelSelectSettingAP(
93 IN u4Byte Setting, // 0: STORE_DEFAULT_NHM_SETTING; 1: RESTORE_DEFAULT_NHM_SETTING, 2: ACS_NHM_SETTING
98 phydm_GetNHMStatisticsAP(
100 IN u4Byte idx, // @ 2G, Real channel number = idx+1
104 #endif //#if ( DM_ODM_SUPPORT_TYPE & ODM_AP )
129 #endif //#ifndef __PHYDMACS_H__