software/drivers/sd8887/src/wlan/mapp/mlanutl/mlanoffload.c
/**
 *  @brief  select the table's regclass
 *
 *  @param table_str  Reg channel table type
 *  @param pTable     Pointer to the Reg channel table
 *
 *  @return           TRUE if success otherwise FALSE
 */
@brief  select the table's regclass
@param table_str  Reg channel table type
@param pTable     Pointer to the Reg channel table

@return           TRUE if success otherwise FALSE
@brief select the table ' s regclass @param table_str Reg channel table type @param pTable Pointer to the Reg channel table @return TRUE if success otherwise FALSE
boolean
reg_class_table_select(char *table_str, reg_chan_table_e *pTable)
{
	boolean retval = TRUE;
	if (strcmp(table_str, "user") == 0) {
		*pTable = REGTABLE_USER;
	} else if ((strcmp(table_str, "md") == 0) ||
		   (strncmp(table_str, "multidomain", 5) == 0)) {
		*pTable = REGTABLE_MULTIDOMAIN;
	} else if (strcmp(table_str, "ess") == 0) {
		*pTable = REGTABLE_ESS;
	} else if (strcmp(table_str, "default") == 0) {
		*pTable = REGTABLE_DEFAULT;
	} else {		
		*pTable = REGTABLE_DEFAULT;
	}
	return retval;
}
boolean reg_class_table_select ( char * table_str , reg_chan_table_e * pTable ) { boolean retval = TRUE ; if ( strcmp ( table_str , " " ) == 0 ) { * pTable = REGTABLE_USER ; } else if ( ( strcmp ( table_str , " " ) == 0 ) || ( strncmp ( table_str , " " , 5 ) == 0 ) ) { * pTable = REGTABLE_MULTIDOMAIN ; } else if ( strcmp ( table_str , " " ) == 0 ) { * pTable = REGTABLE_ESS ; } else if ( strcmp ( table_str , " " ) == 0 ) { * pTable = REGTABLE_DEFAULT ; } else { * pTable = REGTABLE_DEFAULT ; } return retval ; }
@brief  select the table's regclass
  @param table_str  Reg channel table type
  @param pTable     Pointer to the Reg channel table
@brief select the table ' s regclass @param table_str Reg channel table type @param pTable Pointer to the Reg channel table
/* If no option/wrong option set to default */