|
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: Implementation of ProtocolStackSideUmacCb class |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: 12 % |
|
20 */ |
|
21 |
|
22 #include "config.h" |
|
23 #include "UmacProtocolStackSideUmacCb.h" |
|
24 |
|
25 // ============================ MEMBER FUNCTIONS =============================== |
|
26 |
|
27 // ----------------------------------------------------------------------------- |
|
28 // |
|
29 // ----------------------------------------------------------------------------- |
|
30 // |
|
31 void WlanProtocolStackSideUmacCb::SetProtocolStackTxOffset( |
|
32 TUint32 aEthernetFrameTxOffset ) |
|
33 { |
|
34 if ( iSelf ) |
|
35 { |
|
36 iSelf->SetProtocolStackTxOffset( |
|
37 aEthernetFrameTxOffset ); |
|
38 } |
|
39 else |
|
40 { |
|
41 // protocol stack side client is not present so we do nothing |
|
42 // (This is the case for the 1st connect and in that case the |
|
43 // frame Tx offset will be set elsewhere) |
|
44 } |
|
45 } |
|
46 |
|
47 // ----------------------------------------------------------------------------- |
|
48 // |
|
49 // ----------------------------------------------------------------------------- |
|
50 // |
|
51 void WlanProtocolStackSideUmacCb::OnTxProtocolStackDataComplete( |
|
52 TInt aCompletionCode, |
|
53 TDataBuffer* aMetaHeader ) |
|
54 { |
|
55 if ( iSelf ) |
|
56 { |
|
57 iSelf->OnTxProtocolStackDataComplete( aCompletionCode, aMetaHeader ); |
|
58 } |
|
59 } |
|
60 |
|
61 // ----------------------------------------------------------------------------- |
|
62 // |
|
63 // ----------------------------------------------------------------------------- |
|
64 // |
|
65 void WlanProtocolStackSideUmacCb::OnOtherTxDataComplete() |
|
66 { |
|
67 if ( iSelf ) |
|
68 { |
|
69 iSelf->OnOtherTxDataComplete(); |
|
70 } |
|
71 } |
|
72 |
|
73 // ----------------------------------------------------------------------------- |
|
74 // |
|
75 // ----------------------------------------------------------------------------- |
|
76 // |
|
77 void WlanProtocolStackSideUmacCb::OnTxDataSent() |
|
78 { |
|
79 if ( iSelf ) |
|
80 { |
|
81 iSelf->OnTxDataSent(); |
|
82 } |
|
83 } |
|
84 |
|
85 // ----------------------------------------------------------------------------- |
|
86 // |
|
87 // ----------------------------------------------------------------------------- |
|
88 // |
|
89 TBool WlanProtocolStackSideUmacCb::ProtocolStackDataReceiveComplete( |
|
90 const TDataBuffer*& aBufferStart, |
|
91 TUint32 aNumOfBuffers ) |
|
92 { |
|
93 TBool status ( EFalse ); |
|
94 |
|
95 if ( iSelf ) |
|
96 { |
|
97 status = iSelf->ProtocolStackDataReceiveComplete( aBufferStart, aNumOfBuffers ); |
|
98 } |
|
99 |
|
100 return status; |
|
101 } |
|
102 |
|
103 // ----------------------------------------------------------------------------- |
|
104 // |
|
105 // ----------------------------------------------------------------------------- |
|
106 // |
|
107 TBool WlanProtocolStackSideUmacCb::ProtocolStackSideClientReady() const |
|
108 { |
|
109 TBool status ( EFalse ); |
|
110 |
|
111 if ( iSelf ) |
|
112 { |
|
113 status = iSelf->ProtocolStackSideClientReady(); |
|
114 } |
|
115 |
|
116 return status; |
|
117 } |
|
118 |
|
119 // ----------------------------------------------------------------------------- |
|
120 // |
|
121 // ----------------------------------------------------------------------------- |
|
122 // |
|
123 void WlanProtocolStackSideUmacCb::UserDataReEnabled() |
|
124 { |
|
125 if ( iSelf ) |
|
126 { |
|
127 iSelf->UserDataReEnabled(); |
|
128 } |
|
129 } |