diff -r 962e6306d9d2 -r 7ef16719d8cb telephonyserverplugins/common_tsy/commontsy/src/mmtsy/cmmnettsy.cpp --- a/telephonyserverplugins/common_tsy/commontsy/src/mmtsy/cmmnettsy.cpp Fri Feb 19 23:59:33 2010 +0200 +++ b/telephonyserverplugins/common_tsy/commontsy/src/mmtsy/cmmnettsy.cpp Fri Mar 12 15:49:38 2010 +0200 @@ -2124,12 +2124,25 @@ } else { - //get mode specific information - TInt ret ( iMmPhoneTsy->iMmPhoneExtInterface-> - GetNetworkRegistrationStatusL() ); + TInt ret(KErrGeneral); + // verify that modem is ready + if ( iMmPhoneTsy->IsModemStatusReady() ) + { + //get mode specific information + TFLOGSTRING("TSY: CMmNetTsy::GetNetworkRegistrationStatusL - Sending request to LTSY" ); + ret = iMmPhoneTsy->iMmPhoneExtInterface-> + GetNetworkRegistrationStatusL(); + } + else + { + // modem is not ready. Client to be completed with error code. + TFLOGSTRING("TSY: CMmNetTsy::GetNetworkRegistrationStatusL - Modem not ready" ); + ret = KErrNotReady; + } if ( KErrNone != ret ) { + TFLOGSTRING2("TSY: CMmNetTsy::GetNetworkRegistrationStatusL - Complete with error %d", ret ); iMmPhoneTsy->ReqCompleted( aTsyReqHandle, ret ); } else