diff options
Diffstat (limited to 'reglib.c')
-rw-r--r-- | reglib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |