software/drivers/sd8887/src/wlan/mlan/mlan_wmm.c
/**
 *  @brief Get ralist info
 *
 *  @param priv         A pointer to mlan_private structure
 *  @param buf          A pointer to ralist_info structure
 *  @return             number of ralist entry
 *
 */
@brief Get ralist info
@param priv         A pointer to mlan_private structure
@param buf          A pointer to ralist_info structure
@return             number of ralist entry
@brief Get ralist info @param priv A pointer to mlan_private structure @param buf A pointer to ralist_info structure @return number of ralist entry
int
wlan_get_ralist_info(mlan_private *priv, ralist_info *buf)
{
	ralist_info *plist = buf;
	mlan_list_head *ra_list_head = MNULL;
	raListTbl *ra_list;
	int i;
	int count = 0;
	for (i = 0; i < MAX_NUM_TID; i++) {
		ra_list_head = &priv->wmm.tid_tbl_ptr[i].ra_list;
		ra_list =
			(raListTbl *)util_peek_list(priv->adapter->pmoal_handle,
						    ra_list_head, MNULL, MNULL);
		while (ra_list && ra_list != (raListTbl *)ra_list_head) {
			if (ra_list->total_pkts) {
				plist->total_pkts = ra_list->total_pkts;
				plist->tid = i;
				plist->tx_pause = ra_list->tx_pause;
				memcpy(priv->adapter, plist->ra, ra_list->ra,
				       MLAN_MAC_ADDR_LENGTH);
				plist++;
				count++;
				if (count >= MLAN_MAX_RALIST_NUM)
					break;
			}
			ra_list = ra_list->pnext;
		}
	}
	LEAVE();
	return count;
}
int wlan_get_ralist_info ( mlan_private * priv , ralist_info * buf ) { ralist_info * plist = buf ; mlan_list_head * ra_list_head = MNULL ; raListTbl * ra_list ; int i ; int count = 0 ; for ( i = 0 ; i < MAX_NUM_TID ; i ++ ) { ra_list_head = & priv -> wmm . tid_tbl_ptr [ i ] . ra_list ; ra_list = ( raListTbl * ) util_peek_list ( priv -> adapter -> pmoal_handle , ra_list_head , MNULL , MNULL ) ; while ( ra_list && ra_list != ( raListTbl * ) ra_list_head ) { if ( ra_list -> total_pkts ) { plist -> total_pkts = ra_list -> total_pkts ; plist -> tid = i ; plist -> tx_pause = ra_list -> tx_pause ; memcpy ( priv -> adapter , plist -> ra , ra_list -> ra , MLAN_MAC_ADDR_LENGTH ) ; plist ++ ; count ++ ; if ( count >= MLAN_MAX_RALIST_NUM ) break ; } ra_list = ra_list -> pnext ; } } LEAVE ( ) ; return count ; }
@brief Get ralist info
  @param priv         A pointer to mlan_private structure
  @param buf          A pointer to ralist_info structure
  @return             number of ralist entry
@brief Get ralist info @param priv A pointer to mlan_private structure @param buf A pointer to ralist_info structure @return number of ralist entry