On Mon, 2009-03-09 at 22:04 -0400, Luis R. Rodriguez wrote: > Signed-off-by: Luis R. Rodriguez <lrodriguez@xxxxxxxxxxx> > --- > net/mac80211/util.c | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/net/mac80211/util.c b/net/mac80211/util.c > index 32610a0..a891d7e 100644 > --- a/net/mac80211/util.c > +++ b/net/mac80211/util.c > @@ -796,6 +796,9 @@ int ieee80211_set_freq(struct ieee80211_sub_if_data *sdata, int freqMHz) > if (!chan || (chan->flags & IEEE80211_CHAN_DISABLED)) > return ret; > > + if (conf_is_ht40(&local->hw.conf) && chan->max_bandwidth < 40) > + return ret; > + You just made nl80211 check this, why bother adding it here too? johannes
Attachment:
signature.asc
Description: This is a digitally signed message part