bluetoothengine/bteng/src/btengsrvsettingsmgr.cpp
branchRCL_3
changeset 54 0ba996a9b75d
parent 16 b23265fb36da
child 55 613943a21004
equal deleted inserted replaced
53:eede1356aa52 54:0ba996a9b75d
   697     {
   697     {
   698     TRACE_FUNC_ENTRY
   698     TRACE_FUNC_ENTRY
   699     TRACE_INFO( ( _L( "[CBTEngSrvSettingsMgr]\t Using HCI API v2 power manager" ) ) )
   699     TRACE_INFO( ( _L( "[CBTEngSrvSettingsMgr]\t Using HCI API v2 power manager" ) ) )
   700     User::LeaveIfError( iPowerMgr.Open() );
   700     User::LeaveIfError( iPowerMgr.Open() );
   701 #ifndef __WINS__
   701 #ifndef __WINS__
   702     iPowerMgr.SetPower( EBTOff, NULL, iActive->RequestStatus() );
   702 
   703     User::WaitForRequest( iActive->RequestStatus() );
   703     TRequestStatus reqStatus;
   704     TInt status = ( iActive->RequestStatus().Int() == KErrAlreadyExists ? KErrNone : iActive->RequestStatus().Int() ); 
   704     iPowerMgr.SetPower( EBTOff, NULL, reqStatus );
       
   705     User::WaitForRequest( reqStatus );
       
   706     TInt status = ( reqStatus.Int() == KErrAlreadyExists ? KErrNone : reqStatus.Int() ); 
   705     User::LeaveIfError( status );
   707     User::LeaveIfError( status );
   706 #else   //__WINS__
   708 #else   //__WINS__
   707     iPowerState = EBTOff;
   709     iPowerState = EBTOff;
   708 #endif  //__WINS__
   710 #endif  //__WINS__
   709     TRACE_FUNC_EXIT
   711     TRACE_FUNC_EXIT