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 Handle association related requests either from WSTA or from local MLME
35 --------- ---------- ----------------------------------------------
36 Fonchi Wu 2008 created for 802.11h
39 #ifndef __SPECTRUM_DEF_H__
40 #define __SPECTRUM_DEF_H__
42 #define MAX_MEASURE_REQ_TAB_SIZE 3
43 #define MAX_HASH_MEASURE_REQ_TAB_SIZE MAX_MEASURE_REQ_TAB_SIZE
45 #define MAX_TPC_REQ_TAB_SIZE 3
46 #define MAX_HASH_TPC_REQ_TAB_SIZE MAX_TPC_REQ_TAB_SIZE
48 #define MIN_RCV_PWR 100 /* Negative value ((dBm) */
51 #define RM_MEASURE_REQ 1
55 #define RM_RPI_HISTOGRAM 2
57 #define TPC_REQ_AGE_OUT 500 /* ms */
58 #define MQ_REQ_AGE_OUT 500 /* ms */
60 #define TPC_DIALOGTOKEN_HASH_INDEX(_DialogToken) ((_DialogToken) % MAX_HASH_TPC_REQ_TAB_SIZE)
61 #define MQ_DIALOGTOKEN_HASH_INDEX(_DialogToken) ((_DialogToken) % MAX_MEASURE_REQ_TAB_SIZE)
63 typedef struct _MEASURE_REQ_ENTRY
65 struct _MEASURE_REQ_ENTRY *pNext;
69 UINT8 MeasureDialogToken[3]; // 0:basic measure, 1: CCA measure, 2: RPI_Histogram measure.
70 } MEASURE_REQ_ENTRY, *PMEASURE_REQ_ENTRY;
72 typedef struct _MEASURE_REQ_TAB
75 PMEASURE_REQ_ENTRY Hash[MAX_HASH_MEASURE_REQ_TAB_SIZE];
76 MEASURE_REQ_ENTRY Content[MAX_MEASURE_REQ_TAB_SIZE];
77 } MEASURE_REQ_TAB, *PMEASURE_REQ_TAB;
79 typedef struct _TPC_REQ_ENTRY
81 struct _TPC_REQ_ENTRY *pNext;
85 } TPC_REQ_ENTRY, *PTPC_REQ_ENTRY;
87 typedef struct _TPC_REQ_TAB
90 PTPC_REQ_ENTRY Hash[MAX_HASH_TPC_REQ_TAB_SIZE];
91 TPC_REQ_ENTRY Content[MAX_TPC_REQ_TAB_SIZE];
92 } TPC_REQ_TAB, *PTPC_REQ_TAB;
94 #endif // __SPECTRUM_DEF_H__ //