wlan_bearer/wlanengine/wlan_symbian/wlanengine_symbian_3.1/src/wlanconversionutil.cpp
branchRCL_3
changeset 3 6524e815f76f
parent 0 c40eb8fe8501
child 5 51a71243e562
equal deleted inserted replaced
0:c40eb8fe8501 3:6524e815f76f
     1 /*
     1 /*
     2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2005-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 type conversion between adaptation and core layers
    14 * Description:  Handles type conversion between adaptation and core layers
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: 82 %
    19 * %version: 83 %
    20 */
    20 */
    21 
    21 
    22 #include <in_sock.h>
    22 #include <in_sock.h>
    23 #include <e32math.h>
    23 #include <e32math.h>
    24 
    24 
  2023             /** Falls through on purpose. */
  2023             /** Falls through on purpose. */
  2024         default:
  2024         default:
  2025             return 0;
  2025             return 0;
  2026         }
  2026         }
  2027     }
  2027     }
       
  2028 
       
  2029 // ---------------------------------------------------------
       
  2030 // TWlanConversionUtil::ConvertCipherKey()
       
  2031 // ---------------------------------------------------------
       
  2032 //
       
  2033 void TWlanConversionUtil::ConvertCipherKey(
       
  2034     TPairwiseKeyData& aAmKey,
       
  2035     const core_cipher_key_s& aCoreKey )
       
  2036     {
       
  2037     aAmKey.keyIndex = aCoreKey.key_index;
       
  2038     aAmKey.length = aCoreKey.key_length;
       
  2039     Mem::Copy(
       
  2040         &aAmKey.data[0],
       
  2041         &aCoreKey.key_data[0],
       
  2042         MAX_CIPHER_KEY_LENGTH );
       
  2043     }