755 InitiateSecondaryStartL(); |
755 InitiateSecondaryStartL(); |
756 |
756 |
757 #ifndef SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY |
757 #ifndef SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY |
758 WaitForQoSEventL(_L("SecondaryActivationEvent2"),_L("SecondaryActivationEvent2Reason")); |
758 WaitForQoSEventL(_L("SecondaryActivationEvent2"),_L("SecondaryActivationEvent2Reason")); |
759 #else |
759 #else |
760 User::After(KTimeToStartSecondary); |
760 User::After(KTimeToStartSecondary*4); |
761 VerifySubconnectionCountL(_L("SubConnectionCount2"), iap); |
761 VerifySubconnectionCountL(_L("SubConnectionCount2"), iap); |
762 #endif |
762 #endif |
763 } |
763 } |
764 |
764 |
765 #ifdef SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY |
765 #ifdef SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY |
1143 { |
1143 { |
1144 User::Leave(KErrNotFound); |
1144 User::Leave(KErrNotFound); |
1145 } |
1145 } |
1146 |
1146 |
1147 StartPrimaryOnlyL(); |
1147 StartPrimaryOnlyL(); |
1148 |
1148 User::After(KTimeToStartSecondary); |
1149 |
1149 |
1150 TRequestStatus progressReqSt; |
1150 TRequestStatus progressReqSt; |
1151 iInterface.ProgressNotification(iProgressBuf, progressReqSt, static_cast<TUint>(expProgress)); |
1151 iInterface.ProgressNotification(iProgressBuf, progressReqSt, static_cast<TUint>(expProgress)); |
1152 |
1152 |
1153 EtelRequestL(request, idx); // Will fire after we register for notifications |
1153 EtelRequestL(request, idx); // Will fire after we register for notifications |
1959 TestL(status.Int(), _L("Connecting to local socket for the primary context")); |
1959 TestL(status.Int(), _L("Connecting to local socket for the primary context")); |
1960 |
1960 |
1961 // start a secondary context with QoS parameters connected to the same address as above |
1961 // start a secondary context with QoS parameters connected to the same address as above |
1962 // it will use the iSocket member variable to connect to the address |
1962 // it will use the iSocket member variable to connect to the address |
1963 |
1963 |
|
1964 |
|
1965 TInt defaultIapID = 2; |
|
1966 //the default IapID is usually defined in commsdb with value of 2. |
|
1967 //this allows us to change the default IapID, as in R4_and_R5 test the default ID is 11. |
|
1968 if(!GetIntFromConfig(ConfigSection(), _L("DefaultIapId"), defaultIapID)) |
|
1969 { |
|
1970 defaultIapID = PDPIAP; |
|
1971 } |
|
1972 |
1964 #ifdef SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY |
1973 #ifdef SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY |
1965 User::After(10*KTimeToStartSecondary); |
1974 User::After(10*KTimeToStartSecondary); |
1966 VerifySubconnectionCountL(_L("SubConnectionCount1"), PDPIAP); |
1975 VerifySubconnectionCountL(_L("SubConnectionCount1"), defaultIapID); |
1967 #endif |
1976 #endif |
1968 InitiateSecondaryStartL(); |
1977 InitiateSecondaryStartL(); |
1969 |
1978 |
1970 TInt oppositeSecondaryIapId; |
1979 TInt oppositeSecondaryIapId; |
1971 TestBooleanTrueL(GetIntFromConfig(ConfigSection(), _L("IapId"), oppositeSecondaryIapId), _L("Get Iap ID for the rawipnif instance opposite the secondary context")); |
1980 TestBooleanTrueL(GetIntFromConfig(ConfigSection(), _L("IapId"), oppositeSecondaryIapId), _L("Get Iap ID for the rawipnif instance opposite the secondary context")); |
1974 CConnectionStart *secondaryIfStart = CConnectionStart::NewLC(iEsock, *this, oppositeSecondaryIapId); |
1983 CConnectionStart *secondaryIfStart = CConnectionStart::NewLC(iEsock, *this, oppositeSecondaryIapId); |
1975 #ifndef SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY |
1984 #ifndef SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY |
1976 WaitForQoSEventL(_L("SecondaryActivationEvent2"), _L("SecondaryActivationEvent2Reason")); |
1985 WaitForQoSEventL(_L("SecondaryActivationEvent2"), _L("SecondaryActivationEvent2Reason")); |
1977 #else |
1986 #else |
1978 User::After(KTimeToStartSecondary); |
1987 User::After(KTimeToStartSecondary); |
1979 VerifySubconnectionCountL(_L("SubConnectionCount2"), PDPIAP); |
1988 VerifySubconnectionCountL(_L("SubConnectionCount2"), defaultIapID); |
1980 #endif |
1989 #endif |
1981 |
1990 |
1982 RSocket oppositeSecondarySocket; |
1991 RSocket oppositeSecondarySocket; |
1983 TestL(oppositeSecondarySocket.Open(iEsock, KAfInet, KSockDatagram, KProtocolInetUdp, secondaryIfStart->iInterface), _L("Opening socket opposite secondary context")); |
1992 TestL(oppositeSecondarySocket.Open(iEsock, KAfInet, KSockDatagram, KProtocolInetUdp, secondaryIfStart->iInterface), _L("Opening socket opposite secondary context")); |
1984 CleanupClosePushL<RSocket>(oppositeSecondarySocket); |
1993 CleanupClosePushL<RSocket>(oppositeSecondarySocket); |