diff options
author | Bob Copeland <me@bobcopeland.com> | 2009-03-30 22:30:28 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-22 16:54:37 -0400 |
commit | c02cf3738c9dbc446c160b9d49a001eb2be316c8 (patch) | |
tree | 0a119c84972ead9f15752da578105391b31d31d5 /drivers/net/wireless/ath9k/regd.h | |
parent | fc2ada30cacc28c96eabc598d3ef294338d8dcf5 (diff) |
ath9k: pass regd structure directly to regulatory functions
All regulatory information is encapsulated by the ath9k_regulatory
struct, so we can now change all the callers to take that directly
instead of struct ath_hw. This in turn will enable us to move the
regulatory functions to common code also used by ath5k, since both
can use this regulatory struct.
Signed-off-by: Bob Copeland <me@bobcopeland.com>
Acked-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/regd.h')
-rw-r--r-- | drivers/net/wireless/ath9k/regd.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/drivers/net/wireless/ath9k/regd.h b/drivers/net/wireless/ath9k/regd.h index 9f5fbd4eea7a..61fa42ebfbc4 100644 --- a/drivers/net/wireless/ath9k/regd.h +++ b/drivers/net/wireless/ath9k/regd.h | |||
@@ -17,6 +17,8 @@ | |||
17 | #ifndef REGD_H | 17 | #ifndef REGD_H |
18 | #define REGD_H | 18 | #define REGD_H |
19 | 19 | ||
20 | #include <linux/nl80211.h> | ||
21 | |||
20 | #define COUNTRY_ERD_FLAG 0x8000 | 22 | #define COUNTRY_ERD_FLAG 0x8000 |
21 | #define WORLDWIDE_ROAMING_FLAG 0x4000 | 23 | #define WORLDWIDE_ROAMING_FLAG 0x4000 |
22 | 24 | ||
@@ -233,15 +235,18 @@ enum CountryCode { | |||
233 | CTRY_BELGIUM2 = 5002 | 235 | CTRY_BELGIUM2 = 5002 |
234 | }; | 236 | }; |
235 | 237 | ||
236 | bool ath9k_is_world_regd(struct ath_hw *ah); | 238 | bool ath9k_is_world_regd(struct ath9k_regulatory *reg); |
237 | const struct ieee80211_regdomain *ath9k_world_regdomain(struct ath_hw *ah); | 239 | const struct ieee80211_regdomain *ath9k_world_regdomain( |
240 | struct ath9k_regulatory *reg); | ||
238 | const struct ieee80211_regdomain *ath9k_default_world_regdomain(void); | 241 | const struct ieee80211_regdomain *ath9k_default_world_regdomain(void); |
239 | void ath9k_reg_apply_world_flags(struct wiphy *wiphy, | 242 | void ath9k_reg_apply_world_flags(struct wiphy *wiphy, |
240 | enum nl80211_reg_initiator initiator); | 243 | enum nl80211_reg_initiator, |
244 | struct ath9k_regulatory *reg); | ||
241 | void ath9k_reg_apply_radar_flags(struct wiphy *wiphy); | 245 | void ath9k_reg_apply_radar_flags(struct wiphy *wiphy); |
242 | int ath9k_regd_init(struct ath_hw *ah); | 246 | int ath9k_regd_init(struct ath9k_regulatory *reg); |
243 | bool ath9k_regd_is_eeprom_valid(struct ath_hw *ah); | 247 | bool ath9k_regd_is_eeprom_valid(struct ath9k_regulatory *reg); |
244 | u32 ath9k_regd_get_ctl(struct ath_hw *ah, struct ath9k_channel *chan); | 248 | u32 ath9k_regd_get_ctl(struct ath9k_regulatory *reg, |
249 | struct ath9k_channel *chan); | ||
245 | int ath9k_reg_notifier(struct wiphy *wiphy, struct regulatory_request *request); | 250 | int ath9k_reg_notifier(struct wiphy *wiphy, struct regulatory_request *request); |
246 | 251 | ||
247 | #endif | 252 | #endif |