software/drivers/sd8887/src/wlan/mapp/uaputl/uaputl.h
/**
 *  @brief  Detects duplicates channel in array of strings
 *
 *  @param  argc    Number of elements
 *  @param  argv    Array of strings
 *  @return UAP_FAILURE or UAP_SUCCESS
 */
@brief  Detects duplicates channel in array of strings
@param  argc    Number of elements
@param  argv    Array of strings
@return UAP_FAILURE or UAP_SUCCESS
@brief Detects duplicates channel in array of strings @param argc Number of elements @param argv Array of strings @return UAP_FAILURE or UAP_SUCCESS
static inline int
has_dup_channel(int argc, char *argv[])
{
	int i, j;
	for (i = 0; i < (argc - 1); i++) {
		for (j = i + 1; j < argc; j++) {
			if (atoi(argv[i]) == atoi(argv[j])) {
				return UAP_FAILURE;
			}
		}
	}
	return UAP_SUCCESS;
}
static inline int has_dup_channel ( int argc , char * argv [ ] ) { int i , j ; for ( i = 0 ; i < ( argc - 1 ) ; i ++ ) { for ( j = i + 1 ; j < argc ; j ++ ) { if ( atoi ( argv [ i ] ) == atoi ( argv [ j ] ) ) { return UAP_FAILURE ; } } } return UAP_SUCCESS ; }
@brief  Detects duplicates channel in array of strings
  @param  argc    Number of elements
  @param  argv    Array of strings
  @return UAP_FAILURE or UAP_SUCCESS
@brief Detects duplicates channel in array of strings @param argc Number of elements @param argv Array of strings @return UAP_FAILURE or UAP_SUCCESS
/* Check for duplicate */