wlan_bearer/wlanengine/wlan_symbian/wlanengine_symbian_3.1/src/wlanmgmtcommandhandler.cpp
branchRCL_3
changeset 3 6524e815f76f
parent 0 c40eb8fe8501
child 7 0abc8c98be24
equal deleted inserted replaced
0:c40eb8fe8501 3:6524e815f76f
     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:  Handles sending management commands to drivers.
    14 * Description:  Handles sending management commands to drivers.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: 37 %
    19 * %version: 38 %
    20 */
    20 */
    21 
    21 
    22 // INCLUDES
    22 // INCLUDES
    23 #include <e32std.h>
    23 #include <e32std.h>
    24 #include <es_ini.h>
    24 #include <es_ini.h>
   995     const TUint8* aIeData,        
   995     const TUint8* aIeData,        
   996     TUint32 aScanFrameLength,
   996     TUint32 aScanFrameLength,
   997     const TUint8* aScanFrame,
   997     const TUint8* aScanFrame,
   998     TBool aIsPairwiseKeyInvalidated,
   998     TBool aIsPairwiseKeyInvalidated,
   999     TBool aIsGroupKeyInvalidated,
   999     TBool aIsGroupKeyInvalidated,
  1000     TBool aIsRadioMeasurementSupported )
  1000     TBool aIsRadioMeasurementSupported,
       
  1001     const TPairwiseKeyData& aPairwiseKey )
  1001     {
  1002     {
  1002     DEBUG( "CWlanMgmtCommandHandler::Connect()" );
  1003     DEBUG( "CWlanMgmtCommandHandler::Connect()" );
  1003     
  1004     
  1004     DEBUG1( "CWlanMgmtCommandHandler::Connect() - aPairwiseKeyType = %u",
  1005     DEBUG1( "CWlanMgmtCommandHandler::Connect() - aPairwiseKeyType = %u",
  1005         aPairwiseKeyType );
  1006         aPairwiseKeyType );
       
  1007     DEBUG1( "CWlanMgmtCommandHandler::Connect() - aPairwiseKey.length = %u",
       
  1008         aPairwiseKey.length );
  1006 
  1009 
  1007     TConnectMsg msg;
  1010     TConnectMsg msg;
  1008     msg.hdr.oid_id = E802_11_CONNECT;
  1011     msg.hdr.oid_id = E802_11_CONNECT;
  1009     msg.SSID = aSSID;
  1012     msg.SSID = aSSID;
  1010     msg.BSSID = aBSSID;
  1013     msg.BSSID = aBSSID;
  1017     msg.ieDataLength = aIeDataLength;    
  1020     msg.ieDataLength = aIeDataLength;    
  1018     msg.ieData = const_cast<TUint8*>( aIeData );
  1021     msg.ieData = const_cast<TUint8*>( aIeData );
  1019     msg.invalidatePairwiseKey = aIsPairwiseKeyInvalidated;
  1022     msg.invalidatePairwiseKey = aIsPairwiseKeyInvalidated;
  1020     msg.invalidateGroupKey = aIsGroupKeyInvalidated;
  1023     msg.invalidateGroupKey = aIsGroupKeyInvalidated;
  1021     msg.radioMeasurement = aIsRadioMeasurementSupported;
  1024     msg.radioMeasurement = aIsRadioMeasurementSupported;
  1022 
  1025     msg.pairwiseKey = aPairwiseKey;
  1023     TPckg<TConnectMsg> buf( msg );
  1026     TPckg<TConnectMsg> buf( msg );
  1024 
  1027 
  1025     TInt err = iChannel.ManagementCommand( buf, NULL, &iStatus );
  1028     TInt err = iChannel.ManagementCommand( buf, NULL, &iStatus );
  1026     if( err )
  1029     if( err )
  1027         {
  1030         {