/* Called when a scan on a wiphy finds a beacon on new channel  */
static void wiphy_update_new_beacon(struct wiphy *wiphy, struct reg_beacon *reg_beacon)
/* Called when a scan on a wiphy finds a beacon on new channel  */
static void wiphy_update_new_beacon(struct wiphy *wiphy, struct reg_beacon *reg_beacon)
{
	unsigned int i;
	struct ieee80211_supported_band *sband;
	assert_cfg80211_lock();
	if (!wiphy->bands[reg_beacon->chan.band])
		return;
	sband = wiphy->bands[reg_beacon->chan.band];
	for (i = 0; i < sband->n_channels; i++)
		handle_reg_beacon(wiphy, i, reg_beacon);
}