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.1" /*20150729 by YuChen*/
25 #define CLM_VERSION "1.0"
27 #define ODM_MAX_CHANNEL_2G 14
28 #define ODM_MAX_CHANNEL_5G 24
30 /* For phydm_auto_channel_select_setting_ap() */
31 #define STORE_DEFAULT_NHM_SETTING 0
32 #define RESTORE_DEFAULT_NHM_SETTING 1
33 #define ACS_NHM_SETTING 2
36 boolean is_force_acs_result;
39 u16 channel_info_2g[2][ODM_MAX_CHANNEL_2G]; /* Channel_Info[1]: channel score, Channel_Info[2]:Channel_Scan_Times */
40 u16 channel_info_5g[2][ODM_MAX_CHANNEL_5G];
42 #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
47 /* AC-Series, for storing previous setting */
54 /* N-Series, for storing previous setting */
66 odm_auto_channel_select_init(
71 odm_auto_channel_select_reset(
76 odm_auto_channel_select(
82 odm_get_auto_channel_select_result(
87 #if (DM_ODM_SUPPORT_TYPE & ODM_AP)
90 phydm_auto_channel_select_setting_ap(
92 u32 setting, /* 0: STORE_DEFAULT_NHM_SETTING; 1: RESTORE_DEFAULT_NHM_SETTING, 2: ACS_NHM_SETTING */
97 phydm_get_nhm_statistics_ap(
99 u32 idx, /* @ 2G, Real channel number = idx+1 */
103 #endif /* #if ( DM_ODM_SUPPORT_TYPE & ODM_AP ) */
105 #endif /* #ifndef __PHYDMACS_H__ */