equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of the License "Eclipse Public License v1.0" |
5 * under the terms of the License "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
14 * Description: Implementation of the Umac class |
14 * Description: Implementation of the Umac class |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 /* |
18 /* |
19 * %version: 54 % |
19 * %version: 55 % |
20 */ |
20 */ |
21 |
21 |
22 #include "config.h" |
22 #include "config.h" |
23 #include "UmacContextImpl.h" |
23 #include "UmacContextImpl.h" |
24 |
24 |
517 ("Umac::HandleConnect: invalidateGroupKey (bool): %d"), |
517 ("Umac::HandleConnect: invalidateGroupKey (bool): %d"), |
518 msg->invalidateGroupKey ); |
518 msg->invalidateGroupKey ); |
519 OsTracePrint( KWlmCmdDetails, (TUint8*) |
519 OsTracePrint( KWlmCmdDetails, (TUint8*) |
520 ("Umac::HandleConnect: radiomeasurement (bool): %d"), |
520 ("Umac::HandleConnect: radiomeasurement (bool): %d"), |
521 msg->radioMeasurement ); |
521 msg->radioMeasurement ); |
|
522 OsTracePrint( KWlmCmdDetails, (TUint8*) |
|
523 ("Umac::HandleConnect: pairwise key length: %d"), |
|
524 msg->pairwiseKey.length ); |
522 #endif // !NDEBUG |
525 #endif // !NDEBUG |
523 |
526 |
524 // make sure that these are clear when starting the connect operation |
527 // make sure that these are clear when starting the connect operation |
525 // |
528 // |
526 iPimpl->SetScanResponseFrameBodyLength( 0 ); |
529 iPimpl->SetScanResponseFrameBodyLength( 0 ); |
539 |
542 |
540 iPimpl->PairwiseCipher( msg->pairwiseCipher ); |
543 iPimpl->PairwiseCipher( msg->pairwiseCipher ); |
541 |
544 |
542 //Set Radio Measurement setting for later use |
545 //Set Radio Measurement setting for later use |
543 iPimpl->RadioMeasurement( msg->radioMeasurement ); |
546 iPimpl->RadioMeasurement( msg->radioMeasurement ); |
|
547 |
|
548 if ( msg->pairwiseKey.length != 0 ) |
|
549 { |
|
550 iPimpl->RoamingPairwiseKey( &(msg->pairwiseKey) ); |
|
551 } |
|
552 else |
|
553 { |
|
554 iPimpl->RoamingPairwiseKey( NULL ); |
|
555 } |
544 |
556 |
545 return iPimpl->CurrentState().Connect( |
557 return iPimpl->CurrentState().Connect( |
546 *iPimpl, |
558 *iPimpl, |
547 msg->SSID, |
559 msg->SSID, |
548 msg->BSSID, |
560 msg->BSSID, |