aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleksij Rempel <linux@rempel-privat.de>2014-11-06 02:53:24 -0500
committerJohn W. Linville <linville@tuxdriver.com>2014-11-11 16:31:13 -0500
commit0198c2e2987c5cd4980f15126d7c68759f4def95 (patch)
tree2beb1ac6c7a3ff9a03860afe39bdfe14d5228e7e
parent1111d426ef6a62903a8427a80c2a20cdf0380349 (diff)
ath: add struct ath_ps_ops
we will need it to make common code Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/ath/ath.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath.h b/drivers/net/wireless/ath/ath.h
index 9c56ecbae37f..76668dc79c0e 100644
--- a/drivers/net/wireless/ath/ath.h
+++ b/drivers/net/wireless/ath/ath.h
@@ -134,6 +134,11 @@ struct ath_ops {
134struct ath_common; 134struct ath_common;
135struct ath_bus_ops; 135struct ath_bus_ops;
136 136
137struct ath_ps_ops {
138 void (*wakeup)(struct ath_common *common);
139 void (*restore)(struct ath_common *common);
140};
141
137struct ath_common { 142struct ath_common {
138 void *ah; 143 void *ah;
139 void *priv; 144 void *priv;
@@ -168,6 +173,7 @@ struct ath_common {
168 struct ath_regulatory reg_world_copy; 173 struct ath_regulatory reg_world_copy;
169 const struct ath_ops *ops; 174 const struct ath_ops *ops;
170 const struct ath_bus_ops *bus_ops; 175 const struct ath_bus_ops *bus_ops;
176 const struct ath_ps_ops *ps_ops;
171 177
172 bool btcoex_enabled; 178 bool btcoex_enabled;
173 bool disable_ani; 179 bool disable_ani;
@@ -177,6 +183,11 @@ struct ath_common {
177 struct ieee80211_supported_band sbands[IEEE80211_NUM_BANDS]; 183 struct ieee80211_supported_band sbands[IEEE80211_NUM_BANDS];
178}; 184};
179 185
186static inline const struct ath_ps_ops *ath_ps_ops(struct ath_common *common)
187{
188 return common->ps_ops;
189}
190
180struct sk_buff *ath_rxbuf_alloc(struct ath_common *common, 191struct sk_buff *ath_rxbuf_alloc(struct ath_common *common,
181 u32 len, 192 u32 len,
182 gfp_t gfp_mask); 193 gfp_t gfp_mask);