supl/locationsuplfw/gateway/src/epos_csuplnetinitiatedsession.cpp
branchRCL_3
changeset 16 6fcbaa43369c
parent 12 f3bd2a0973b9
child 44 2b4ea9893b66
--- a/supl/locationsuplfw/gateway/src/epos_csuplnetinitiatedsession.cpp	Mon Mar 15 12:42:19 2010 +0200
+++ b/supl/locationsuplfw/gateway/src/epos_csuplnetinitiatedsession.cpp	Wed Mar 31 22:18:21 2010 +0300
@@ -67,13 +67,22 @@
     	suplService = RSuplTerminalSubSession::ESUPL_1_0;
     
     iSuplSession = aSessnMgr.CreateNewSessionL(aReqType, 0, suplService );
-    
     if (iSuplSession)
-    {
+    {	
     iSuplSession->SetSUPLVersion(majorVersion);
     iSuplSessnReq = CSuplSessionRequest::NewL(aSessnMgr, iSuplSession, aServer);
-    }
-  
+    }  
+    else
+    	if (!iSuplSession && suplService == RSuplTerminalSubSession::ESUPL_2_0)
+    		{
+    			 suplService = RSuplTerminalSubSession::ESUPL_1_0;
+    			 iSuplSession = aSessnMgr.CreateNewSessionL(aReqType, 0, suplService );
+    					if (iSuplSession)
+   						 {	
+   						 iSuplSession->SetSUPLVersion(majorVersion);
+    					 iSuplSessnReq = CSuplSessionRequest::NewL(aSessnMgr, iSuplSession, aServer);
+    					 }
+    		}
 
     }