/* XXX: add support for the rest of enum nl80211_reg_rule_flags, we may want to just have the channel structure use these  */
static u32 map_regdom_flags(u32 rd_flags)
/* XXX: add support for the rest of enum nl80211_reg_rule_flags, we may want to just have the channel structure use these  */
static u32 map_regdom_flags(u32 rd_flags)
{
	u32 channel_flags = 0;
	if (rd_flags & NL80211_RRF_PASSIVE_SCAN)
		channel_flags |= IEEE80211_CHAN_PASSIVE_SCAN;
	if (rd_flags & NL80211_RRF_NO_IBSS)
		channel_flags |= IEEE80211_CHAN_NO_IBSS;
	if (rd_flags & NL80211_RRF_DFS)
		channel_flags |= IEEE80211_CHAN_RADAR;
	return channel_flags;
}