wlan_bearer/wlanldd/wlan_common/umac_common/src/UmacProtocolStackSideUmacCb.cpp
changeset 0 c40eb8fe8501
child 22 c6a1762761b8
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/wlan_bearer/wlanldd/wlan_common/umac_common/src/UmacProtocolStackSideUmacCb.cpp	Tue Feb 02 02:03:13 2010 +0200
@@ -0,0 +1,129 @@
+/*
+* Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:   Implementation of ProtocolStackSideUmacCb class
+*
+*/
+
+/*
+* %version: 12 %
+*/
+
+#include "config.h"
+#include "UmacProtocolStackSideUmacCb.h"
+
+// ============================ MEMBER FUNCTIONS ===============================
+
+// -----------------------------------------------------------------------------
+// 
+// -----------------------------------------------------------------------------
+//
+void WlanProtocolStackSideUmacCb::SetProtocolStackTxOffset( 
+    TUint32 aEthernetFrameTxOffset )
+    {
+    if ( iSelf )
+        {
+        iSelf->SetProtocolStackTxOffset( 
+            aEthernetFrameTxOffset );
+        }
+    else
+        {
+        // protocol stack side client is not present so we do nothing
+        // (This is the case for the 1st connect and in that case the 
+        // frame Tx offset will be set elsewhere)
+        }
+    }
+
+// -----------------------------------------------------------------------------
+// 
+// -----------------------------------------------------------------------------
+//
+void WlanProtocolStackSideUmacCb::OnTxProtocolStackDataComplete( 
+    TInt aCompletionCode,
+    TDataBuffer* aMetaHeader )
+    {
+    if ( iSelf )
+        {
+        iSelf->OnTxProtocolStackDataComplete( aCompletionCode, aMetaHeader );
+        }
+    }
+
+// -----------------------------------------------------------------------------
+// 
+// -----------------------------------------------------------------------------
+//
+void WlanProtocolStackSideUmacCb::OnOtherTxDataComplete()
+    {
+    if ( iSelf )
+        {
+        iSelf->OnOtherTxDataComplete();
+        }    
+    }
+
+// -----------------------------------------------------------------------------
+// 
+// -----------------------------------------------------------------------------
+//
+void WlanProtocolStackSideUmacCb::OnTxDataSent()
+    {
+    if ( iSelf )
+        {
+        iSelf->OnTxDataSent();
+        }
+    }
+
+// -----------------------------------------------------------------------------
+// 
+// -----------------------------------------------------------------------------
+//
+TBool WlanProtocolStackSideUmacCb::ProtocolStackDataReceiveComplete( 
+    const TDataBuffer*& aBufferStart, 
+    TUint32 aNumOfBuffers )
+    {
+    TBool status ( EFalse );
+    
+    if ( iSelf )
+        {
+        status = iSelf->ProtocolStackDataReceiveComplete( aBufferStart, aNumOfBuffers );
+        }
+        
+    return status;
+    }
+
+// -----------------------------------------------------------------------------
+// 
+// -----------------------------------------------------------------------------
+//
+TBool WlanProtocolStackSideUmacCb::ProtocolStackSideClientReady() const
+    {
+    TBool status ( EFalse );
+    
+    if ( iSelf )
+        {
+        status = iSelf->ProtocolStackSideClientReady();
+        }
+        
+    return status;
+    }
+
+// -----------------------------------------------------------------------------
+// 
+// -----------------------------------------------------------------------------
+//
+void WlanProtocolStackSideUmacCb::UserDataReEnabled()
+    {
+    if ( iSelf )
+        {
+        iSelf->UserDataReEnabled();
+        }
+    }