software/drivers/sd8887/src/wlan/mlan/mlan_wmm.c
/**
 *   @brief Check if RA list is valid or not
 *
 *   @param priv     Pointer to the mlan_private driver data struct
 *   @param ra_list  Pointer to raListTbl
 *   @param ptrindex TID pointer index
 *
 *   @return         MTRUE- valid. MFALSE- invalid.
 */
@brief Check if RA list is valid or not
@param priv     Pointer to the mlan_private driver data struct
@param ra_list  Pointer to raListTbl
@param ptrindex TID pointer index

@return         MTRUE- valid. MFALSE- invalid.
@brief Check if RA list is valid or not @param priv Pointer to the mlan_private driver data struct @param ra_list Pointer to raListTbl @param ptrindex TID pointer index @return MTRUE - valid . MFALSE - invalid .
int
wlan_is_ralist_valid(mlan_private *priv, raListTbl *ra_list, int ptrindex)
{
	raListTbl *rlist;
	ENTER();
	rlist = (raListTbl *)util_peek_list(priv->adapter->pmoal_handle,
					    &priv->wmm.tid_tbl_ptr[ptrindex].
					    ra_list, MNULL, MNULL);
	while (rlist && (rlist != (raListTbl *)
			 &priv->wmm.tid_tbl_ptr[ptrindex].ra_list)) {
		if (rlist == ra_list) {
			LEAVE();
			return MTRUE;
		}
		rlist = rlist->pnext;
	}
	LEAVE();
	return MFALSE;
}
int wlan_is_ralist_valid ( mlan_private * priv , raListTbl * ra_list , int ptrindex ) { raListTbl * rlist ; ENTER ( ) ; rlist = ( raListTbl * ) util_peek_list ( priv -> adapter -> pmoal_handle , & priv -> wmm . tid_tbl_ptr [ ptrindex ] . ra_list , MNULL , MNULL ) ; while ( rlist && ( rlist != ( raListTbl * ) & priv -> wmm . tid_tbl_ptr [ ptrindex ] . ra_list ) ) { if ( rlist == ra_list ) { LEAVE ( ) ; return MTRUE ; } rlist = rlist -> pnext ; } LEAVE ( ) ; return MFALSE ; }
@brief Check if RA list is valid or not
   @param priv     Pointer to the mlan_private driver data struct
   @param ra_list  Pointer to raListTbl
   @param ptrindex TID pointer index
@brief Check if RA list is valid or not @param priv Pointer to the mlan_private driver data struct @param ra_list Pointer to raListTbl @param ptrindex TID pointer index