2409 } |
2409 } |
2410 else if ((tempMaxBitRate >= 1024) && (tempMaxBitRate < 2048)) |
2410 else if ((tempMaxBitRate >= 1024) && (tempMaxBitRate < 2048)) |
2411 { |
2411 { |
2412 aQoSGPRSNegotiated.iPeakThroughput = RPacketQoS::EPeakThroughput128000; |
2412 aQoSGPRSNegotiated.iPeakThroughput = RPacketQoS::EPeakThroughput128000; |
2413 } |
2413 } |
2414 else |
2414 else |
2415 { |
2415 { |
2416 aQoSGPRSNegotiated.iPeakThroughput = RPacketQoS::EPeakThroughput256000; |
2416 aQoSGPRSNegotiated.iPeakThroughput = RPacketQoS::EPeakThroughput256000; |
2417 } |
2417 } |
2418 |
2418 |
2419 /* Traffic handling priority to precedence */ |
2419 /* Traffic handling priority to precedence */ |
2420 switch (aQoSR99_R4Negotiated.iTrafficHandlingPriority) |
2420 switch (aQoSR99_R4Negotiated.iTrafficHandlingPriority) |
2421 { |
2421 { |
2422 case RPacketQoS::ETrafficPriority1: |
2422 case RPacketQoS::ETrafficPriority1: |
2423 aQoSGPRSNegotiated.iPrecedence = RPacketQoS::EPriorityHighPrecedence; |
2423 aQoSGPRSNegotiated.iPrecedence = RPacketQoS::EPriorityHighPrecedence; |
2630 |
2630 |
2631 void CPacketServicesDispatcher::ConvertDNSToPCOBuffer |
2631 void CPacketServicesDispatcher::ConvertDNSToPCOBuffer |
2632 (const TDes8& aPrimaryDNS, const TDes8& aSecondaryDNS, const TUint8 aRequestID, TDes8& aFormatPcoBufferAddr) |
2632 (const TDes8& aPrimaryDNS, const TDes8& aSecondaryDNS, const TUint8 aRequestID, TDes8& aFormatPcoBufferAddr) |
2633 { |
2633 { |
2634 |
2634 |
2635 // Handle Primary DNS address |
2635 // Handle Primary DNS address |
2636 TInetAddr netPrimaryDNS; |
2636 TInetAddr netPrimaryDNS; |
2637 TBuf<32> netPrimaryDNSConv; |
2637 TBuf<32> netPrimaryDNSConv; |
2638 netPrimaryDNSConv.Copy(aPrimaryDNS); |
2638 netPrimaryDNSConv.Copy(aPrimaryDNS); |
2639 // coverity[check_return] |
2639 netPrimaryDNS.Input(netPrimaryDNSConv); |
2640 netPrimaryDNS.Input(netPrimaryDNSConv); |
2640 TUint32 primDNSaddr = netPrimaryDNS.Address(); |
2641 TUint32 primDNSaddr = netPrimaryDNS.Address(); |
2641 |
2642 |
2642 // Handle Secondary DNS address |
2643 // Handle Secondary DNS address |
2643 TInetAddr netSecondaryDNS; |
2644 TInetAddr netSecondaryDNS; |
2644 TBuf<32> netSecondaryDNSConv; |
2645 TBuf<32> netSecondaryDNSConv; |
2645 netSecondaryDNSConv.Copy(aSecondaryDNS); |
2646 netSecondaryDNSConv.Copy(aSecondaryDNS); |
2646 netSecondaryDNS.Input(netSecondaryDNSConv); |
2647 // coverity[check_return] |
2647 TUint32 secondaryDNSaddr = netSecondaryDNS.Address(); |
2648 netSecondaryDNS.Input(netSecondaryDNSConv); |
|
2649 TUint32 secondaryDNSaddr = netSecondaryDNS.Address(); |
|
2650 |
2648 |
2651 aFormatPcoBufferAddr[0] = KPrimaryAndSecondaryDNSLength; // Length |
2649 aFormatPcoBufferAddr[0] = KPrimaryAndSecondaryDNSLength; // Length |
2652 aFormatPcoBufferAddr[1] = KIPCRequestCode; // IPC PRequest Code |
2650 aFormatPcoBufferAddr[1] = KIPCRequestCode; // IPC PRequest Code |
2653 aFormatPcoBufferAddr[2] = aRequestID; // Request ID (CHAP challenge) |
2651 aFormatPcoBufferAddr[2] = aRequestID; // Request ID (CHAP challenge) |
2654 aFormatPcoBufferAddr[3] = KPacketLengthMSB; // Packet length MSB (always zero) |
2652 aFormatPcoBufferAddr[3] = KPacketLengthMSB; // Packet length MSB (always zero) |