aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/regd.h
diff options
context:
space:
mode:
authorBob Copeland <me@bobcopeland.com>2009-03-30 22:30:30 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-04-22 16:54:37 -0400
commite3bb249be89dd387e78ca382d08fad31745edac9 (patch)
tree9050d6502ace74b8c5c3577825d1b91011fce8be /drivers/net/wireless/ath/regd.h
parent3a702e49c03ba959e3f5bb2b74ec9921a81c8c98 (diff)
ath: move more setup code into ath_regd_init
Setup the wiphy regulatory parameters when first initializing the Atheros regulatory module. We can remove five exported symbols this way and simplify the driver code for both ath5k and ath9k. Signed-off-by: Bob Copeland <me@bobcopeland.com> Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/regd.h')
-rw-r--r--drivers/net/wireless/ath/regd.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/net/wireless/ath/regd.h b/drivers/net/wireless/ath/regd.h
index 981f5cf2bdb8..eba7c7123b50 100644
--- a/drivers/net/wireless/ath/regd.h
+++ b/drivers/net/wireless/ath/regd.h
@@ -254,15 +254,9 @@ enum CountryCode {
254}; 254};
255 255
256bool ath_is_world_regd(struct ath_regulatory *reg); 256bool ath_is_world_regd(struct ath_regulatory *reg);
257const 257int ath_regd_init(struct ath_regulatory *reg, struct wiphy *wiphy,
258struct ieee80211_regdomain *ath_world_regdomain(struct ath_regulatory *reg); 258 int (*reg_notifier)(struct wiphy *wiphy,
259const struct ieee80211_regdomain *ath_default_world_regdomain(void); 259 struct regulatory_request *request));
260void ath_reg_apply_world_flags(struct wiphy *wiphy,
261 enum nl80211_reg_initiator,
262 struct ath_regulatory *reg);
263void ath_reg_apply_radar_flags(struct wiphy *wiphy);
264int ath_regd_init(struct ath_regulatory *reg);
265bool ath_regd_is_eeprom_valid(struct ath_regulatory *reg);
266u32 ath_regd_get_band_ctl(struct ath_regulatory *reg, 260u32 ath_regd_get_band_ctl(struct ath_regulatory *reg,
267 enum ieee80211_band band); 261 enum ieee80211_band band);
268int ath_reg_notifier_apply(struct wiphy *wiphy, 262int ath_reg_notifier_apply(struct wiphy *wiphy,