software/drivers/sd8887/src/wlan/mlan/mlan_wmm.c
/**
 *  @brief Allocate route address
 *
 *  @param pmadapter       Pointer to the mlan_adapter structure
 *  @param ra              Pointer to the route address
 *
 *  @return         ra_list
 */
@brief Allocate route address
@param pmadapter       Pointer to the mlan_adapter structure
@param ra              Pointer to the route address


@brief Allocate route address @param pmadapter Pointer to the mlan_adapter structure @param ra Pointer to the route address
static
raListTbl *
wlan_wmm_allocate_ralist_node(pmlan_adapter pmadapter, t_u8 *ra)
{
	raListTbl *ra_list = MNULL;
	ENTER();
	if (pmadapter->callbacks.
	    moal_malloc(pmadapter->pmoal_handle, sizeof(raListTbl),
			MLAN_MEM_DEF, (t_u8 **)&ra_list)) {
		PRINTM(MERROR, "Fail to allocate ra_list\n");
		goto done;
	}
	util_init_list((pmlan_linked_list)ra_list);
	util_init_list_head((t_void *)pmadapter->pmoal_handle,
			    &ra_list->buf_head, MFALSE,
			    pmadapter->callbacks.moal_init_lock);
	memcpy(pmadapter, ra_list->ra, ra, MLAN_MAC_ADDR_LENGTH);
	ra_list->del_ba_count = 0;
	ra_list->total_pkts = 0;
	ra_list->tx_pause = 0;
	PRINTM(MINFO, "RAList: Allocating buffers for TID %p\n", ra_list);
done:
	LEAVE();
	return ra_list;
}
static raListTbl * wlan_wmm_allocate_ralist_node ( pmlan_adapter pmadapter , t_u8 * ra ) { raListTbl * ra_list = MNULL ; ENTER ( ) ; if ( pmadapter -> callbacks . moal_malloc ( pmadapter -> pmoal_handle , sizeof ( raListTbl ) , MLAN_MEM_DEF , ( t_u8 * * ) & ra_list ) ) { PRINTM ( MERROR , " \n " ) ; goto done ; } util_init_list ( ( pmlan_linked_list ) ra_list ) ; util_init_list_head ( ( t_void * ) pmadapter -> pmoal_handle , & ra_list -> buf_head , MFALSE , pmadapter -> callbacks . moal_init_lock ) ; memcpy ( pmadapter , ra_list -> ra , ra , MLAN_MAC_ADDR_LENGTH ) ; ra_list -> del_ba_count = 0 ; ra_list -> total_pkts = 0 ; ra_list -> tx_pause = 0 ; PRINTM ( MINFO , " \n " , ra_list ) ; done : LEAVE ( ) ; return ra_list ; }
@brief Allocate route address
  @param pmadapter       Pointer to the mlan_adapter structure
  @param ra              Pointer to the route address
@brief Allocate route address @param pmadapter Pointer to the mlan_adapter structure @param ra Pointer to the route address