aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath9k/regd.c
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2009-01-28 15:17:47 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-02-09 15:03:35 -0500
commit8c63c46d58c9dca6d0bfacfb41958c55d9b75ea0 (patch)
tree7216d95e832dc3b0088368975087474acface697 /drivers/net/wireless/ath9k/regd.c
parent4e30ffa29c1388006e5d36d5ea8c5b46b38b36d5 (diff)
ath9k: replace usage of internal wireless_modes for conf
No need to use our internal wireless mode variable when cfg80211 already has its own. Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/regd.c')
-rw-r--r--drivers/net/wireless/ath9k/regd.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath9k/regd.c b/drivers/net/wireless/ath9k/regd.c
index ec88f78743e9..b84fbe30109b 100644
--- a/drivers/net/wireless/ath9k/regd.c
+++ b/drivers/net/wireless/ath9k/regd.c
@@ -158,8 +158,6 @@ const struct ieee80211_regdomain *ath9k_world_regdomain(struct ath_hal *ah)
158static void ath9k_reg_apply_5ghz_adhoc_flags(struct wiphy *wiphy, 158static void ath9k_reg_apply_5ghz_adhoc_flags(struct wiphy *wiphy,
159 enum reg_set_by setby) 159 enum reg_set_by setby)
160{ 160{
161 struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy);
162 struct ath_softc *sc = hw->priv;
163 struct ieee80211_supported_band *sband; 161 struct ieee80211_supported_band *sband;
164 const struct ieee80211_reg_rule *reg_rule; 162 const struct ieee80211_reg_rule *reg_rule;
165 struct ieee80211_channel *ch; 163 struct ieee80211_channel *ch;
@@ -169,8 +167,7 @@ static void ath9k_reg_apply_5ghz_adhoc_flags(struct wiphy *wiphy,
169 167
170 if (setby != REGDOM_SET_BY_COUNTRY_IE) 168 if (setby != REGDOM_SET_BY_COUNTRY_IE)
171 return; 169 return;
172 if (!test_bit(ATH9K_MODE_11A, 170 if (!wiphy->bands[IEEE80211_BAND_5GHZ])
173 sc->sc_ah->ah_caps.wireless_modes))
174 return; 171 return;
175 172
176 sband = wiphy->bands[IEEE80211_BAND_5GHZ]; 173 sband = wiphy->bands[IEEE80211_BAND_5GHZ];