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

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

ath9k: fix reg_notifier() flags used upon a country IE



The nl80211 rule flags were being used.

Signed-off-by: default avatarLuis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 24b5bcc6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -192,11 +192,11 @@ static void ath9k_reg_apply_5ghz_beaconing_flags(struct wiphy *wiphy,
		 * it by applying our static world regdomain by default during
		 * probe */
		if (!(reg_rule->flags & NL80211_RRF_NO_IBSS))
			ch->flags &= ~NL80211_RRF_NO_IBSS;
			ch->flags &= ~IEEE80211_CHAN_NO_IBSS;
		if (!ath9k_is_radar_freq(ch->center_freq))
			continue;
		if (!(reg_rule->flags & NL80211_RRF_PASSIVE_SCAN))
			ch->flags &= ~NL80211_RRF_PASSIVE_SCAN;
			ch->flags &= ~IEEE80211_CHAN_PASSIVE_SCAN;
	}
}