aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/reg.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/wireless/reg.c')
-rw-r--r--net/wireless/reg.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index 5db02a3d9c02..81acb07f1d44 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -937,13 +937,15 @@ static void update_all_wiphy_regulatory(enum reg_set_by setby)
937 struct cfg80211_registered_device *drv; 937 struct cfg80211_registered_device *drv;
938 938
939 list_for_each_entry(drv, &cfg80211_drv_list, list) 939 list_for_each_entry(drv, &cfg80211_drv_list, list)
940 if (!ignore_reg_update(&drv->wiphy, setby)) 940 wiphy_update_regulatory(&drv->wiphy, setby);
941 wiphy_update_regulatory(&drv->wiphy, setby);
942} 941}
943 942
944void wiphy_update_regulatory(struct wiphy *wiphy, enum reg_set_by setby) 943void wiphy_update_regulatory(struct wiphy *wiphy, enum reg_set_by setby)
945{ 944{
946 enum ieee80211_band band; 945 enum ieee80211_band band;
946
947 if (ignore_reg_update(wiphy, setby))
948 return;
947 for (band = 0; band < IEEE80211_NUM_BANDS; band++) { 949 for (band = 0; band < IEEE80211_NUM_BANDS; band++) {
948 if (wiphy->bands[band]) 950 if (wiphy->bands[band])
949 handle_band(wiphy, band); 951 handle_band(wiphy, band);