--- a/bluetooth/btstack/rfcomm/rfcommflow.cpp Mon May 03 13:34:38 2010 +0300
+++ b/bluetooth/btstack/rfcomm/rfcommflow.cpp Fri May 14 16:59:23 2010 +0300
@@ -107,9 +107,9 @@
**/
{
LOG_FUNC
- __ASSERT_DEBUG(aSAP.NegotiatedMTU(), Panic(ERfcommBadCalculatedMTU));
+ __ASSERT_DEBUG(aSAP.OptimalMTUForSending(), Panic(ERfcommBadCalculatedMTU));
- return aSAP.NegotiatedMTU();
+ return aSAP.OptimalMTUForSending();
}
TBool TRfcommFlowStrategyInitial::AllowWrite(CRfcommSAP& /*aSAP*/)
@@ -372,10 +372,10 @@
**/
{
LOG_FUNC
- __ASSERT_DEBUG(aSAP.NegotiatedMTU(), Panic(ERfcommBadCalculatedMTU));
+ __ASSERT_DEBUG(aSAP.OptimalMTUForSending(), Panic(ERfcommBadCalculatedMTU));
//Allow for possible credit in header.
- return (STATIC_CAST(TUint16, (aSAP.NegotiatedMTU() - (aCredit?1:0))));
+ return (STATIC_CAST(TUint16, (aSAP.OptimalMTUForSending() - (aCredit?1:0))));
}
TBool TRfcommFlowStrategyCreditBased::AllowWrite(CRfcommSAP& aSAP)