projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc6971d
)
cfg80211: a reg rule is invalid if freq diff is 0
author
Luis R. Rodriguez
<lrodriguez@atheros.com>
Thu, 30 Oct 2008 20:33:52 +0000
(13:33 -0700)
committer
John W. Linville
<linville@tuxdriver.com>
Mon, 10 Nov 2008 20:17:41 +0000
(15:17 -0500)
A regulatory rule is invalid when the frequency difference
between the end of the frequency range and the start is 0.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/reg.c
patch
|
blob
|
history
diff --git
a/net/wireless/reg.c
b/net/wireless/reg.c
index 8e5d23975a0d9a8c5c9389428a9014a70a52bf8b..34983a825ac1c89a911e79f45ada1c88b351a596 100644
(file)
--- a/
net/wireless/reg.c
+++ b/
net/wireless/reg.c
@@
-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;