2 *************************************************************************
4 * 5F., No.36, Taiyuan St., Jhubei City,
8 * (c) Copyright 2002-2007, Ralink Technology, Inc.
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
15 * This program is distributed in the hope that it will be useful, *
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
18 * GNU General Public License for more details. *
20 * You should have received a copy of the GNU General Public License *
21 * along with this program; if not, write to the *
22 * Free Software Foundation, Inc., *
23 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
25 *************************************************************************
31 Miniport generic portion header file
35 -------- ---------- ----------------------------------------------
36 Fonchi Wu 2007-12-19 created
42 #include "rtmp_type.h"
54 typedef struct _CH_DESP {
58 UCHAR Geography; // 0:out door, 1:in door, 2:both
59 BOOLEAN DfsReq; // Dfs require, 0: No, 1: yes.
62 typedef struct _CH_REGION {
64 UCHAR DfsType; // 0: CE, 1: FCC, 2: JAP, 3:JAP_W53, JAP_W56
66 } CH_REGION, *PCH_REGION;
68 extern CH_REGION ChRegion[];
70 typedef struct _CH_FREQ_MAP_{
75 extern CH_FREQ_MAP CH_HZ_ID_MAP[];
76 extern int CH_HZ_ID_MAP_NUM;
79 #define MAP_CHANNEL_ID_TO_KHZ(_ch, _khz) \
82 for (_chIdx = 0; _chIdx < CH_HZ_ID_MAP_NUM; _chIdx++)\
84 if ((_ch) == CH_HZ_ID_MAP[_chIdx].channel) \
86 (_khz) = CH_HZ_ID_MAP[_chIdx].freqKHz * 1000; \
90 if (_chIdx == CH_HZ_ID_MAP_NUM) \
94 #define MAP_KHZ_TO_CHANNEL_ID(_khz, _ch) \
97 for (_chIdx = 0; _chIdx < CH_HZ_ID_MAP_NUM; _chIdx++)\
99 if ((_khz) == CH_HZ_ID_MAP[_chIdx].freqKHz) \
101 (_ch) = CH_HZ_ID_MAP[_chIdx].channel; \
105 if (_chIdx == CH_HZ_ID_MAP_NUM) \
110 VOID BuildChannelListEx(
111 IN PRTMP_ADAPTER pAd);
113 VOID BuildBeaconChList(
114 IN PRTMP_ADAPTER pAd,
118 #ifdef DOT11_N_SUPPORT
120 IN PRTMP_ADAPTER pAd);
123 IN PRTMP_ADAPTER pAd);
124 #endif // DOT11_N_SUPPORT //
126 UINT8 GetCuntryMaxTxPwr(
127 IN PRTMP_ADAPTER pAd,
130 #endif // __CHLIST_H__