aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath9k/regd.h
diff options
context:
space:
mode:
authorBob Copeland <me@bobcopeland.com>2009-03-30 22:30:28 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-04-22 16:54:37 -0400
commitc02cf3738c9dbc446c160b9d49a001eb2be316c8 (patch)
tree0a119c84972ead9f15752da578105391b31d31d5 /drivers/net/wireless/ath9k/regd.h
parentfc2ada30cacc28c96eabc598d3ef294338d8dcf5 (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.h17
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
236bool ath9k_is_world_regd(struct ath_hw *ah); 238bool ath9k_is_world_regd(struct ath9k_regulatory *reg);
237const struct ieee80211_regdomain *ath9k_world_regdomain(struct ath_hw *ah); 239const struct ieee80211_regdomain *ath9k_world_regdomain(
240 struct ath9k_regulatory *reg);
238const struct ieee80211_regdomain *ath9k_default_world_regdomain(void); 241const struct ieee80211_regdomain *ath9k_default_world_regdomain(void);
239void ath9k_reg_apply_world_flags(struct wiphy *wiphy, 242void ath9k_reg_apply_world_flags(struct wiphy *wiphy,
240 enum nl80211_reg_initiator initiator); 243 enum nl80211_reg_initiator,
244 struct ath9k_regulatory *reg);
241void ath9k_reg_apply_radar_flags(struct wiphy *wiphy); 245void ath9k_reg_apply_radar_flags(struct wiphy *wiphy);
242int ath9k_regd_init(struct ath_hw *ah); 246int ath9k_regd_init(struct ath9k_regulatory *reg);
243bool ath9k_regd_is_eeprom_valid(struct ath_hw *ah); 247bool ath9k_regd_is_eeprom_valid(struct ath9k_regulatory *reg);
244u32 ath9k_regd_get_ctl(struct ath_hw *ah, struct ath9k_channel *chan); 248u32 ath9k_regd_get_ctl(struct ath9k_regulatory *reg,
249 struct ath9k_channel *chan);
245int ath9k_reg_notifier(struct wiphy *wiphy, struct regulatory_request *request); 250int ath9k_reg_notifier(struct wiphy *wiphy, struct regulatory_request *request);
246 251
247#endif 252#endif