diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-08-17 21:07:23 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-20 11:36:03 -0400 |
commit | 608b88cb34b0e70a538ee1fc334cc833ef691836 (patch) | |
tree | 6d2a363cea722241581306964da6cff8724b407a /drivers/net/wireless/ath/ath.h | |
parent | 4c48381786159ba3f3d8a33d967aeb049341a220 (diff) |
ath: move regulatory info into shared common structure
This moves the shared regulatory structure into the
common structure. We will use this ongoing for common
data.
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/ath.h')
-rw-r--r-- | drivers/net/wireless/ath/ath.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath.h b/drivers/net/wireless/ath/ath.h index e284cd3ac6d4..a63e90cbf9e5 100644 --- a/drivers/net/wireless/ath/ath.h +++ b/drivers/net/wireless/ath/ath.h | |||
@@ -19,8 +19,26 @@ | |||
19 | 19 | ||
20 | #include <linux/skbuff.h> | 20 | #include <linux/skbuff.h> |
21 | 21 | ||
22 | struct reg_dmn_pair_mapping { | ||
23 | u16 regDmnEnum; | ||
24 | u16 reg_5ghz_ctl; | ||
25 | u16 reg_2ghz_ctl; | ||
26 | }; | ||
27 | |||
28 | struct ath_regulatory { | ||
29 | char alpha2[2]; | ||
30 | u16 country_code; | ||
31 | u16 max_power_level; | ||
32 | u32 tp_scale; | ||
33 | u16 current_rd; | ||
34 | u16 current_rd_ext; | ||
35 | int16_t power_limit; | ||
36 | struct reg_dmn_pair_mapping *regpair; | ||
37 | }; | ||
38 | |||
22 | struct ath_common { | 39 | struct ath_common { |
23 | u16 cachelsz; | 40 | u16 cachelsz; |
41 | struct ath_regulatory regulatory; | ||
24 | }; | 42 | }; |
25 | 43 | ||
26 | struct sk_buff *ath_rxbuf_alloc(struct ath_common *common, | 44 | struct sk_buff *ath_rxbuf_alloc(struct ath_common *common, |