bluetooth/btstack/l2cap/l2sap.cpp
changeset 34 9d84592f5036
parent 16 0089b2f7ebd8
child 51 20ac952a623c
child 56 015fa7494bd2
--- a/bluetooth/btstack/l2cap/l2sap.cpp	Mon Jul 12 07:03:47 2010 +0300
+++ b/bluetooth/btstack/l2cap/l2sap.cpp	Mon Jul 12 07:06:31 2010 +0300
@@ -435,7 +435,7 @@
 		case KL2CAPUpdateChannelConfig:
 			{
 			const TL2CapConfig apiConf = *reinterpret_cast<const TL2CapConfig*>(aOption.Ptr());
-			return iL2CapSAPSignalHandler->UpdateChannelConfig(apiConf);
+            return UpdateChannelConfig(apiConf);
 			}
 			
 		// Can't set these
@@ -1084,6 +1084,11 @@
 
 	if(dataConfig)
 		{
+		// if UpdateChannelConfig was called before iL2CapDataQueue was created we update the priority now
+		if (iChannelPriority != 0)
+			{
+			dataConfig->SetChannelPriority(iChannelPriority);
+			}
 		TRAP(rerr, iL2CapDataQueue = CL2CapSDUQueue::NewL(*this,
 		                                                  aLocalPort,
 		                                                  aRemotePort,