bluetooth/btstack/avdtp/avdtpLogicalChannelFactory.cpp
branchRCL_3
changeset 22 786b94c6f0a4
parent 0 29b1cd4cb562
equal deleted inserted replaced
21:14e240312f6f 22:786b94c6f0a4
  1294 	//   request a reliable channel
  1294 	//   request a reliable channel
  1295 	// - On any request for a transport channel we need to bump up the channel priority
  1295 	// - On any request for a transport channel we need to bump up the channel priority
  1296 	
  1296 	
  1297 	TPckgBuf<TL2CapConfig> configBuf;
  1297 	TPckgBuf<TL2CapConfig> configBuf;
  1298 	iLogicalChannelSAP->GetOption(KSolBtL2CAP, KL2CAPUpdateChannelConfig, configBuf);
  1298 	iLogicalChannelSAP->GetOption(KSolBtL2CAP, KL2CAPUpdateChannelConfig, configBuf);
  1299 
  1299 	if(!aPrecreatedSAP)
  1300 	if(iSequenceNumber != KInitialSequenceNumber)
       
  1301 		{
       
  1302 		configBuf().ConfigureChannelPriority(TL2CapConfig::EHigh);
       
  1303 		iLogicalChannelSAP->SetOption(KSolBtL2CAP, KL2CAPUpdateChannelConfig, configBuf);
       
  1304 		}
       
  1305 	else if(!aPrecreatedSAP)
       
  1306 		{
  1300 		{
  1307 		// FIXME consider value of rtx timer, should consider Tgavdp
  1301 		// FIXME consider value of rtx timer, should consider Tgavdp
  1308 		// Note: The 'rtx timer' actually sets max retransmit count instead [Piotr].
  1302 		// Note: The 'rtx timer' actually sets max retransmit count instead [Piotr].
  1309 		configBuf().ConfigureReliableChannel(500);
  1303 		configBuf().ConfigureReliableChannel(500);
  1310 		iLogicalChannelSAP->SetOption(KSolBtL2CAP, KL2CAPUpdateChannelConfig, configBuf);
  1304 		iLogicalChannelSAP->SetOption(KSolBtL2CAP, KL2CAPUpdateChannelConfig, configBuf);