wlan_bearer/wlanengine/wlan_symbian/wlanengine_symbian_3.1/src/wlanconversionutil.cpp
changeset 13 ab7247ff6ef9
parent 0 c40eb8fe8501
child 14 00032b836e76
equal deleted inserted replaced
0:c40eb8fe8501 13:ab7247ff6ef9
     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: 84 %
    20 */
    20 */
    21 
    21 
    22 #include <in_sock.h>
    22 #include <in_sock.h>
    23 #include <e32math.h>
    23 #include <e32math.h>
    24 
    24 
   282             return EWlmNotifyAccessPointInfoChanged;
   282             return EWlmNotifyAccessPointInfoChanged;
   283         case core_notification_rcpi_roam_attempt_started:
   283         case core_notification_rcpi_roam_attempt_started:
   284             return EWlmNotifyRcpiRoamAttemptStarted;
   284             return EWlmNotifyRcpiRoamAttemptStarted;
   285         case core_notification_rcpi_roam_attempt_completed:
   285         case core_notification_rcpi_roam_attempt_completed:
   286             return EWlmNotifyRcpiRoamAttemptCompleted;
   286             return EWlmNotifyRcpiRoamAttemptCompleted;
   287         case core_notification_broken_power_save_test_failed:
       
   288             return EWlmNotifyBrokenPowerSaveTestFailed;
       
   289         case core_notification_ac_traffic_mode_changed:
   287         case core_notification_ac_traffic_mode_changed:
   290             return EWlmNotifyAcTrafficModeChanged;
   288             return EWlmNotifyAcTrafficModeChanged;
   291         case core_notification_ac_traffic_status_changed:
   289         case core_notification_ac_traffic_status_changed:
   292             return EWlmNotifyAcTrafficStatusChanged;
   290             return EWlmNotifyAcTrafficStatusChanged;
   293         default: // this should never happen
   291         default: // this should never happen
  2023             /** Falls through on purpose. */
  2021             /** Falls through on purpose. */
  2024         default:
  2022         default:
  2025             return 0;
  2023             return 0;
  2026         }
  2024         }
  2027     }
  2025     }
       
  2026 
       
  2027 // ---------------------------------------------------------
       
  2028 // TWlanConversionUtil::ConvertCipherKey()
       
  2029 // ---------------------------------------------------------
       
  2030 //
       
  2031 void TWlanConversionUtil::ConvertCipherKey(
       
  2032     TPairwiseKeyData& aAmKey,
       
  2033     const core_cipher_key_s& aCoreKey )
       
  2034     {
       
  2035     aAmKey.keyIndex = aCoreKey.key_index;
       
  2036     aAmKey.length = aCoreKey.key_length;
       
  2037     Mem::Copy(
       
  2038         &aAmKey.data[0],
       
  2039         &aCoreKey.key_data[0],
       
  2040         MAX_CIPHER_KEY_LENGTH );
       
  2041     }