wlan_bearer/wlanldd/wlan_common/umac_common/src/umacdot11infrastructurenormalmode.cpp
branchRCL_3
changeset 14 13838cf40350
parent 0 c40eb8fe8501
equal deleted inserted replaced
12:af3fb27c7511 14:13838cf40350
     1 /*
     1 /*
     2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2005-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 the License "Eclipse Public License v1.0"
     5 * under the terms of the License "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".
    15 *                class.
    15 *                class.
    16 *
    16 *
    17 */
    17 */
    18 
    18 
    19 /*
    19 /*
    20 * %version: 14 %
    20 * %version: 15 %
    21 */
    21 */
    22 
    22 
    23 #include "config.h"
    23 #include "config.h"
    24 #include "umacdot11infrastructurenormalmode.h"
    24 #include "umacdot11infrastructurenormalmode.h"
    25 #include "UmacContextImpl.h"
    25 #include "UmacContextImpl.h"
    54 
    54 
    55 // ---------------------------------------------------------------------------
    55 // ---------------------------------------------------------------------------
    56 // 
    56 // 
    57 // ---------------------------------------------------------------------------
    57 // ---------------------------------------------------------------------------
    58 //
    58 //
       
    59 void WlanDot11InfrastructureNormalMode::DoPsModeErrorIndication( 
       
    60     WlanContextImpl& aCtxImpl )
       
    61     {
       
    62     OsTracePrint( KWlmIndication, (TUint8*)
       
    63         ("UMAC: WlanDot11InfrastructureMode::DoPsModeErrorIndication") );
       
    64     
       
    65     // as the lower layers indicate that there is a problem with the PS
       
    66     // operation of the current AP, we want to be in CAM mode for as long
       
    67     // as there's data activity. So, check if we need a mode change to be
       
    68     // in CAM now
       
    69     const TPowerMgmtModeChange KPowerMgmtModeChange ( 
       
    70         aCtxImpl.OnPsModeErrorIndication() );
       
    71     
       
    72     // if any change is needed regarding our power mgmt mode,
       
    73     // proceed with it
       
    74     PowerMgmtModeChange( aCtxImpl, KPowerMgmtModeChange );
       
    75     }
       
    76 
       
    77 // ---------------------------------------------------------------------------
       
    78 // 
       
    79 // ---------------------------------------------------------------------------
       
    80 //
    59 TBool WlanDot11InfrastructureNormalMode::OnActiveToLightPsTimerTimeout( 
    81 TBool WlanDot11InfrastructureNormalMode::OnActiveToLightPsTimerTimeout( 
    60     WlanContextImpl& aCtxImpl )
    82     WlanContextImpl& aCtxImpl )
    61     {
    83     {
    62     TBool statechange( EFalse );
    84     TBool statechange( EFalse );
    63 
    85