eapol/eapol_framework/eapol_common/core/eap_wimax_authentication.cpp
branchRCL_3
changeset 19 c74b3d9f6b9e
parent 18 bad0cc58d154
equal deleted inserted replaced
18:bad0cc58d154 19:c74b3d9f6b9e
    14 * Description:  EAP stack interface for Wimax.
    14 * Description:  EAP stack interface for Wimax.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: %
    19 * %version: 5.1.2 %
    20 */
    20 */
    21 
    21 
    22 // This is enumeration of EAPOL source code.
    22 // This is enumeration of EAPOL source code.
    23 #if defined(USE_EAP_MINIMUM_RELEASE_TRACES)
    23 #if defined(USE_EAP_MINIMUM_RELEASE_TRACES)
    24 	#undef EAP_FILE_NUMBER_ENUM
    24 	#undef EAP_FILE_NUMBER_ENUM
   156 //--------------------------------------------------
   156 //--------------------------------------------------
   157 
   157 
   158 EAP_FUNC_EXPORT eap_wimax_authentication_c* eap_wimax_authentication_c::new_eap_wimax_authentication_c
   158 EAP_FUNC_EXPORT eap_wimax_authentication_c* eap_wimax_authentication_c::new_eap_wimax_authentication_c
   159 (abs_eap_am_tools_c* const tools,
   159 (abs_eap_am_tools_c* const tools,
   160  abs_eap_wimax_authentication_c* const partner,
   160  abs_eap_wimax_authentication_c* const partner,
   161  const bool is_client_when_true)
   161  const bool is_client_when_true,
       
   162  const abs_eapol_wlan_database_reference_if_c* const wimax_database_reference)
   162 {
   163 {
   163   EAP_TRACE_DEBUG
   164   EAP_TRACE_DEBUG
   164     (tools, 
   165     (tools, 
   165      TRACE_FLAGS_DEFAULT, 
   166      TRACE_FLAGS_DEFAULT, 
   166      (EAPL("partner calls: eap_wimax_authentication_c::new_eap_wimax_authentication_c()\n")));
   167      (EAPL("partner calls: eap_wimax_authentication_c::new_eap_wimax_authentication_c()\n")));
   314       WAUTH_ENTER_MUTEX(m_am_tools);
   315       WAUTH_ENTER_MUTEX(m_am_tools);
   315 
   316 
   316       EAP_TRACE_DEBUG
   317       EAP_TRACE_DEBUG
   317 		(m_am_tools,
   318 		(m_am_tools,
   318 		TRACE_FLAGS_ALWAYS|TRACE_FLAGS_DEFAULT, 
   319 		TRACE_FLAGS_ALWAYS|TRACE_FLAGS_DEFAULT, 
   319 		(EAPL("calls eap: eap_wimax_authentication_c:cancel_all_authentication_sessions(): m_eap_core->cancel_all_eap_sessions(): %s.\n"),
   320 		(EAPL("calls eap: eap_wimax_authentication_c:cancel_all_authentication_sessions(): m_eap_core->synchronous_cancel_all_eap_sessions(): %s.\n"),
   320 		(m_is_client == true) ? "client": "server"));
   321 		(m_is_client == true) ? "client": "server"));
   321 
   322 
   322       status = m_eap_core->cancel_all_eap_sessions();
   323       status = m_eap_core->synchronous_cancel_all_eap_sessions();
   323 
   324 
   324       EAP_TRACE_DEBUG
   325       EAP_TRACE_DEBUG
   325 		(m_am_tools,
   326 		(m_am_tools,
   326 		TRACE_FLAGS_ALWAYS|TRACE_FLAGS_DEFAULT, 
   327 		TRACE_FLAGS_ALWAYS|TRACE_FLAGS_DEFAULT, 
   327 		(EAPL("returns from eap: eap_wimax_authentication_c:cancel_all_authentication_sessions(): m_eap_core->cancel_all_eap_sessions(): %s, status = %s.\n"),
   328 		(EAPL("returns from eap: eap_wimax_authentication_c:cancel_all_authentication_sessions(): m_eap_core->synchronous_cancel_all_eap_sessions(): %s, status = %s.\n"),
   328 		(m_is_client == true) ? "client": "server",
   329 		(m_is_client == true) ? "client": "server",
   329 		eap_status_string_c::get_status_string(status)));
   330 		eap_status_string_c::get_status_string(status)));
   330 
   331 
   331       WAUTH_LEAVE_MUTEX(m_am_tools); 
   332       WAUTH_LEAVE_MUTEX(m_am_tools); 
   332     }
   333     }