|
1 /* |
|
2 * Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Implementation of the WlanDot11Connecting class |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: 15 % |
|
20 */ |
|
21 |
|
22 #include "config.h" |
|
23 #include "UmacDot11Connecting.h" |
|
24 #include "UmacContextImpl.h" |
|
25 |
|
26 // ============================ MEMBER FUNCTIONS =============================== |
|
27 |
|
28 // --------------------------------------------------------------------------- |
|
29 // |
|
30 // --------------------------------------------------------------------------- |
|
31 // |
|
32 TBool WlanDot11Connecting::IsClass2Frame( const TUint8 aFrameType ) |
|
33 { |
|
34 return ( aFrameType == E802Dot11FrameTypeAssociationReq |
|
35 || aFrameType == E802Dot11FrameTypeAssociationResp |
|
36 || aFrameType == E802Dot11FrameTypeReassociationReq |
|
37 || aFrameType == E802Dot11FrameTypeReassociationResp |
|
38 || aFrameType == E802Dot11FrameTypeDisassociation ); |
|
39 } |
|
40 |
|
41 // --------------------------------------------------------------------------- |
|
42 // |
|
43 // --------------------------------------------------------------------------- |
|
44 // |
|
45 TBool WlanDot11Connecting::IsClass3Frame( const TUint8 aFrameType ) |
|
46 { |
|
47 return ( aFrameType & E802Dot11FrameTypeData ); // is any data type frame |
|
48 } |
|
49 |
|
50 // --------------------------------------------------------------------------- |
|
51 // |
|
52 // --------------------------------------------------------------------------- |
|
53 // |
|
54 TAny* WlanDot11Connecting::RequestForBuffer( |
|
55 WlanContextImpl& aCtxImpl, |
|
56 TUint16 aLength ) |
|
57 { |
|
58 return aCtxImpl.GetRxBuffer( aLength ); |
|
59 } |