localconnectivityservice/modematplugin/src/atcopscmd.cpp
changeset 29 ce4f184690c9
parent 26 d74a43a4aa59
equal deleted inserted replaced
28:ec1b007b6296 29:ce4f184690c9
   730                 CreateReply(EFalse); 
   730                 CreateReply(EFalse); 
   731                 }
   731                 }
   732             break; 
   732             break; 
   733         case ESetSystemNetworkBand: 
   733         case ESetSystemNetworkBand: 
   734         case EManuallyRegisterToNetworkAndChooseAccTech: 
   734         case EManuallyRegisterToNetworkAndChooseAccTech: 
   735             // Cannot set the access technology, so set it back to EAccTechNotSet. 
   735 			if(iRegistrationMode == EModeManualAutomatic)
   736             // This prevents replying to queries with outdated or incorrect acc tech information. 
   736                 {
   737             TRACE_INFO( _L("CATCOPSCmd::RunL() couldn't set system network band, so reset access tech."));
   737                 // Manual registration failed, try automatic next. 
   738             iAccTech = EAccTechNotSet; 
   738                 TRACE_INFO( _L("CATCOPSCmd::RunL() registration mode manual automatic, try automatic."));
   739             // Fall through to default, because these require an error response. 
   739                 AutomaticNetworkRegistration(); 
   740 
   740 				break;
       
   741                 }
       
   742             else 
       
   743                 {
       
   744 				// Cannot set the access technology, so set it back to EAccTechNotSet. 
       
   745 				// This prevents replying to queries with outdated or incorrect acc tech information. 
       
   746 				TRACE_INFO( _L("CATCOPSCmd::RunL() couldn't set system network band, so reset access tech."));
       
   747 				iAccTech = EAccTechNotSet; 
       
   748 				// Fall through to default, because these require an error response. 
       
   749 				}
   741         default: 
   750         default: 
   742             // In all other cases send back an error response. 
   751             // In all other cases send back an error response. 
   743             TRACE_INFO( _L("CATCOPSCmd::RunL() reply an error."));
   752             TRACE_INFO( _L("CATCOPSCmd::RunL() reply an error."));
   744             CreateReply(EFalse); 
   753             CreateReply(EFalse); 
   745             break; 
   754             break;