diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-01-08 01:43:32 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 20:59:58 (GMT) |
commit | 560e28e14f69ad3440a6e8c283dcfd37e1e41c2d (patch) | |
tree | a2340710c9d723c7c64b2fd04aed82b2206b1931 /net | |
parent | 4be8c3873e0b88397866d3ede578503e188f9ad2 (diff) | |
download | linux-fsl-qoriq-560e28e14f69ad3440a6e8c283dcfd37e1e41c2d.tar.xz |
cfg80211: call reg_notifier() once
We are calling the reg_notifier() callback per band, this is
not necessary, just call it once.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r-- | 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 bc494ce..0f93d45 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -947,9 +947,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, 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 |