On Wed, 2014-02-19 at 12:27 +0100, Janusz Dziedzic wrote: > On 19 February 2014 12:03, Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote: > > On Wed, 2014-02-12 at 19:54 +0100, Janusz Dziedzic wrote: > > > >> -#define REG_RULE(start, end, bw, gain, eirp, reg_flags) \ > >> -{ \ > >> - .freq_range.start_freq_khz = MHZ_TO_KHZ(start), \ > >> - .freq_range.end_freq_khz = MHZ_TO_KHZ(end), \ > >> - .freq_range.max_bandwidth_khz = MHZ_TO_KHZ(bw), \ > >> - .power_rule.max_antenna_gain = DBI_TO_MBI(gain),\ > >> - .power_rule.max_eirp = DBM_TO_MBM(eirp), \ > >> - .flags = reg_flags, \ > >> +#define REG_RULE_EXT(start, end, bw, gain, eirp, dfs_cac, reg_flags) \ > >> +{ \ > >> + .freq_range.start_freq_khz = MHZ_TO_KHZ(start), \ > >> + .freq_range.end_freq_khz = MHZ_TO_KHZ(end), \ > >> + .freq_range.max_bandwidth_khz = MHZ_TO_KHZ(bw), \ > >> + .power_rule.max_antenna_gain = DBI_TO_MBI(gain), \ > >> + .power_rule.max_eirp = DBM_TO_MBM(eirp), \ > >> + .flags = reg_flags, \ > >> + .dfs_cac_ms = dfs_cac, \ > >> } > >> > >> +#define REG_RULE(start, end, bw, gain, eirp, reg_flags) \ > >> + REG_RULE_EXT(start, end, bw, gain, eirp, 0, reg_flags) > > > > I don't see any users of this, is that really useful? > > > > genregdb.awk using this when internal regdb is used. Ah ok, thanks. johannes -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html