wlan_bearer/wlannwif/etherpkt/CardDll.cpp
changeset 44 3fa92caa4fdc
parent 22 c6a1762761b8
equal deleted inserted replaced
39:3d23268b50f6 44:3fa92caa4fdc
     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: 13 %
    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     
       
    85     CleanupClosePushL( iCard );
    84 
    86 
    85     User::LeaveIfError( iCard.InitialiseBuffers() );
    87     User::LeaveIfError( iCard.InitialiseBuffers() );
       
    88     
       
    89     CleanupStack::Pop( &iCard );
    86   }
    90   }
    87 
    91 
    88 
    92 
    89 // -----------------------------------------------------------------------------
    93 // -----------------------------------------------------------------------------
    90 // CPcCardPktDrvFactory::StartInterface()
    94 // CPcCardPktDrvFactory::StartInterface()