diff -r 4b81101308c6 -r 5e5528a288fe bluetooth/btstack/linkmgr/ProxySAP.cpp --- a/bluetooth/btstack/linkmgr/ProxySAP.cpp Mon May 03 13:34:38 2010 +0300 +++ b/bluetooth/btstack/linkmgr/ProxySAP.cpp Fri May 14 16:59:23 2010 +0300 @@ -766,12 +766,12 @@ return; } - if (aDisconnectOption == KDisconnectAllPhysicalLinks) + if (aDisconnectOption == KDisconnectAllPhysicalLinks || aDisconnectOption == KDisconnectAllPhysicalLinksForPowerOff) { // Disconnecting All BT Physical Links // Only support link *termination*, this is done as normal cos esock weirdness __ASSERT_ALWAYS(aCloseType == CServProviderBase::ENormal, Panic(EBTProxySAPInvalidTerminate)); - rerr = iLinksMan.TerminateAllPhysicalLinks(this); + rerr = iLinksMan.TerminateAllPhysicalLinks(this, aDisconnectOption == KDisconnectAllPhysicalLinksForPowerOff ? ERemoteAboutToPowerOff : ERemoteUserEndedConnection); LOG2(_L("Proxy SAP 0x%08x -- Terminating all PHY Links, error: %d"), this, rerr); // If there was an error terminating any of the physical links then we can