bthci/bthci2/hcicmdq/src/HciCmdQController.cpp
branchRCL_3
changeset 16 9f17f914e828
parent 0 29b1cd4cb562
equal deleted inserted replaced
14:f8503e232b0c 16:9f17f914e828
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
   322 			TUint consumed = iSendingCommand->Command().CreditsConsumed();
   322 			TUint consumed = iSendingCommand->Command().CreditsConsumed();
   323 			// Check if the vendor command has a completion event
   323 			// Check if the vendor command has a completion event
   324 			MHCICompletingEventQuery* completingEventInterface = NULL;
   324 			MHCICompletingEventQuery* completingEventInterface = NULL;
   325 			err = iSendingCommand->Command().Extension_(KCompletingEventExpectUid, reinterpret_cast<TAny*&>(completingEventInterface), NULL);
   325 			err = iSendingCommand->Command().Extension_(KCompletingEventExpectUid, reinterpret_cast<TAny*&>(completingEventInterface), NULL);
   326 			if( (err == KErrNone && !completingEventInterface->MhceqCompletingEventExpected()) ||
   326 			if( (err == KErrNone && !completingEventInterface->MhceqCompletingEventExpected()) ||
   327 				(err == KErrNotSupported && consumed == 0))
   327 				(err == KErrExtensionNotSupported && consumed == 0))
   328 				{
   328 				{
   329 				// Certain commands (e.g. the Number of Host Complete Packets
   329 				// Certain commands (e.g. the Number of Host Complete Packets
   330 				// command) use no credits and do not normally return any
   330 				// command) use no credits and do not normally return any
   331 				// event. In this case the command is not moved to the sent
   331 				// event. In this case the command is not moved to the sent
   332 				// queue to prevent it from continually growing.
   332 				// queue to prevent it from continually growing.