/* Returns 0 if invalid in the specified regulatory domain, non-zero if valid.  */
static int iw_valid_channel(int reg_domain, int channel)
/* Returns 0 if invalid in the specified regulatory domain, non-zero if valid.  */
static int iw_valid_channel(int reg_domain, int channel)
{
	int i, rc = 0;
	for (i = 0; i < ARRAY_SIZE(iw_channel_table); i++)
		if (reg_domain == iw_channel_table[i].reg_domain) {
			rc = channel >= iw_channel_table[i].min &&
			     channel <= iw_channel_table[i].max;
			break;
		}
	return rc;
}