bluetooth/btstack/rfcomm/rfcommsap.cpp
changeset 33 4e80e1b997a8
parent 16 0089b2f7ebd8
--- a/bluetooth/btstack/rfcomm/rfcommsap.cpp	Mon May 03 13:34:38 2010 +0300
+++ b/bluetooth/btstack/rfcomm/rfcommsap.cpp	Mon Jul 12 07:03:47 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);