software/drivers/sd8887/src/wlan/mlan/mlan_uap_cmdevent.c
/**
 *  @brief	Check 11B support Rates
 *
 *
 *  @param pmadapter	Private mlan adapter structure
 *
 *  @return MTRUE/MFALSE
 *
 */
@brief      Check 11B support Rates
@param pmadapter    Private mlan adapter structure

@return MTRUE/MFALSE
@brief Check 11B support Rates @param pmadapter Private mlan adapter structure @return MTRUE / MFALSE
t_u8
wlan_check_11B_support_rates(MrvlIEtypes_RatesParamSet_t *prates_tlv)
{
	int i;
	t_u8 rate;
	t_u8 ret = MTRUE;
	for (i = 0; i < prates_tlv->header.len; i++) {
		rate = prates_tlv->rates[i] & 0x7f;
		if ((rate != 0x02) && (rate != 0x04)
		    && (rate != 0x0b) && (rate != 0x16)) {
			ret = MFALSE;
			break;
		}
	}
	return ret;
}
t_u8 wlan_check_11B_support_rates ( MrvlIEtypes_RatesParamSet_t * prates_tlv ) { int i ; t_u8 rate ; t_u8 ret = MTRUE ; for ( i = 0 ; i < prates_tlv -> header . len ; i ++ ) { rate = prates_tlv -> rates [ i ] & 0x7f ; if ( ( rate != 0x02 ) && ( rate != 0x04 ) && ( rate != 0x0b ) && ( rate != 0x16 ) ) { ret = MFALSE ; break ; } } return ret ; }
@brief      Check 11B support Rates
  @param pmadapter    Private mlan adapter structure
@brief Check 11B support Rates @param pmadapter Private mlan adapter structure