]> git.karo-electronics.de Git - linux-beck.git/commitdiff
cfg80211: call reg_notifier() once
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Thu, 8 Jan 2009 01:43:32 +0000 (17:43 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 29 Jan 2009 20:59:58 +0000 (15:59 -0500)
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>
net/wireless/reg.c

index bc494cef21026e943215670b9899378fcdd900c3..0f93d4526f37052180b929166f951b7bd4c684ce 100644 (file)
@@ -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