On Wed, 2009-01-07 at 17:43 -0800, Luis R. Rodriguez wrote: > We are calling the reg_notifier() callback per band, this is > not necessary, just call it once. > > Signed-off-by: Luis R. Rodriguez <lrodriguez@xxxxxxxxxxx> Acked-by: Johannes Berg <johannes@xxxxxxxxxxxxxxxx> > --- > net/wireless/reg.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/net/wireless/reg.c b/net/wireless/reg.c > index 4f87753..2f2ba92 100644 > --- a/net/wireless/reg.c > +++ b/net/wireless/reg.c > @@ -841,9 +841,9 @@ void wiphy_update_regulatory(struct wiphy *wiphy, enum reg_set_by setby) > for (band = 0; band < IEEE80211_NUM_BANDS; band++) { > if (wiphy->bands[band]) > handle_band(wiphy->bands[band]); > - if (wiphy->reg_notifier) > - wiphy->reg_notifier(wiphy, setby); > } > + if (wiphy->reg_notifier) > + wiphy->reg_notifier(wiphy, setby); > } > > /* Return value which can be used by ignore_request() to indicate
Attachment:
signature.asc
Description: This is a digitally signed message part