bluetooth/btstack/rfcomm/rfcommsap.cpp
branchRCL_3
changeset 13 16aa830c86c8
parent 8 2b6718f05bdb
--- 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<TUint> intpckg(iMTU - 1);
+				TPckgBuf<TUint> 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);