--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/wlan_bearer/wlanldd/wlan_common/umac_common/inc/umacpacketscheduler.inl Tue Feb 02 02:03:13 2010 +0200
@@ -0,0 +1,83 @@
+/*
+* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: The one and only packet scheduler
+*
+*/
+
+/*
+* %version: 9 %
+*/
+
+// ---------------------------------------------------------------------------
+//
+// ---------------------------------------------------------------------------
+//
+inline TBool WlanPacketScheduler::UnsentPackets() const
+ {
+ return ( iNumOfNotCompletedPackets > 0 );
+ }
+
+// ---------------------------------------------------------------------------
+//
+// ---------------------------------------------------------------------------
+//
+inline void WlanPacketScheduler::TranmsitQueueFull(
+ WHA::TQueueId aQueueId )
+ {
+ iQueueStates[aQueueId] = EQueueFull;
+ }
+
+// ---------------------------------------------------------------------------
+//
+// ---------------------------------------------------------------------------
+//
+inline void WlanPacketScheduler::StopTxPipeLine()
+ {
+ iTxPipelineActive = EFalse;
+ }
+
+// ---------------------------------------------------------------------------
+//
+// ---------------------------------------------------------------------------
+//
+inline void WlanPacketScheduler::StartTxPipeLine()
+ {
+ iTxPipelineActive = ETrue;
+ }
+
+// ---------------------------------------------------------------------------
+//
+// ---------------------------------------------------------------------------
+//
+inline TBool WlanPacketScheduler::Full() const
+ {
+ return (iNumOfPackets == KNumOfElements);
+ }
+
+// -----------------------------------------------------------------------------
+//
+// -----------------------------------------------------------------------------
+//
+inline TUint WlanPacketScheduler::Priority( WHA::TQueueId aQueueId)
+ {
+ // Defines a priority for every WHA Queue
+ const TUint KWhaQueuePriorityTable[] =
+ { 1, // priority of WHA::ELegacy
+ 0, // priority of WHA::EBackGround
+ 2, // priority of WHA::EVideo
+ 3 // priority of WHA::EVoice
+ };
+
+ return KWhaQueuePriorityTable[aQueueId];
+ }