software/drivers/sd8887/src/wlan/mlan/mlan_cfp.c
/**
 *  @brief Check if Rate Auto
 *
 *  @param pmpriv               A pointer to mlan_private structure
 *
 *  @return                     MTRUE or MFALSE
 */
@brief Check if Rate Auto
@param pmpriv               A pointer to mlan_private structure

@return                     MTRUE or MFALSE
@brief Check if Rate Auto @param pmpriv A pointer to mlan_private structure @return MTRUE or MFALSE
t_u8
wlan_is_rate_auto(mlan_private *pmpriv)
{
	t_u32 i;
	int rate_num = 0;
	ENTER();
	for (i = 0; i < NELEMENTS(pmpriv->bitmap_rates); i++)
		if (pmpriv->bitmap_rates[i])
			rate_num++;
	LEAVE();
	if (rate_num > 1)
		return MTRUE;
	else
		return MFALSE;
}
t_u8 wlan_is_rate_auto ( mlan_private * pmpriv ) { t_u32 i ; int rate_num = 0 ; ENTER ( ) ; for ( i = 0 ; i < NELEMENTS ( pmpriv -> bitmap_rates ) ; i ++ ) if ( pmpriv -> bitmap_rates [ i ] ) rate_num ++ ; LEAVE ( ) ; if ( rate_num > 1 ) return MTRUE ; else return MFALSE ; }
@brief Check if Rate Auto
  @param pmpriv               A pointer to mlan_private structure
@brief Check if Rate Auto @param pmpriv A pointer to mlan_private structure