wlan_bearer/wlanengine/wlan_common/wlanengine_common_3.1/src/core_wpx_adaptation_stub.cpp
changeset 0 c40eb8fe8501
equal deleted inserted replaced
-1:000000000000 0:c40eb8fe8501
       
     1 /*
       
     2 * Copyright (c) 2006-2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Stub version of WPX adaptation.
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19 * %version: 15 %
       
    20 */
       
    21 
       
    22 #include "core_wpx_adaptation_stub.h"
       
    23 
       
    24 // ======== MEMBER FUNCTIONS ========
       
    25 
       
    26 // ---------------------------------------------------------------------------
       
    27 // ---------------------------------------------------------------------------
       
    28 //
       
    29 core_wpx_adaptation_stub_c::core_wpx_adaptation_stub_c()
       
    30     {
       
    31     DEBUG( "core_wpx_adaptation_stub_c::core_wpx_adaptation_stub_c()" );
       
    32     }
       
    33 
       
    34 // ---------------------------------------------------------------------------
       
    35 // ---------------------------------------------------------------------------
       
    36 //
       
    37 core_wpx_adaptation_stub_c::~core_wpx_adaptation_stub_c()
       
    38     {
       
    39     DEBUG( "core_wpx_adaptation_stub_c::~core_wpx_adaptation_stub_c()" );
       
    40     }
       
    41 
       
    42 // ---------------------------------------------------------------------------
       
    43 // ---------------------------------------------------------------------------
       
    44 //
       
    45 core_key_management_e core_wpx_adaptation_stub_c::wpx_key_management_suite(
       
    46     const u8_t* /* oui */ )
       
    47     {
       
    48     return core_key_management_none;
       
    49     }
       
    50 
       
    51 // ---------------------------------------------------------------------------
       
    52 // ---------------------------------------------------------------------------
       
    53 //
       
    54 core_error_e core_wpx_adaptation_stub_c::get_wpx_key_management_oui(
       
    55     core_key_management_e /* key_management */,
       
    56     u8_t& /* data_length */,
       
    57     u8_t* /* data */ )
       
    58     {
       
    59     return core_error_not_supported;
       
    60     }
       
    61 
       
    62 // ---------------------------------------------------------------------------
       
    63 // ---------------------------------------------------------------------------
       
    64 //
       
    65 bool_t core_wpx_adaptation_stub_c::is_ap_wpx_compatible_with_iap(
       
    66     core_connect_status_e& /* reason */,
       
    67     const core_ap_data_c& /* ap_data */,
       
    68     const core_iap_data_c& /* iap_data */ )
       
    69     {
       
    70     return true_t;
       
    71     }
       
    72 
       
    73 // ---------------------------------------------------------------------------
       
    74 // ---------------------------------------------------------------------------
       
    75 //
       
    76 bool_t core_wpx_adaptation_stub_c::handle_wpx_frame(
       
    77     core_frame_type_e /* frame_type */,
       
    78     u16_t /* frame_length */,
       
    79     const u8_t* /* frame_data */ )
       
    80     {
       
    81     return false_t;
       
    82     }
       
    83 
       
    84 // ---------------------------------------------------------------------------
       
    85 // ---------------------------------------------------------------------------
       
    86 //
       
    87 void core_wpx_adaptation_stub_c::handle_wpx_roam_success(
       
    88     const core_ap_data_c& /* ap_data */ )
       
    89     {
       
    90     }
       
    91 
       
    92 // ---------------------------------------------------------------------------
       
    93 // ---------------------------------------------------------------------------
       
    94 //
       
    95 void core_wpx_adaptation_stub_c::handle_wpx_connection_stop()
       
    96     {
       
    97     }
       
    98 
       
    99 // ---------------------------------------------------------------------------
       
   100 // ---------------------------------------------------------------------------
       
   101 //
       
   102 core_error_e core_wpx_adaptation_stub_c::handle_fast_roam_start_reassociation(
       
   103     core_ap_data_c& /* ap_data */,
       
   104     core_type_list_c<core_frame_dot11_ie_c>& /* assoc_ie_list */ )
       
   105     {
       
   106     return core_error_not_supported;
       
   107     }
       
   108 
       
   109 // ---------------------------------------------------------------------------
       
   110 // ---------------------------------------------------------------------------
       
   111 //
       
   112 void core_wpx_adaptation_stub_c::handle_fast_roam_reassoc_resp(
       
   113     core_frame_assoc_resp_c* /* frame */ )
       
   114     {
       
   115     }
       
   116 
       
   117 // ---------------------------------------------------------------------------
       
   118 // ---------------------------------------------------------------------------
       
   119 //
       
   120 void core_wpx_adaptation_stub_c::get_association_request_wpx_ie(
       
   121     core_ap_data_c& /* ap_data */,
       
   122     core_type_list_c<core_frame_dot11_ie_c>& /* assoc_ie_list */ )
       
   123     {
       
   124     }
       
   125 
       
   126 // ---------------------------------------------------------------------------
       
   127 // ---------------------------------------------------------------------------
       
   128 //
       
   129 u8_t core_wpx_adaptation_stub_c::wpx_version(
       
   130     core_frame_beacon_c* /* frame */ )
       
   131     {
       
   132     return 0;
       
   133     }
       
   134 
       
   135 // ---------------------------------------------------------------------------
       
   136 // ---------------------------------------------------------------------------
       
   137 //
       
   138 u8_t core_wpx_adaptation_stub_c::max_tx_power_level(
       
   139     core_frame_beacon_c* /* frame */ )
       
   140     {
       
   141     return MAX_TX_POWER_LEVEL_NOT_DEFINED;    
       
   142     }
       
   143 
       
   144 // ---------------------------------------------------------------------------
       
   145 // ---------------------------------------------------------------------------
       
   146 //
       
   147 void core_wpx_adaptation_stub_c::handle_ts_create_request(
       
   148     const core_ap_data_c& /* ap_data */,
       
   149     core_frame_dot11_c* /* frame */,
       
   150     u8_t /* tid */,
       
   151     const core_traffic_stream_params_s& /* tspec */ )
       
   152     {
       
   153     }
       
   154 
       
   155 // ---------------------------------------------------------------------------
       
   156 // ---------------------------------------------------------------------------
       
   157 //
       
   158 void core_wpx_adaptation_stub_c::get_wpx_traffic_stream_params(
       
   159     core_frame_dot11_c* /* frame */,
       
   160     u8_t /* tid */,
       
   161     core_traffic_stream_params_s& /* tspec */ )
       
   162     {
       
   163     }
       
   164 
       
   165 // ---------------------------------------------------------------------------
       
   166 // ---------------------------------------------------------------------------
       
   167 //
       
   168 core_traffic_stream_status_e core_wpx_adaptation_stub_c::get_wpx_traffic_stream_status(
       
   169     u8_t /* status */ )
       
   170     {
       
   171     return core_traffic_stream_status_inactive_other;
       
   172     }
       
   173 
       
   174 // ---------------------------------------------------------------------------
       
   175 // ---------------------------------------------------------------------------
       
   176 //
       
   177 void core_wpx_adaptation_stub_c::handle_association_response(
       
   178     core_ap_data_c& /* ap_data */,
       
   179     core_frame_assoc_resp_c* /* frame */ )
       
   180     {
       
   181     }
       
   182 
       
   183 // ---------------------------------------------------------------------------
       
   184 // ---------------------------------------------------------------------------
       
   185 //
       
   186 void core_wpx_adaptation_stub_c::handle_ts_create_success(
       
   187     core_frame_dot11_c* /* frame */,
       
   188     u8_t /* tid */,
       
   189     u8_t /* user_priority */ )
       
   190     {
       
   191     }
       
   192 
       
   193 // ---------------------------------------------------------------------------
       
   194 // ---------------------------------------------------------------------------
       
   195 //
       
   196 void core_wpx_adaptation_stub_c::handle_ts_delete(
       
   197     u8_t /* tid */,
       
   198     u8_t /* user_priority */ )
       
   199     {
       
   200     }
       
   201 
       
   202 // ---------------------------------------------------------------------------
       
   203 // ---------------------------------------------------------------------------
       
   204 //
       
   205 bool_t core_wpx_adaptation_stub_c::is_wpx_management_status(
       
   206     u32_t /* management_status */ )
       
   207     {
       
   208     return false_t;
       
   209     }
       
   210 
       
   211 // ---------------------------------------------------------------------------
       
   212 // ---------------------------------------------------------------------------
       
   213 //
       
   214 bool_t core_wpx_adaptation_stub_c::is_fatal_wpx_management_status(
       
   215     u32_t /* management_status */ )
       
   216     {
       
   217     return false_t;
       
   218     }
       
   219 
       
   220 // ---------------------------------------------------------------------------
       
   221 // ---------------------------------------------------------------------------
       
   222 //
       
   223 core_encryption_mode_e core_wpx_adaptation_stub_c::encryption_mode(
       
   224     core_ap_data_c& /* ap_data */,
       
   225     core_encryption_mode_e mode )
       
   226     {
       
   227     return mode;
       
   228     }
       
   229 
       
   230 // ---------------------------------------------------------------------------
       
   231 // ---------------------------------------------------------------------------
       
   232 //
       
   233 u16_t core_wpx_adaptation_stub_c::authentication_algorithm(
       
   234     wlan_eapol_if_eapol_key_authentication_type_e /* eapol_auth_type */,
       
   235     wlan_eapol_if_eapol_key_authentication_mode_e /* eapol_auth_mode */ )
       
   236     {
       
   237     DEBUG( "core_wpx_adaptation_stub_c::authentication_algorithm() - using open authentication algorithm" );
       
   238     return core_authentication_mode_open;
       
   239     }
       
   240 
       
   241 // ---------------------------------------------------------------------------
       
   242 // ---------------------------------------------------------------------------
       
   243 //
       
   244 core_operation_base_c* core_wpx_adaptation_stub_c::get_wpx_load_drivers_operation()
       
   245     {
       
   246     return NULL;
       
   247     }