On Thu, Oct 30, 2008 at 2:22 AM, Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote: > Luis R. Rodriguez wrote: >> A regulatory rule is invalid when the frequency difference >> between the end of the frequency range and the start is 0. >> >> Signed-off-by: Luis R. Rodriguez <lrodriguez@xxxxxxxxxxx> >> --- >> net/wireless/reg.c | 2 +- >> 1 files changed, 1 insertions(+), 1 deletions(-) >> >> diff --git a/net/wireless/reg.c b/net/wireless/reg.c >> index 9dff716..ff706f9 100644 >> --- a/net/wireless/reg.c >> +++ b/net/wireless/reg.c >> @@ -321,7 +321,7 @@ static bool is_valid_reg_rule(const struct >> ieee80211_reg_rule *rule) >> >> freq_diff = freq_range->end_freq_khz - freq_range->start_freq_khz; >> >> - if (freq_range->max_bandwidth_khz > freq_diff) >> + if (freq_diff == 0 || freq_range->max_bandwidth_khz > freq_diff) > > Might want to make that <= 0 just in case? Absolutely, thanks. Luis -- 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