wlan_bearer/wlanldd/wlan_common/umac_common/src/UmacProtocolStackSideUmacCb.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 17:02:06 +0300
branchRCL_3
changeset 42 a828660c511c
parent 0 c40eb8fe8501
child 43 d3d7683d16f5
permissions -rw-r--r--
Revision: 201029 Kit: 201035

/*
* Copyright (c) 2002-2010 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: 13 %
*/

#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( 
    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();
        }
    }