wlan_bearer/wlannwif/src/CLanxBearer.cpp
changeset 0 c40eb8fe8501
equal deleted inserted replaced
-1:000000000000 0:c40eb8fe8501
       
     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: Implements LANx Brearer
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19 * %version: 6 %
       
    20 */
       
    21 
       
    22 #include <in_sock.h> // Header is retained, but in_sock.h is modified for ipv6
       
    23 #include <in_iface.h> // Gone.
       
    24 #include "CLanxBearer.h"
       
    25 #include "WlanProto.h"
       
    26 
       
    27 //For Wlan logging
       
    28 #include "am_debug.h"
       
    29 
       
    30 using namespace ESock;
       
    31 
       
    32 // -----------------------------------------------------------------------------
       
    33 // CLanxBearer::CLanxBearer
       
    34 // -----------------------------------------------------------------------------
       
    35 //
       
    36 CLanxBearer::CLanxBearer(CLANLinkCommon* aLink):iLink(aLink), iSoIfConnectionInfoCached(false)
       
    37 {
       
    38 }
       
    39 
       
    40 // -----------------------------------------------------------------------------
       
    41 // CLanxBearer::ConstructL
       
    42 // -----------------------------------------------------------------------------
       
    43 //
       
    44 void  CLanxBearer::ConstructL()
       
    45 {
       
    46 }
       
    47 
       
    48 // -----------------------------------------------------------------------------
       
    49 // CLanxBearer::StartSending
       
    50 // -----------------------------------------------------------------------------
       
    51 //
       
    52 void CLanxBearer::StartSending(CProtocolBase* /*aProtocol*/)
       
    53 	{
       
    54     DEBUG("CLanxBearer::StartSending()");
       
    55 	
       
    56 	iUpperControl->StartSending();
       
    57 	}
       
    58 
       
    59 // -----------------------------------------------------------------------------
       
    60 // CLanxBearer::UpdateMACAddr
       
    61 // -----------------------------------------------------------------------------
       
    62 //
       
    63 void CLanxBearer::UpdateMACAddr()
       
    64 	{	
       
    65 	}
       
    66 
       
    67 
       
    68 // MLowerControl methods
       
    69 // -----------------------------------------------------------------------------
       
    70 // CLanxBearer::GetName
       
    71 // -----------------------------------------------------------------------------
       
    72 //
       
    73 
       
    74 TInt CLanxBearer::GetName(TDes& aName)
       
    75 	{
       
    76     DEBUG("CLanxBearer::GetName()");
       
    77 	
       
    78 	aName.Copy(iIfName);
       
    79 	return KErrNone;
       
    80 	}
       
    81 
       
    82 // -----------------------------------------------------------------------------
       
    83 // CLanxBearer::BlockFlow
       
    84 // -----------------------------------------------------------------------------
       
    85 //
       
    86 TInt CLanxBearer::BlockFlow(MLowerControl::TBlockOption /*aOption*/)
       
    87 	{
       
    88     DEBUG("CLanxBearer::BlockFlow()");
       
    89 	
       
    90 	return KErrNotSupported;
       
    91 	}
       
    92 
       
    93 //
       
    94 // Utilities
       
    95 // 
       
    96 // -----------------------------------------------------------------------------
       
    97 // CLanxBearer::SetUpperPointers
       
    98 // -----------------------------------------------------------------------------
       
    99 //
       
   100 void CLanxBearer::SetUpperPointers(MUpperDataReceiver* aReceiver, MUpperControl* aControl)
       
   101 	{
       
   102     DEBUG("CLanxBearer::SetUpperPointers()");
       
   103 	
       
   104 	ASSERT(iUpperReceiver == NULL && iUpperControl == NULL);
       
   105 	iUpperReceiver = aReceiver;
       
   106 	iUpperControl = aControl;
       
   107 	}
       
   108 
       
   109 // -----------------------------------------------------------------------------
       
   110 // CLanxBearer::MatchesUpperControl
       
   111 // -----------------------------------------------------------------------------
       
   112 //
       
   113 TBool CLanxBearer::MatchesUpperControl(const ESock::MUpperControl* aUpperControl) const
       
   114 /**
       
   115 Check whether the passed MUpperControl matches that associated with the current instance
       
   116 */
       
   117 	{
       
   118     DEBUG("CLanxBearer::MatchesUpperControl()");
       
   119 	
       
   120 	ASSERT(iUpperControl);
       
   121 	return iUpperControl == aUpperControl;
       
   122 	}
       
   123