wlan_bearer/wlanengine/wlan_symbian/wlanengine_symbian_3.1/src/wlmdriverif.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".
    13 *
    13 *
    14 * Description:  Interface to drivers
    14 * Description:  Interface to drivers
    15 *
    15 *
    16 */
    16 */
    17 
    17 
       
    18 /*
       
    19 * %version: 51 %
       
    20 */
    18 
    21 
    19 #include <wlanhwinit.h>
    22 #include <wlanhwinit.h>
    20 #include "wlanlddcommon.h"
    23 #include "wlanlddcommon.h"
    21 
    24 
    22 #include "am_debug.h"
    25 #include "am_debug.h"
   822     const u8_t* ie_data,
   825     const u8_t* ie_data,
   823     u32_t scan_frame_length,
   826     u32_t scan_frame_length,
   824     const u8_t* scan_frame,
   827     const u8_t* scan_frame,
   825     bool_t is_pairwise_key_invalidated,
   828     bool_t is_pairwise_key_invalidated,
   826     bool_t is_group_key_invalidated,
   829     bool_t is_group_key_invalidated,
   827     bool_t is_radio_measurement_supported )
   830     bool_t is_radio_measurement_supported,
       
   831     const core_cipher_key_s* pairwise_key )
   828     {
   832     {
   829 #ifdef _DEBUG
   833 #ifdef _DEBUG
   830     if( is_infra == true_t )
   834     if( is_infra == true_t )
   831         {
   835         {
   832         DEBUG( "CWlmDriverIf::connect() - infrastructure" );        
   836         DEBUG( "CWlmDriverIf::connect() - infrastructure" );        
   848 
   852 
   849     TSSID tmpSsid;
   853     TSSID tmpSsid;
   850     TWlanConversionUtil::ConvertSSID( tmpSsid, ssid );
   854     TWlanConversionUtil::ConvertSSID( tmpSsid, ssid );
   851     TMacAddress tmpBssid;
   855     TMacAddress tmpBssid;
   852     TWlanConversionUtil::ConvertMacAddress( tmpBssid, bssid );
   856     TWlanConversionUtil::ConvertMacAddress( tmpBssid, bssid );
       
   857     TPairwiseKeyData tmpKey = { 0, 0 };
       
   858     if( pairwise_key )
       
   859         {
       
   860         TWlanConversionUtil::ConvertCipherKey( tmpKey, *pairwise_key );
       
   861         }
   853 
   862 
   854     iManagementCommandHandler->Connect(
   863     iManagementCommandHandler->Connect(
   855         tmpSsid,
   864         tmpSsid,
   856         tmpBssid,
   865         tmpBssid,
   857         auth_algorithm,
   866         auth_algorithm,
   862         ie_data,
   871         ie_data,
   863         scan_frame_length,
   872         scan_frame_length,
   864         scan_frame,
   873         scan_frame,
   865         is_pairwise_key_invalidated,
   874         is_pairwise_key_invalidated,
   866         is_group_key_invalidated,
   875         is_group_key_invalidated,
   867         is_radio_measurement_supported );
   876         is_radio_measurement_supported,
   868         
   877         tmpKey );
   869     }
   878     }
   870 
   879 
   871 // -----------------------------------------------------------------------------
   880 // -----------------------------------------------------------------------------
   872 // CWlmDriverIf::cancel_request
   881 // CWlmDriverIf::cancel_request
   873 // -----------------------------------------------------------------------------
   882 // -----------------------------------------------------------------------------