Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121819
b: refs/heads/master
c: d71aaf6
h: refs/heads/master
i:
  121817: a22bcb0
  121815: e066f7c
v: v3
  • Loading branch information
Luis R. Rodriguez authored and John W. Linville committed Nov 10, 2008
1 parent 03662ca commit 22e4667
Show file tree
Hide file tree
Showing 2 changed files with 2 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: fc6971d491517ba15e800540ff88caa55dc65b01
refs/heads/master: d71aaf6053e380996e40c9ecfe39a8dced52694c
2 changes: 1 addition & 1 deletion trunk/net/wireless/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ 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_range->max_bandwidth_khz > freq_diff)
if (freq_diff <= 0 || freq_range->max_bandwidth_khz > freq_diff)
return false;

return true;
Expand Down

0 comments on commit 22e4667

Please sign in to comment.