software/drivers/sd8887/src/wlan/mapp/uaputl/uaputl.h
/**
 *  @brief  Detects duplicates rate in array of strings
 *          Note that 0x82 and 0x2 are same for rate
 *
 *  @param  argc    Number of elements
 *  @param  argv    Array of strings
 *  @return UAP_FAILURE or UAP_SUCCESS
 */
@brief  Detects duplicates rate in array of strings
Note that 0x82 and 0x2 are same for rate

@param  argc    Number of elements
@param  argv    Array of strings
@return UAP_FAILURE or UAP_SUCCESS
@brief Detects duplicates rate in array of strings Note that 0x82 and 0x2 are same for rate @param argc Number of elements @param argv Array of strings @return UAP_FAILURE or UAP_SUCCESS
static inline int
has_dup_rate(int argc, char *argv[])
{
	int i, j;
	for (i = 0; i < (argc - 1); i++) {
		for (j = i + 1; j < argc; j++) {
			if ((A2HEXDECIMAL(argv[i]) & ~BASIC_RATE_SET_BIT) ==
			    (A2HEXDECIMAL(argv[j]) & ~BASIC_RATE_SET_BIT)) {
				return UAP_FAILURE;
			}
		}
	}
	return UAP_SUCCESS;
}
static inline int has_dup_rate ( int argc , char * argv [ ] ) { int i , j ; for ( i = 0 ; i < ( argc - 1 ) ; i ++ ) { for ( j = i + 1 ; j < argc ; j ++ ) { if ( ( A2HEXDECIMAL ( argv [ i ] ) & ~ BASIC_RATE_SET_BIT ) == ( A2HEXDECIMAL ( argv [ j ] ) & ~ BASIC_RATE_SET_BIT ) ) { return UAP_FAILURE ; } } } return UAP_SUCCESS ; }
@brief  Detects duplicates rate in array of strings
          Note that 0x82 and 0x2 are same for rate
@brief Detects duplicates rate in array of strings Note that 0x82 and 0x2 are same for rate
/* Check for duplicate */