--- a/bluetooth/btstack/linkmgr/hcifacade.cpp Wed Sep 15 13:27:26 2010 +0300
+++ b/bluetooth/btstack/linkmgr/hcifacade.cpp Wed Oct 13 15:48:34 2010 +0300
@@ -175,6 +175,19 @@
iAFHTimer=CAFHTimer::NewL(*this);
+ // Read low power mode override timeout from the configuration file
+ _LIT(KLPMSection, "lowpowermodeconfiguration");
+ _LIT(KLPMTag, "overridelpmtimeout_microseconds");
+
+ TUint overrideLPMTimeout = 0;
+ TRAP(err, overrideLPMTimeout = iHciUtil->GetValueFromFileL(KLPMSection, KLPMTag));
+
+ if (err == KErrNone)
+ {
+ // LPM override timeout found, pass the value into link manager
+ iLinkMgrProtocol.SetOverrideLPMTimeout(overrideLPMTimeout);
+ }
+
iLastPowerState = EBTOn;
// used later to ensure that we have enough data to call SetEventMask