equal
deleted
inserted
replaced
397 TRACE_FUNC |
397 TRACE_FUNC |
398 if (iHandleCmdPending) |
398 if (iHandleCmdPending) |
399 { |
399 { |
400 return; |
400 return; |
401 } |
401 } |
402 TBuf8<KMaxATSize> cmddes; |
402 TBuf8<KDefaultCmdBufLength> cmddes; |
403 if (iInDataBuf.NextCommand(cmddes)) |
403 if (iInDataBuf.NextCommand(cmddes)) |
404 { |
404 { |
405 return; |
405 return; |
406 } |
406 } |
407 if (cmddes.Length() == 0) |
407 if (cmddes.Length() == 0) |
408 { |
408 { |
409 return; |
409 return; |
410 } |
410 } |
411 TRACE_INFO_SEG( |
411 TRACE_INFO_SEG( |
412 { |
412 { |
413 TBuf8<KMaxATSize> buf; |
413 TBuf8<KDefaultCmdBufLength> buf; |
414 buf = cmddes; |
414 buf = cmddes; |
415 buf.Trim(); |
415 buf.Trim(); |
416 Trace(_L8("[HFP] [I] %S"), &buf); |
416 Trace(_L8("[HFP] [I] %S"), &buf); |
417 }) |
417 }) |
418 |
418 |
1081 TRACE_INFO((_L("credit %d"), iCredit)) |
1081 TRACE_INFO((_L("credit %d"), iCredit)) |
1082 TInt count = iOutgoPacketQueue->MdcaCount(); |
1082 TInt count = iOutgoPacketQueue->MdcaCount(); |
1083 for (TInt i = 0; iCredit >0 && i < count; i++) |
1083 for (TInt i = 0; iCredit >0 && i < count; i++) |
1084 { |
1084 { |
1085 iCredit--; |
1085 iCredit--; |
1086 TBuf8<KMaxATSize> buf; |
1086 TBuf8<KDefaultCmdBufLength> buf; |
1087 buf.Copy(iOutgoPacketQueue->MdcaPoint(0)); |
1087 buf.Copy(iOutgoPacketQueue->MdcaPoint(0)); |
1088 iObserver.SendProtocolDataL(buf); |
1088 iObserver.SendProtocolDataL(buf); |
1089 iOutgoPacketQueue->Delete(0); |
1089 iOutgoPacketQueue->Delete(0); |
1090 } |
1090 } |
1091 } |
1091 } |
1197 } |
1197 } |
1198 DoSendProtocolDataL(); |
1198 DoSendProtocolDataL(); |
1199 } |
1199 } |
1200 } |
1200 } |
1201 |
1201 |
1202 void CBtmcProtocol::ATExtHandleCommandCompletedL(TInt aErr, const TDesC8& aReply) |
1202 void CBtmcProtocol::ATExtHandleReplyReceivedL(TInt aErr, const TDesC8& aReply) |
1203 { |
1203 { |
1204 TRACE_FUNC |
1204 TRACE_FUNC |
1205 if(aErr) |
1205 if(aErr) |
1206 { |
1206 { |
1207 CATResult* nok = CATResult::NewLC(EATERROR); |
1207 CATResult* nok = CATResult::NewLC(EATERROR); |