software/drivers/sd8887/src/wlan/mapp/mlanevent/mlanevent.c
/**
 *  @brief Parse and print WEP ICV error event data
 *
 *  @param buffer   Pointer to received event buffer
 *  @param size     Length of the received event data
 *  @return         N/A
 */
@brief Parse and print WEP ICV error event data
@param buffer   Pointer to received event buffer
@param size     Length of the received event data
@return         N/A
@brief Parse and print WEP ICV error event data @param buffer Pointer to received event buffer @param size Length of the received event data @return N / A
void
print_event_wep_icv_error(t_u8 *buffer, t_u16 size)
{
	int i = 0;
	eventbuf_wep_icv_error *event_body = NULL;
	if (size < sizeof(eventbuf_wep_icv_error)) {
		printf("ERR:Event buffer too small!\n");
		return;
	}
	event_body = (eventbuf_wep_icv_error *)buffer;
	event_body->reason_code = uap_le16_to_cpu(event_body->reason_code);
	printf("EVENT: WEP_ICV_ERROR\n");
	printf("Deauthenticated STA MAC: ");
	print_mac(event_body->sta_mac_address);
	printf("WEP key index = %d\n", event_body->wep_key_index);
	printf("WEP key length = %d\n", event_body->wep_key_length);
	printf("WEP key : \n");
	for (i = 0; i < event_body->wep_key_length; i++) {
		printf("%02x ", event_body->wep_key[i]);
	}
	printf("\n");
	return;
}
void print_event_wep_icv_error ( t_u8 * buffer , t_u16 size ) { int i = 0 ; eventbuf_wep_icv_error * event_body = NULL ; if ( size < sizeof ( eventbuf_wep_icv_error ) ) { printf ( " \n " ) ; return ; } event_body = ( eventbuf_wep_icv_error * ) buffer ; event_body -> reason_code = uap_le16_to_cpu ( event_body -> reason_code ) ; printf ( " \n " ) ; printf ( " " ) ; print_mac ( event_body -> sta_mac_address ) ; printf ( " \n " , event_body -> wep_key_index ) ; printf ( " \n " , event_body -> wep_key_length ) ; printf ( " \n " ) ; for ( i = 0 ; i < event_body -> wep_key_length ; i ++ ) { printf ( " " , event_body -> wep_key [ i ] ) ; } printf ( " \n " ) ; return ; }
@brief Parse and print WEP ICV error event data
  @param buffer   Pointer to received event buffer
  @param size     Length of the received event data
  @return         N/A
@brief Parse and print WEP ICV error event data @param buffer Pointer to received event buffer @param size Length of the received event data @return N / A