bluetooth/btstack/linkmgr/hcifacade.cpp
changeset 48 22de2e391156
parent 33 4e80e1b997a8
child 56 015fa7494bd2
equal deleted inserted replaced
35:14e279d2bbb7 48:22de2e391156
   173 		hciClientUsageCallback->MhcucSetClientUsage(*this);
   173 		hciClientUsageCallback->MhcucSetClientUsage(*this);
   174 		}
   174 		}
   175 
   175 
   176 	iAFHTimer=CAFHTimer::NewL(*this);
   176 	iAFHTimer=CAFHTimer::NewL(*this);
   177 	
   177 	
   178 	// Read low power mode override timeout from the configuration file
       
   179 	_LIT(KLPMSection, "lowpowermodeconfiguration");
       
   180 	_LIT(KLPMTag, "overridelpmtimeout_microseconds");
       
   181 
       
   182 	TUint overrideLPMTimeout = 0;
       
   183 	TRAP(err, overrideLPMTimeout = iHciUtil->GetValueFromFileL(KLPMSection, KLPMTag));
       
   184 	
       
   185 	if (err == KErrNone)
       
   186 		{
       
   187 		// LPM override timeout found, pass the value into link manager
       
   188 		iLinkMgrProtocol.SetOverrideLPMTimeout(overrideLPMTimeout);
       
   189 		}
       
   190 	
       
   191 	iLastPowerState = EBTOn;
   178 	iLastPowerState = EBTOn;
   192 	
   179 	
   193 	// used later to ensure that we have enough data to call SetEventMask
   180 	// used later to ensure that we have enough data to call SetEventMask
   194 	iReadLocalSupportedFeaturesComplete = EFalse;
   181 	iReadLocalSupportedFeaturesComplete = EFalse;
   195 	iReadLocalVersionComplete           = EFalse;
   182 	iReadLocalVersionComplete           = EFalse;