software/drivers/sd8887/src/wlan/mlan/mlan_wmm.c
/**
 *   @brief Get queue RA pointer
 *
 *   @param priv     Pointer to the mlan_private driver data struct
 *   @param tid      TID
 *   @param ra_addr  Pointer to the route address
 *
 *   @return         ra_list
 */
@brief Get queue RA pointer
@param priv     Pointer to the mlan_private driver data struct
@param tid      TID
@param ra_addr  Pointer to the route address


@brief Get queue RA pointer @param priv Pointer to the mlan_private driver data struct @param tid TID @param ra_addr Pointer to the route address
static raListTbl *
wlan_wmm_get_queue_raptr(pmlan_private priv, t_u8 tid, t_u8 *ra_addr)
{
	raListTbl *ra_list;
#if defined(UAP_SUPPORT)
	t_u8 bcast_addr[] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
#endif
	ENTER();
	ra_list = wlan_wmm_get_ralist_node(priv, tid, ra_addr);
	if (ra_list) {
		LEAVE();
		return ra_list;
	}
#if defined(UAP_SUPPORT)
	if ((GET_BSS_ROLE(priv) == MLAN_BSS_ROLE_UAP) &&
	    (0 !=
	     memcmp(priv->adapter, ra_addr, bcast_addr, sizeof(bcast_addr)))) {
		if (MNULL == wlan_get_station_entry(priv, ra_addr)) {
			PRINTM(MDATA, "Drop packets to unknown station\n");
			LEAVE();
			return MNULL;
		}
	}
#endif
	wlan_ralist_add(priv, ra_addr);
	ra_list = wlan_wmm_get_ralist_node(priv, tid, ra_addr);
	LEAVE();
	return ra_list;
}
static raListTbl * wlan_wmm_get_queue_raptr ( pmlan_private priv , t_u8 tid , t_u8 * ra_addr ) { raListTbl * ra_list ; #if defined ( UAP_SUPPORT ) t_u8 bcast_addr [ ] = { 0xff , 0xff , 0xff , 0xff , 0xff , 0xff } ; #endif ENTER ( ) ; ra_list = wlan_wmm_get_ralist_node ( priv , tid , ra_addr ) ; if ( ra_list ) { LEAVE ( ) ; return ra_list ; } #if defined ( UAP_SUPPORT ) if ( ( GET_BSS_ROLE ( priv ) == MLAN_BSS_ROLE_UAP ) && ( 0 != memcmp ( priv -> adapter , ra_addr , bcast_addr , sizeof ( bcast_addr ) ) ) ) { if ( MNULL == wlan_get_station_entry ( priv , ra_addr ) ) { PRINTM ( MDATA , " \n " ) ; LEAVE ( ) ; return MNULL ; } } #endif wlan_ralist_add ( priv , ra_addr ) ; ra_list = wlan_wmm_get_ralist_node ( priv , tid , ra_addr ) ; LEAVE ( ) ; return ra_list ; }
@brief Get queue RA pointer
   @param priv     Pointer to the mlan_private driver data struct
   @param tid      TID
   @param ra_addr  Pointer to the route address
@brief Get queue RA pointer @param priv Pointer to the mlan_private driver data struct @param tid TID @param ra_addr Pointer to the route address