software/drivers/sd8887/src/wlan/mapp/mlan2040coex/mlan2040coex.c
/**
 *  @brief Parse and print received event information
 *
 *  @param event    Pointer to received event
 *  @param size     Length of the received event
 *  @param evt_conn     A pointer to a output buffer. It sets TRUE when it gets
 *  					the event CUS_EVT_OBSS_SCAN_PARAM, otherwise FALSE
 *  @param if_name  The interface name
 *
 *  @return         N/A
 */
@brief Parse and print received event information
@param event    Pointer to received event
@param size     Length of the received event
@param evt_conn     A pointer to a output buffer. It sets TRUE when it gets
the event CUS_EVT_OBSS_SCAN_PARAM, otherwise FALSE
@param if_name  The interface name

@return         N/A
@brief Parse and print received event information @param event Pointer to received event @param size Length of the received event @param evt_conn A pointer to a output buffer . It sets TRUE when it gets the event CUS_EVT_OBSS_SCAN_PARAM otherwise FALSE @param if_name The interface name @return N / A
void
print_event(event_header *event, t_u16 size, int *evt_conn, char *if_name)
{
	if (!strncmp
	    (CUS_EVT_AP_CONNECTED, (char *)event,
	     strlen(CUS_EVT_AP_CONNECTED))) {
		if (strlen(if_name))
			printf("EVENT for interface %s\n", if_name);
		print_event_drv_connected((t_u8 *)event, size);
		return;
	}
	if (!strncmp
	    (CUS_EVT_OBSS_SCAN_PARAM, (char *)event,
	     strlen(CUS_EVT_OBSS_SCAN_PARAM))) {
		if (strlen(if_name))
			printf("EVENT for interface %s\n", if_name);
		printf("---< %s >---\n", CUS_EVT_OBSS_SCAN_PARAM);
		memset(&cur_obss_scan_param, 0, sizeof(cur_obss_scan_param));
		memcpy(&cur_obss_scan_param,
		       ((t_u8 *)event + strlen(CUS_EVT_OBSS_SCAN_PARAM) + 1),
		       sizeof(cur_obss_scan_param));
		is_ht_ap = TRUE;
		*evt_conn = TRUE;
		return;
	}
	if (!strncmp
	    (CUS_EVT_BW_CHANGED, (char *)event, strlen(CUS_EVT_BW_CHANGED))) {
		if (strlen(if_name))
			printf("EVENT for interface %s\n", if_name);
		printf("---< %s >---\n", CUS_EVT_BW_CHANGED);
		return;
	}
}
void print_event ( event_header * event , t_u16 size , int * evt_conn , char * if_name ) { if ( ! strncmp ( CUS_EVT_AP_CONNECTED , ( char * ) event , strlen ( CUS_EVT_AP_CONNECTED ) ) ) { if ( strlen ( if_name ) ) printf ( " \n " , if_name ) ; print_event_drv_connected ( ( t_u8 * ) event , size ) ; return ; } if ( ! strncmp ( CUS_EVT_OBSS_SCAN_PARAM , ( char * ) event , strlen ( CUS_EVT_OBSS_SCAN_PARAM ) ) ) { if ( strlen ( if_name ) ) printf ( " \n " , if_name ) ; printf ( " \n " , CUS_EVT_OBSS_SCAN_PARAM ) ; memset ( & cur_obss_scan_param , 0 , sizeof ( cur_obss_scan_param ) ) ; memcpy ( & cur_obss_scan_param , ( ( t_u8 * ) event + strlen ( CUS_EVT_OBSS_SCAN_PARAM ) + 1 ) , sizeof ( cur_obss_scan_param ) ) ; is_ht_ap = TRUE ; * evt_conn = TRUE ; return ; } if ( ! strncmp ( CUS_EVT_BW_CHANGED , ( char * ) event , strlen ( CUS_EVT_BW_CHANGED ) ) ) { if ( strlen ( if_name ) ) printf ( " \n " , if_name ) ; printf ( " \n " , CUS_EVT_BW_CHANGED ) ; return ; } }
@brief Parse and print received event information
  @param event    Pointer to received event
  @param size     Length of the received event
  @param evt_conn     A pointer to a output buffer.
@brief Parse and print received event information @param event Pointer to received event @param size Length of the received event @param evt_conn A pointer to a output buffer .
/** set TRUE, since it is an HT AP */