/* Called upon reg changes or a new wiphy is added  */
static void wiphy_update_beacon_reg(struct wiphy *wiphy)
/* Called upon reg changes or a new wiphy is added  */
static void wiphy_update_beacon_reg(struct wiphy *wiphy)
{
	unsigned int i;
	struct ieee80211_supported_band *sband;
	struct reg_beacon *reg_beacon;
	assert_cfg80211_lock();
	if (list_empty(&reg_beacon_list))
		return;
	list_for_each_entry(reg_beacon, &reg_beacon_list, list) {
		if (!wiphy->bands[reg_beacon->chan.band])
			continue;
		sband = wiphy->bands[reg_beacon->chan.band];
		for (i = 0; i < sband->n_channels; i++)
			handle_reg_beacon(wiphy, i, reg_beacon);
	}
}