# HG changeset patch # User hgs # Date 1276173894 -10800 # Node ID 682dd021f9bebdda254b8b757ce4b3c84154ca1c # Parent f54b8905a6ee1ccfb88429d47b4b332c81280270 201023 diff -r f54b8905a6ee -r 682dd021f9be hotspotfw/hsclient/inc/hssiaphandler.h --- a/hotspotfw/hsclient/inc/hssiaphandler.h Thu May 27 13:55:50 2010 +0300 +++ b/hotspotfw/hsclient/inc/hssiaphandler.h Thu Jun 10 15:44:54 2010 +0300 @@ -109,6 +109,12 @@ void ConvertAsciiToHex( const TDes8& aSource, HBufC8*& aDest ); + /** + * Removes brackets from UID + * @param aUid, UID of the client + */ + void ModifyClientUid( TDes& aUid ); + private: // Data /** diff -r f54b8905a6ee -r 682dd021f9be hotspotfw/hsclient/src/hssiaphandler.cpp --- a/hotspotfw/hsclient/src/hssiaphandler.cpp Thu May 27 13:55:50 2010 +0300 +++ b/hotspotfw/hsclient/src/hssiaphandler.cpp Thu Jun 10 15:44:54 2010 +0300 @@ -371,8 +371,11 @@ { DEBUG("CHssIapSettingsHandler::GetClientsIapsL"); TBuf<32> buffer; // Temporary buffer for found UID from destination. - TUidName uidClient = aUId.Name(); // UID of the client. TUint32 iapId = 0; // IAP Identifiier. + TBuf uidClient; // UID of the client. + + uidClient.Copy( aUId.Name() ); + ModifyClientUid( uidClient ); RArray destArray = RArray( 10 ); // KCmArrayGranularity instead of 10 CleanupClosePushL( destArray ); @@ -424,4 +427,23 @@ CleanupStack::PopAndDestroy( &destArray ); } +// ----------------------------------------------------------------------------- +// ModifyClientUid +// ----------------------------------------------------------------------------- +// +void CHssIapHandler::ModifyClientUid( TDes& aUid ) + { + DEBUG("CHssIapHandler::ModifyClientUid"); + TInt indx = aUid.Find( KMark1 ); + if ( KErrNotFound != indx ) + { + aUid.Delete( indx, 1 ); + indx = aUid.Find( KMark2 ); + if ( KErrNotFound != indx ) + { + aUid.Delete( indx, 1 ); + } + } + } + // End of File