1 /* |
1 /* |
2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2008-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". |
40 |
40 |
41 /** Dtor */ |
41 /** Dtor */ |
42 virtual ~WlanDeepPsModePowerModeMgr(); |
42 virtual ~WlanDeepPsModePowerModeMgr(); |
43 |
43 |
44 /** |
44 /** |
|
45 * Sets the dynamic power mode transition algorithm parameters |
|
46 * |
|
47 * @param aUapsdRxFrameLengthThreshold received frame |
|
48 * payload length (in bytes) threshold in U-APSD network |
|
49 */ |
|
50 void SetParameters( TUint16 aUapsdRxFrameLengthThreshold ); |
|
51 |
|
52 /** |
45 * To be called when transmitting a frame |
53 * To be called when transmitting a frame |
46 * |
54 * |
47 * @since S60 5.1 |
55 * @since S60 5.1 |
48 * Determines the need to make a power mode transition |
56 * Determines the need to make a power mode transition |
49 * @param aCtxImpl global statemachine context |
57 * @param aCtxImpl global statemachine context |
50 * @param aQueueId Id of the queue/AC via which the frame will be transmitted |
58 * @param aQueueId Id of the queue/AC via which the frame will be transmitted |
51 * @param aEtherType Ethernet type of the frame |
59 * @param aEtherType Ethernet type of the frame |
|
60 * @param aDot11FrameType 802.11 frame type |
52 * @param aIgnoreThisFrame shall this frame be ignored from dynamic power |
61 * @param aIgnoreThisFrame shall this frame be ignored from dynamic power |
53 * mode management perspective |
62 * mode management perspective |
54 * @return To which power management mode to change; if any at all |
63 * @return To which power management mode to change; if any at all |
55 */ |
64 */ |
56 virtual TPowerMgmtModeChange OnFrameTx( |
65 virtual TPowerMgmtModeChange OnFrameTx( |
57 WlanContextImpl& aCtxImpl, |
66 WlanContextImpl& aCtxImpl, |
58 WHA::TQueueId aQueueId, |
67 WHA::TQueueId aQueueId, |
59 TUint16 aEtherType, |
68 TUint16 aEtherType, |
|
69 T802Dot11FrameControlTypeMask aDot11FrameType, |
60 TBool aIgnoreThisFrame ); |
70 TBool aIgnoreThisFrame ); |
61 |
71 |
62 /** |
72 /** |
63 * To be called when accepting an Rx frame |
73 * To be called when accepting an Rx frame |
64 * |
74 * |
78 TUint16 aEtherType, |
88 TUint16 aEtherType, |
79 TBool aIgnoreThisFrame, |
89 TBool aIgnoreThisFrame, |
80 TUint aPayloadLength, |
90 TUint aPayloadLength, |
81 TDaType aDaType ); |
91 TDaType aDaType ); |
82 |
92 |
|
93 /** |
|
94 * From WlanPowerModeMgrBase |
|
95 * To be called upon receiving the PS Mode Error indication |
|
96 * Determines the need to make a power mode transition |
|
97 * |
|
98 * @return To which power management mode to change; if any at all |
|
99 */ |
|
100 virtual TPowerMgmtModeChange OnPsModeErrorIndication(); |
|
101 |
83 /** |
102 /** |
84 * From WlanPowerModeMgrBase |
103 * From WlanPowerModeMgrBase |
85 * Resets the state of the object |
104 * Resets the state of the object |
86 * |
105 * |
87 * @since S60 5.1 |
106 * @since S60 5.1 |