From 84ff22a581b17fdc6702d45cbdc257cdd5da106a Mon Sep 17 00:00:00 2001 From: "Luis R. Rodriguez" Date: Wed, 29 Oct 2008 01:45:03 -0700 Subject: is_valid_reg_rule() is false when freq_diff is 0 Signed-off-by: Luis R. Rodriguez --- reglib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reglib.c b/reglib.c index de6bb10..feb4af8 100644 --- a/reglib.c +++ b/reglib.c @@ -211,7 +211,7 @@ int 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) return 0; return 1; -- cgit v1.2.3