On Tue, 2008-11-04 at 18:50 -0800, Luis R. Rodriguez wrote: > Regulatory rules with negative frequencies are now > marked as invalid in is_valid_reg_rule(). > > Signed-off-by: Luis R. Rodriguez <lrodriguez@xxxxxxxxxxx> Acked-by: Johannes Berg <johannes@xxxxxxxxxxxxxxxx> > --- > 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 4c7e39d..7a2ce27 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) > const struct ieee80211_freq_range *freq_range = &rule->freq_range; > u32 freq_diff; > > - if (freq_range->start_freq_khz == 0 || freq_range->end_freq_khz == 0) > + if (freq_range->start_freq_khz <= 0 || freq_range->end_freq_khz <= 0) > return false; > > if (freq_range->start_freq_khz > freq_range->end_freq_khz)
Attachment:
signature.asc
Description: This is a digitally signed message part