Commit 84ff22a5 authored by Luis R. Rodriguez's avatar Luis R. Rodriguez

is_valid_reg_rule() is false when freq_diff is 0

Signed-off-by: 's avatarLuis R. Rodriguez <lrodriguez@atheros.com>
parent 94858a2f
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment