Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 132154
b: refs/heads/master
c: bd05f28
h: refs/heads/master
v: v3
  • Loading branch information
Roel Kluin authored and John W. Linville committed Mar 6, 2009
1 parent 4e846a3 commit bd0b10f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 623d563e52d4d4041612e24b33a5610a900dd778
refs/heads/master: bd05f28e1a15ae62994fe309a524695fe26dd834
3 changes: 2 additions & 1 deletion trunk/net/wireless/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,8 @@ static bool is_valid_reg_rule(const struct ieee80211_reg_rule *rule)

freq_diff = freq_range->end_freq_khz - freq_range->start_freq_khz;

if (freq_diff <= 0 || freq_range->max_bandwidth_khz > freq_diff)
if (freq_range->end_freq_khz <= freq_range->start_freq_khz ||
freq_range->max_bandwidth_khz > freq_diff)
return false;

return true;
Expand Down

0 comments on commit bd0b10f

Please sign in to comment.