ath9k: fix reg_notifier() flags used upon a country IE
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 3 Feb 2009 04:35:05 +0000 (20:35 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 9 Feb 2009 20:03:48 +0000 (15:03 -0500)
The nl80211 rule flags were being used.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath9k/regd.c

index dfcc3b5274cb418fe26fc874064e622887ed909a..fe08a4fdf77008f2cc688447c63d035456460496 100644 (file)
@@ -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;
        }
 }