software/drivers/sd8887/src/wlan/mlan/mlan_11n_rxreorder.c
/**
 *  @brief This function returns the last used sequence number
 *
 *  @param rx_reorder_tbl_ptr   A pointer to structure RxReorderTbl
 *
 *  @return                     Last used sequence number
 */
@brief This function returns the last used sequence number
@param rx_reorder_tbl_ptr   A pointer to structure RxReorderTbl

@return                     Last used sequence number
@brief This function returns the last used sequence number @param rx_reorder_tbl_ptr A pointer to structure RxReorderTbl @return Last used sequence number
static int
wlan_11n_find_last_seqnum(RxReorderTbl *rx_reorder_tbl_ptr)
{
	int i;
	ENTER();
	for (i = (rx_reorder_tbl_ptr->win_size - 1); i >= 0; --i) {
		if (rx_reorder_tbl_ptr->rx_reorder_ptr[i]) {
			LEAVE();
			return i;
		}
	}
	LEAVE();
	return -1;
}
static int wlan_11n_find_last_seqnum ( RxReorderTbl * rx_reorder_tbl_ptr ) { int i ; ENTER ( ) ; for ( i = ( rx_reorder_tbl_ptr -> win_size - 1 ) ; i >= 0 ; -- i ) { if ( rx_reorder_tbl_ptr -> rx_reorder_ptr [ i ] ) { LEAVE ( ) ; return i ; } } LEAVE ( ) ; return -1 ; }
@brief This function returns the last used sequence number
  @param rx_reorder_tbl_ptr   A pointer to structure RxReorderTbl
@brief This function returns the last used sequence number @param rx_reorder_tbl_ptr A pointer to structure RxReorderTbl