wlan_bearer/wlannwif/etherpkt/CardDll.cpp
branchRCL_3
changeset 42 a828660c511c
parent 0 c40eb8fe8501
child 43 d3d7683d16f5
equal deleted inserted replaced
40:5fb7af913dfd 42:a828660c511c
     1 /*
     1 /*
     2 * Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    14 * Description:  Implements PcCardPktDrv class
    14 * Description:  Implements PcCardPktDrv class
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: 12 %
    19 * %version: 14 %
    20 */
    20 */
    21 
    21 
    22 #include <nifmbuf.h>
    22 #include <nifmbuf.h>
    23 #include <es_mbuf.h>
    23 #include <es_mbuf.h>
    24 #include "carddrv.h"
    24 #include "carddrv.h"
    79 
    79 
    80     iSender = CSender::NewL( this );
    80     iSender = CSender::NewL( this );
    81     iReceiver = CReceiver::NewL( this );
    81     iReceiver = CReceiver::NewL( this );
    82 
    82 
    83     User::LeaveIfError( iCard.Open() );
    83     User::LeaveIfError( iCard.Open() );
    84 
    84     
    85     User::LeaveIfError( iCard.InitialiseBuffers( iFrameXferBlock ) );
    85     CleanupClosePushL( iCard );
       
    86 
       
    87     User::LeaveIfError( iCard.InitialiseBuffers() );
       
    88     
       
    89     CleanupStack::Pop( &iCard );
    86   }
    90   }
    87 
    91 
    88 
    92 
    89 // -----------------------------------------------------------------------------
    93 // -----------------------------------------------------------------------------
    90 // CPcCardPktDrvFactory::StartInterface()
    94 // CPcCardPktDrvFactory::StartInterface()