summaryrefslogtreecommitdiff
path: root/reglib.c
diff options
context:
space:
mode:
Diffstat (limited to 'reglib.c')
-rw-r--r--reglib.c2
1 files changed, 1 insertions, 1 deletions
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;