|
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: Declaration of the WlanDot11Connecting class |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: 15 % |
|
20 */ |
|
21 |
|
22 #ifndef WLANDOT11CONNECTING_H |
|
23 #define WLANDOT11CONNECTING_H |
|
24 |
|
25 #include "UmacDot11State.h" |
|
26 |
|
27 /** |
|
28 * Infrastructure mode connection establishment base class. |
|
29 * A composite state, which holds the common behaviour of its |
|
30 * substates. In this state STA is locked to a specific radio channel and |
|
31 * is performing authentication and association procedures. |
|
32 * |
|
33 * @lib wlanumac.lib |
|
34 * @since S60 v3.1 |
|
35 */ |
|
36 class WlanDot11Connecting : public WlanDot11State |
|
37 { |
|
38 public: |
|
39 |
|
40 /** |
|
41 * Destructor. |
|
42 */ |
|
43 virtual ~WlanDot11Connecting() {}; |
|
44 |
|
45 protected: |
|
46 |
|
47 /** |
|
48 * C++ default constructor. |
|
49 */ |
|
50 WlanDot11Connecting() :iFlags( 0 ) {}; |
|
51 |
|
52 /** |
|
53 * Checks is a class 2 frame |
|
54 * @param aFrameType first byte from FrameControl field |
|
55 * @return ETrue is class 2 frame, EFalse is not a class 2 frame |
|
56 */ |
|
57 static TBool IsClass2Frame( const TUint8 aFrameType ); |
|
58 |
|
59 /** |
|
60 * Checks is a class 3 frame |
|
61 * @param aFrameType first byte from FrameControl field |
|
62 * @return ETrue is class 3 frame, EFalse is not a class 3 frame |
|
63 */ |
|
64 static TBool IsClass3Frame( const TUint8 aFrameType ); |
|
65 |
|
66 /** |
|
67 * ?member_description. |
|
68 * |
|
69 * @since Series 60 3.1 |
|
70 * @param aCtxImpl global statemachine context |
|
71 * @param aRcpi RCPI of the frame |
|
72 * @param aFlags flags from WHA frame receive method |
|
73 * @param aBuffer pointer to the beginning of the Rx buffer allocated |
|
74 * for the frame |
|
75 */ |
|
76 virtual void OnReceiveFrameSuccess( |
|
77 WlanContextImpl& aCtxImpl, |
|
78 const void* aFrame, |
|
79 TUint16 aLength, |
|
80 WHA::TRcpi aRcpi, |
|
81 TUint32 aFlags, |
|
82 TUint8* aBuffer ) = 0; |
|
83 |
|
84 private: |
|
85 |
|
86 /** |
|
87 * From ?base_class ?member_description. |
|
88 * Timer timeout function |
|
89 * @since S60 3.1 |
|
90 * @param aCtxImpl global statemachine context |
|
91 */ |
|
92 virtual TAny* RequestForBuffer ( |
|
93 WlanContextImpl& aCtxImpl, |
|
94 TUint16 aLength ); |
|
95 |
|
96 // Prohibit copy constructor |
|
97 WlanDot11Connecting( const WlanDot11Connecting& ); |
|
98 // Prohibit assigment operator |
|
99 WlanDot11Connecting& operator= ( const WlanDot11Connecting& ); |
|
100 |
|
101 protected: // Data |
|
102 |
|
103 /** mask for local deferred events */ |
|
104 TUint32 iFlags; |
|
105 }; |
|
106 |
|
107 #endif // WLANDOT11CONNECTING_H |
|
108 |
|
109 // End of File |