eapol/eapol_framework/eapol_symbian/eap_if/src/REapSession.cpp
changeset 52 c23bdf5a328a
parent 39 fe6b6762fccd
equal deleted inserted replaced
51:e863583e6720 52:c23bdf5a328a
    14 * Description:  EAP and WLAN authentication protocols.
    14 * Description:  EAP and WLAN authentication protocols.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: 34 %
    19 * %version: 35 %
    20 */
    20 */
    21 
    21 
    22 #include "REapSession.h"
    22 #include "REapSession.h"
    23 #include <e32base.h>
    23 #include <e32base.h>
    24 #include "EapTraceSymbian.h"
    24 #include "EapTraceSymbian.h"
   275 /// Function receives the data message from lower layer.
   275 /// Function receives the data message from lower layer.
   276 /// Data is formatted to Attribute-Value Pairs.
   276 /// Data is formatted to Attribute-Value Pairs.
   277 /// Look at eap_tlv_header_c and eap_tlv_message_data_c.
   277 /// Look at eap_tlv_header_c and eap_tlv_message_data_c.
   278 EAP_FUNC_EXPORT eap_status_e REapSession::process_data(const TEapRequests aMessageType, const void * const data, const u32_t length)
   278 EAP_FUNC_EXPORT eap_status_e REapSession::process_data(const TEapRequests aMessageType, const void * const data, const u32_t length)
   279     {
   279     {
       
   280 	EAP_TRACE_DEBUG(
       
   281 		iTools,
       
   282 		TRACE_FLAGS_DEFAULT,
       
   283 		(EAPL("REapSession::process_data(): calls iEapMessageQueue->AddMessage(): iEapMessageQueue=0x%08x\n"),
       
   284 		iEapMessageQueue));
       
   285 
       
   286 	EAP_TRACE_RETURN_STRING(iTools, "returns: REapSession::process_data()");
       
   287 
   280 	EAP_TRACE_DATA_DEBUG(
   288 	EAP_TRACE_DATA_DEBUG(
   281 		iTools,
   289 		iTools,
   282 		TRACE_FLAGS_DEFAULT,
   290 		EAP_TRACE_FLAGS_NEVER,
   283 		(EAPL("REapSession::process_data()"),
   291 		(EAPL("REapSession::process_data()"),
   284 		data,
   292 		data,
   285 		length));
   293 		length));
   286 
       
   287 	EAP_TRACE_DEBUG(
       
   288 		iTools,
       
   289 		TRACE_FLAGS_DEFAULT,
       
   290 		(EAPL("REapSession::process_data(): calls iEapMessageQueue->AddMessage(): iEapMessageQueue=0x%08x\n"),
       
   291 		iEapMessageQueue));
       
   292 
       
   293 	EAP_TRACE_RETURN_STRING(iTools, "returns: REapSession::process_data()");
       
   294 
   294 
   295 	TInt error = iEapMessageQueue->AddMessage(aMessageType, data, length);
   295 	TInt error = iEapMessageQueue->AddMessage(aMessageType, data, length);
   296 
   296 
   297 	if (error != KErrNone)
   297 	if (error != KErrNone)
   298 	{
   298 	{