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 *************************************************************************
28 #ifndef __SPECTRUM_H__
29 #define __SPECTRUM_H__
31 #include "rtmp_type.h"
32 #include "spectrum_def.h"
37 IN HTTRANSMIT_SETTING HTTxMode
);
40 ==========================================================================
42 Prepare Measurement request action frame and enqueue it into
43 management queue waiting for transmition.
46 1. the destination mac address of the frame.
49 ==========================================================================
51 VOID
MakeMeasurementReqFrame(
53 OUT PUCHAR pOutBuffer
,
58 IN UINT8 MeasureToken
,
59 IN UINT8 MeasureReqMode
,
60 IN UINT8 MeasureReqType
,
61 IN UINT8 NumOfRepetitions
);
64 ==========================================================================
66 Prepare Measurement report action frame and enqueue it into
67 management queue waiting for transmition.
70 1. the destination mac address of the frame.
73 ==========================================================================
75 VOID
EnqueueMeasurementRep(
79 IN UINT8 MeasureToken
,
80 IN UINT8 MeasureReqMode
,
81 IN UINT8 MeasureReqType
,
82 IN UINT8 ReportInfoLen
,
83 IN PUINT8 pReportInfo
);
86 ==========================================================================
88 Prepare TPC Request action frame and enqueue it into
89 management queue waiting for transmition.
92 1. the destination mac address of the frame.
95 ==========================================================================
100 IN UCHAR DialogToken
);
103 ==========================================================================
105 Prepare TPC Report action frame and enqueue it into
106 management queue waiting for transmition.
109 1. the destination mac address of the frame.
112 ==========================================================================
115 IN PRTMP_ADAPTER pAd
,
117 IN UINT8 DialogToken
,
119 IN UINT8 LinkMargin
);
122 ==========================================================================
124 Prepare Channel Switch Announcement action frame and enqueue it into
125 management queue waiting for transmition.
128 1. the destination mac address of the frame.
129 2. Channel switch announcement mode.
130 2. a New selected channel.
133 ==========================================================================
136 IN PRTMP_ADAPTER pAd
,
142 ==========================================================================
144 Spectrun action frames Handler such as channel switch annoucement,
145 measurement report, measurement request actions frames.
148 Elme - MLME message containing the received frame
151 ==========================================================================
153 VOID
PeerSpectrumAction(
154 IN PRTMP_ADAPTER pAd
,
155 IN MLME_QUEUE_ELEM
*Elem
);
158 ==========================================================================
164 ==========================================================================
166 INT
Set_MeasureReq_Proc(
167 IN PRTMP_ADAPTER pAd
,
171 IN PRTMP_ADAPTER pAd
,
174 INT
Set_PwrConstraint(
175 IN PRTMP_ADAPTER pAd
,
179 VOID
MeasureReqTabInit(
180 IN PRTMP_ADAPTER pAd
);
182 VOID
MeasureReqTabExit(
183 IN PRTMP_ADAPTER pAd
);
185 PMEASURE_REQ_ENTRY
MeasureReqLookUp(
186 IN PRTMP_ADAPTER pAd
,
187 IN UINT8 DialogToken
);
189 PMEASURE_REQ_ENTRY
MeasureReqInsert(
190 IN PRTMP_ADAPTER pAd
,
191 IN UINT8 DialogToken
);
193 VOID
MeasureReqDelete(
194 IN PRTMP_ADAPTER pAd
,
195 IN UINT8 DialogToken
);
197 VOID
InsertChannelRepIE(
198 IN PRTMP_ADAPTER pAd
,
199 OUT PUCHAR pFrameBuf
,
200 OUT PULONG pFrameLen
,
202 IN UINT8 RegulatoryClass
);
204 VOID
InsertTpcReportIE(
205 IN PRTMP_ADAPTER pAd
,
206 OUT PUCHAR pFrameBuf
,
207 OUT PULONG pFrameLen
,
209 IN UINT8 LinkMargin
);
211 VOID
InsertDialogToken(
212 IN PRTMP_ADAPTER pAd
,
213 OUT PUCHAR pFrameBuf
,
214 OUT PULONG pFrameLen
,
215 IN UINT8 DialogToken
);
218 IN PRTMP_ADAPTER pAd
);
221 IN PRTMP_ADAPTER pAd
);
223 VOID
NotifyChSwAnnToPeerAPs(
224 IN PRTMP_ADAPTER pAd
,
230 VOID
RguClass_BuildBcnChList(
231 IN PRTMP_ADAPTER pAd
,
234 #endif // __SPECTRUM_H__ //