81 if( aCellInfo.iWcdmaCellInfo.iNwkMeasureReport[0].iCellMeasuredResult[0].iCID != -1 ) |
81 if( aCellInfo.iWcdmaCellInfo.iNwkMeasureReport[0].iCellMeasuredResult[0].iCID != -1 ) |
82 { |
82 { |
83 if( !iCellIdArray.Count() || |
83 if( !iCellIdArray.Count() || |
84 iCellIdArray.Find( aCellInfo.iWcdmaCellInfo.iNwkMeasureReport[0].iCellMeasuredResult[0].iCID ) == KErrNotFound ) |
84 iCellIdArray.Find( aCellInfo.iWcdmaCellInfo.iNwkMeasureReport[0].iCellMeasuredResult[0].iCID ) == KErrNotFound ) |
85 { |
85 { |
86 iCellIdArray.Append( aCellInfo.iWcdmaCellInfo.iNwkMeasureReport[0].iCellMeasuredResult[0].iCID ); |
86 TInt error = iCellIdArray.Append( aCellInfo.iWcdmaCellInfo.iNwkMeasureReport[0].iCellMeasuredResult[0].iCID ); |
|
87 if( error != KErrNone ) |
|
88 { |
|
89 LOG1("Failed to append cell id into the array:%d",error); |
|
90 } |
87 } |
91 } |
88 TWcdmaNMR wcdmaNMR; |
92 TWcdmaNMR wcdmaNMR; |
89 // Only current cell reading are considered for calculation. |
93 // Only current cell reading are considered for calculation. |
90 wcdmaNMR.iCarrierRSSI = aCellInfo.iWcdmaCellInfo.iNwkMeasureReport[0].iCarrierRSSI; |
94 wcdmaNMR.iCarrierRSSI = aCellInfo.iWcdmaCellInfo.iNwkMeasureReport[0].iCarrierRSSI; |
91 wcdmaNMR.iCpichEcN0 = aCellInfo.iWcdmaCellInfo.iNwkMeasureReport[0].iCellMeasuredResult[0].iFddInfo.iCpichEcN0; |
95 wcdmaNMR.iCpichEcN0 = aCellInfo.iWcdmaCellInfo.iNwkMeasureReport[0].iCellMeasuredResult[0].iFddInfo.iCpichEcN0; |
92 wcdmaNMR.iCpichRscp = aCellInfo.iWcdmaCellInfo.iNwkMeasureReport[0].iCellMeasuredResult[0].iFddInfo.iCpichRscp; |
96 wcdmaNMR.iCpichRscp = aCellInfo.iWcdmaCellInfo.iNwkMeasureReport[0].iCellMeasuredResult[0].iFddInfo.iCpichRscp; |
93 wcdmaNMR.iPathloss = aCellInfo.iWcdmaCellInfo.iNwkMeasureReport[0].iCellMeasuredResult[0].iFddInfo.iPathloss; |
97 wcdmaNMR.iPathloss = aCellInfo.iWcdmaCellInfo.iNwkMeasureReport[0].iCellMeasuredResult[0].iFddInfo.iPathloss; |
94 |
98 |
95 iWcdmaNMR.Append( wcdmaNMR ); |
99 TInt error = iWcdmaNMR.Append( wcdmaNMR ); |
|
100 if( error != KErrNone ) |
|
101 { |
|
102 LOG1("Failed to append WCDMA NMR info:%d",error); |
|
103 } |
96 } |
104 } |
97 } |
105 } |
98 } |
106 } |
99 |
107 |
100 //------------------------------------------------------------ |
108 //------------------------------------------------------------ |