wlanhwinit_stub/src/wlanhwinit.cpp
changeset 43 e71858845f73
parent 40 b7e5ed8c1342
child 46 e1758cbb96ac
equal deleted inserted replaced
40:b7e5ed8c1342 43:e71858845f73
     1 /*
       
     2 * Copyright (c) 2002-2006 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 "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:  The implementation of CWlanHwInit class
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19 * %version: 5 %
       
    20 */
       
    21 
       
    22 #include <wlanhwinit.h>
       
    23 
       
    24 // ============================ MEMBER FUNCTIONS ===============================
       
    25 
       
    26 CWlanHwInit::CWlanHwInit() :
       
    27     iMain( NULL )
       
    28     {
       
    29     }
       
    30 
       
    31 void CWlanHwInit::ConstructL()
       
    32     {
       
    33     }
       
    34 
       
    35 EXPORT_C CWlanHwInit* CWlanHwInit::NewL()
       
    36     {
       
    37     CWlanHwInit* self = new( ELeave ) CWlanHwInit;
       
    38     CleanupStack::PushL( self );
       
    39     self->ConstructL();
       
    40     CleanupStack::Pop();
       
    41     return self;
       
    42     }
       
    43     
       
    44 EXPORT_C CWlanHwInit::~CWlanHwInit()
       
    45     {
       
    46     }
       
    47 
       
    48 // -----------------------------------------------------------------------------
       
    49 // CWlanHwInit::GetHwInitData
       
    50 // -----------------------------------------------------------------------------
       
    51 //
       
    52 EXPORT_C void CWlanHwInit::GetHwInitData(
       
    53     const TUint8** aInitData,
       
    54     TUint& aInitLength,
       
    55     const TUint8** aFwData,
       
    56     TUint& aFwLength )
       
    57     {
       
    58     *aInitData = NULL;
       
    59     aInitLength = 0;
       
    60     *aFwData = NULL;
       
    61     aFwLength = 0;
       
    62     }
       
    63 
       
    64 // -----------------------------------------------------------------------------
       
    65 // CWlanHwInit::GetMacAddress
       
    66 // -----------------------------------------------------------------------------
       
    67 //
       
    68 EXPORT_C TInt CWlanHwInit::GetMacAddress(
       
    69     TMacAddr& aMacAddress )
       
    70     {
       
    71     aMacAddress.iMacAddress[0] = 0x00;
       
    72     aMacAddress.iMacAddress[1] = 0xE0;
       
    73     aMacAddress.iMacAddress[2] = 0xDE;
       
    74     aMacAddress.iMacAddress[3] = 0xAD;
       
    75     aMacAddress.iMacAddress[4] = 0xBE;
       
    76     aMacAddress.iMacAddress[5] = 0xEF;   
       
    77     return KErrNone;
       
    78     }
       
    79 
       
    80 // -----------------------------------------------------------------------------
       
    81 // CWlanHwInit::GetHwTestInitData
       
    82 // -----------------------------------------------------------------------------
       
    83 //
       
    84 EXPORT_C void CWlanHwInit::GetHwTestInitData(
       
    85     const TUint8** aInitData,
       
    86     TUint& aInitLength,
       
    87     const TUint8** aFwData,
       
    88     TUint& aFwLength )
       
    89     {
       
    90     *aInitData = NULL;
       
    91     aInitLength = 0;
       
    92     *aFwData = NULL;
       
    93     aFwLength = 0;    
       
    94     }
       
    95 
       
    96 // -----------------------------------------------------------------------------
       
    97 // CWlanHwInit::GetHwTestData
       
    98 // -----------------------------------------------------------------------------
       
    99 //
       
   100 EXPORT_C TInt CWlanHwInit::GetHwTestData(
       
   101     TUint /*aId*/,
       
   102     TDes8& /*aData*/ )
       
   103     {
       
   104     return KErrNotSupported;
       
   105     }
       
   106 
       
   107 // -----------------------------------------------------------------------------
       
   108 // CWlanHwInit::SetHwTestData
       
   109 // -----------------------------------------------------------------------------
       
   110 //
       
   111 EXPORT_C TInt CWlanHwInit::SetHwTestData(
       
   112     TUint /*aId*/,
       
   113     TDesC8& /*aData*/ )
       
   114     {
       
   115     return KErrNotSupported;
       
   116     }