diff options
Diffstat (limited to 'net/wireless/reg.c')
-rw-r--r-- | 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 4c7e39d466c4..7a2ce270f4d3 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c | |||
@@ -330,7 +330,7 @@ static bool is_valid_reg_rule(const struct ieee80211_reg_rule *rule) | |||
330 | const struct ieee80211_freq_range *freq_range = &rule->freq_range; | 330 | const struct ieee80211_freq_range *freq_range = &rule->freq_range; |
331 | u32 freq_diff; | 331 | u32 freq_diff; |
332 | 332 | ||
333 | if (freq_range->start_freq_khz == 0 || freq_range->end_freq_khz == 0) | 333 | if (freq_range->start_freq_khz <= 0 || freq_range->end_freq_khz <= 0) |
334 | return false; | 334 | return false; |
335 | 335 | ||
336 | if (freq_range->start_freq_khz > freq_range->end_freq_khz) | 336 | if (freq_range->start_freq_khz > freq_range->end_freq_khz) |