|
1 /* |
|
2 * Copyright (c) 2002-2009 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 MWlanManagementSideUmac class. |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: 15 % |
|
20 */ |
|
21 |
|
22 #ifndef WLANMANAGEMENTSIDEUMAC_H |
|
23 #define WLANMANAGEMENTSIDEUMAC_H |
|
24 |
|
25 #include "umacoidmsg.h" |
|
26 |
|
27 #ifndef RD_WLAN_DDK |
|
28 #include <wha.h> |
|
29 #else |
|
30 #include <wlanwha.h> |
|
31 #endif |
|
32 |
|
33 struct SOidMsgStorage; |
|
34 |
|
35 /** |
|
36 * |
|
37 */ |
|
38 class MWlanManagementSideUmac |
|
39 { |
|
40 public: |
|
41 |
|
42 virtual ~MWlanManagementSideUmac() {}; |
|
43 |
|
44 /** |
|
45 * OID request handler routine |
|
46 * @param aOutputBuffer Pointer to the output buffer (query-operations) |
|
47 * @param aOutputBufferSize Size of the buffer pointed to by aOutputBuffer |
|
48 * @return Status of the operation see #TStatus |
|
49 */ |
|
50 virtual void HandleOid( |
|
51 const TOIDHeader* aOid, |
|
52 TAny* aOutputBuffer, |
|
53 TUint aOutputBufferSize) = 0; |
|
54 |
|
55 virtual void AttachWsa( WHA::Wha* aWha ) = 0; |
|
56 |
|
57 virtual TBool Init() = 0; |
|
58 |
|
59 virtual void BootUp( |
|
60 const TUint8* aPda, |
|
61 TUint32 aPdaLength, |
|
62 const TUint8* aFw, |
|
63 TUint32 aFwLength ) = 0; |
|
64 |
|
65 virtual void FinitSystem() = 0; |
|
66 |
|
67 /** |
|
68 * Write management frame. |
|
69 * @param aDataBuffer meta header of the frame to be transmitted |
|
70 * @return KErrNone |
|
71 */ |
|
72 virtual void WriteMgmtFrame(TDataBuffer& aDataBuffer) = 0; |
|
73 |
|
74 /** |
|
75 * Gets the WLAN vendor needs for extra space (bytes) in frame buffers |
|
76 * |
|
77 * @param aRxOffset How much extra space needs to be reserved |
|
78 * in the Rx buffer before every Rx frame that is received from the |
|
79 * WHA layer. |
|
80 * @param aTxHeaderSpace How much extra space needs to be reserved |
|
81 * in the Tx buffer before every Tx frame that is given to the |
|
82 * WHA layer. |
|
83 * @param aTxTrailerSpace How much extra space needs to be reserved |
|
84 * in the Tx buffer after every Tx frame that is given to the |
|
85 * WHA layer. |
|
86 */ |
|
87 virtual void GetFrameExtraSpaceForVendor( |
|
88 TUint8& aRxOffset, |
|
89 TUint8& aTxHeaderSpace, |
|
90 TUint8& aTxTrailerSpace ) const = 0 ; |
|
91 }; |
|
92 |
|
93 #endif // WLANMANAGEMENTSIDEUMAC_H |