diff -r 9b6d3ca0c601 -r 16aa830c86c8 bluetooth/btstack/rfcomm/rfcommsap.cpp --- a/bluetooth/btstack/rfcomm/rfcommsap.cpp Wed Mar 31 23:19:43 2010 +0300 +++ b/bluetooth/btstack/rfcomm/rfcommsap.cpp Wed Apr 14 17:08:52 2010 +0300 @@ -345,7 +345,7 @@ if (iMux) { // Allow for possible credit in header, 1 byte - TPckgBuf intpckg(iMTU - 1); + TPckgBuf intpckg(iOptimalMTUForSending - 1); aOption=intpckg; return KErrNone; } @@ -478,9 +478,15 @@ TUint16 CRfcommSAP::NegotiatedMTU() const { - return iMTU; + return iNegotiatedMTU; } +TUint16 CRfcommSAP::OptimalMTUForSending() const + { + return iOptimalMTUForSending; + } + + TUint16 CRfcommSAP::UsableMTU(TUint8 aCredit) const { return iMux->FlowStrategy()->UsableMTU(*this, aCredit);