software/drivers/sd8887/src/wlan/mlan/mlan_11n_rxreorder.c
/**
 *  @brief This function will return the pointer to a entry in rx reordering
 *          table which matches the give TA/TID pair
 *
 *  @param priv    A pointer to mlan_private
 *  @param ta      ta to find in reordering table
 *  @param tid     tid to find in reordering table
 *
 *  @return        A pointer to structure RxReorderTbl
 */
@brief This function will return the pointer to a entry in rx reordering
table which matches the give TA/TID pair

@param priv    A pointer to mlan_private
@param ta      ta to find in reordering table
@param tid     tid to find in reordering table

@return        A pointer to structure RxReorderTbl
@brief This function will return the pointer to a entry in rx reordering table which matches the give TA / TID pair @param priv A pointer to mlan_private @param ta ta to find in reordering table @param tid tid to find in reordering table @return A pointer to structure RxReorderTbl
RxReorderTbl *
wlan_11n_get_rxreorder_tbl(mlan_private *priv, int tid, t_u8 *ta)
{
	RxReorderTbl *rx_reor_tbl_ptr;
	ENTER();
	rx_reor_tbl_ptr =
		(RxReorderTbl *)util_peek_list(priv->adapter->pmoal_handle,
					       &priv->rx_reorder_tbl_ptr, MNULL,
					       MNULL);
	if (!rx_reor_tbl_ptr) {
		LEAVE();
		return MNULL;
	}
	while (rx_reor_tbl_ptr != (RxReorderTbl *)&priv->rx_reorder_tbl_ptr) {
		if ((!memcmp
		     (priv->adapter, rx_reor_tbl_ptr->ta, ta,
		      MLAN_MAC_ADDR_LENGTH)) && (rx_reor_tbl_ptr->tid == tid)) {
			LEAVE();
			return rx_reor_tbl_ptr;
		}
		rx_reor_tbl_ptr = rx_reor_tbl_ptr->pnext;
	}
	LEAVE();
	return MNULL;
}
RxReorderTbl * wlan_11n_get_rxreorder_tbl ( mlan_private * priv , int tid , t_u8 * ta ) { RxReorderTbl * rx_reor_tbl_ptr ; ENTER ( ) ; rx_reor_tbl_ptr = ( RxReorderTbl * ) util_peek_list ( priv -> adapter -> pmoal_handle , & priv -> rx_reorder_tbl_ptr , MNULL , MNULL ) ; if ( ! rx_reor_tbl_ptr ) { LEAVE ( ) ; return MNULL ; } while ( rx_reor_tbl_ptr != ( RxReorderTbl * ) & priv -> rx_reorder_tbl_ptr ) { if ( ( ! memcmp ( priv -> adapter , rx_reor_tbl_ptr -> ta , ta , MLAN_MAC_ADDR_LENGTH ) ) && ( rx_reor_tbl_ptr -> tid == tid ) ) { LEAVE ( ) ; return rx_reor_tbl_ptr ; } rx_reor_tbl_ptr = rx_reor_tbl_ptr -> pnext ; } LEAVE ( ) ; return MNULL ; }
@brief This function will return the pointer to a entry in rx reordering
          table which matches the give TA/TID pair
@brief This function will return the pointer to a entry in rx reordering table which matches the give TA / TID pair