software/drivers/sd8887/src/wlan/mapp/mlan2040coex/mlan2040coex.c
/**
 *  @brief Print connect and disconnect event related information
 *
 *  @param buffer   Pointer to received event buffer
 *  @param size     Length of the received event
 *
 *  @return         N/A
 */
@brief Print connect and disconnect event related information
@param buffer   Pointer to received event buffer
@param size     Length of the received event

@return         N/A
@brief Print connect and disconnect event related information @param buffer Pointer to received event buffer @param size Length of the received event @return N / A
void
print_event_drv_connected(t_u8 *buffer, t_u16 size)
{
	struct ether_addr *wap;
	struct ether_addr etherzero = { {0x00, 0x00, 0x00, 0x00, 0x00, 0x00} };
	char buf[32];
	wap = (struct ether_addr *)(buffer + strlen(CUS_EVT_AP_CONNECTED));
	if (!memcmp(wap, &etherzero, sizeof(struct ether_addr))) {
		printf("---< Disconnected from AP >---\n");
		memset(&cur_obss_scan_param, 0, sizeof(cur_obss_scan_param));
		assoc_flag = FALSE;
		is_ht_ap = FALSE;
	} else {
		memset(buf, 0, sizeof(buf));
		snprintf(buf, sizeof(buf), "%02X:%02X:%02X:%02X:%02X:%02X",
			 wap->ether_addr_octet[0],
			 wap->ether_addr_octet[1],
			 wap->ether_addr_octet[2],
			 wap->ether_addr_octet[3],
			 wap->ether_addr_octet[4], wap->ether_addr_octet[5]);
		printf("---< Connected to AP: %s >---\n", buf);
		assoc_flag = TRUE;
	}
}
void print_event_drv_connected ( t_u8 * buffer , t_u16 size ) { struct ether_addr * wap ; struct ether_addr etherzero = { { 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 } } ; char buf [ 32 ] ; wap = ( struct ether_addr * ) ( buffer + strlen ( CUS_EVT_AP_CONNECTED ) ) ; if ( ! memcmp ( wap , & etherzero , sizeof ( struct ether_addr ) ) ) { printf ( " \n " ) ; memset ( & cur_obss_scan_param , 0 , sizeof ( cur_obss_scan_param ) ) ; assoc_flag = FALSE ; is_ht_ap = FALSE ; } else { memset ( buf , 0 , sizeof ( buf ) ) ; snprintf ( buf , sizeof ( buf ) , " " , wap -> ether_addr_octet [ 0 ] , wap -> ether_addr_octet [ 1 ] , wap -> ether_addr_octet [ 2 ] , wap -> ether_addr_octet [ 3 ] , wap -> ether_addr_octet [ 4 ] , wap -> ether_addr_octet [ 5 ] ) ; printf ( " \n " , buf ) ; assoc_flag = TRUE ; } }
@brief Print connect and disconnect event related information
  @param buffer   Pointer to received event buffer
  @param size     Length of the received event
@brief Print connect and disconnect event related information @param buffer Pointer to received event buffer @param size Length of the received event
/** set TRUE, if connected */