diff -r 4e80e1b997a8 -r 9d84592f5036 bluetooth/btstack/l2cap/l2sap.cpp --- 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(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,