Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 560e28e1 authored by Luis R. Rodriguez's avatar Luis R. Rodriguez Committed by John W. Linville
Browse files

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: default avatarLuis R. Rodriguez <lrodriguez@atheros.com>
Acked-by: default avatarJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 4be8c387
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -947,10 +947,10 @@ 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);
}
}

/* Return value which can be used by ignore_request() to indicate
 * it has been determined we should intersect two regulatory domains */