Commit 0198c2e2 authored by Oleksij Rempel's avatar Oleksij Rempel Committed by John W. Linville

ath: add struct ath_ps_ops

we will need it to make common code
Signed-off-by: default avatarOleksij Rempel <linux@rempel-privat.de>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 1111d426
...@@ -134,6 +134,11 @@ struct ath_ops { ...@@ -134,6 +134,11 @@ struct ath_ops {
struct ath_common; struct ath_common;
struct ath_bus_ops; struct ath_bus_ops;
struct ath_ps_ops {
void (*wakeup)(struct ath_common *common);
void (*restore)(struct ath_common *common);
};
struct ath_common { struct ath_common {
void *ah; void *ah;
void *priv; void *priv;
...@@ -168,6 +173,7 @@ struct ath_common { ...@@ -168,6 +173,7 @@ struct ath_common {
struct ath_regulatory reg_world_copy; struct ath_regulatory reg_world_copy;
const struct ath_ops *ops; const struct ath_ops *ops;
const struct ath_bus_ops *bus_ops; const struct ath_bus_ops *bus_ops;
const struct ath_ps_ops *ps_ops;
bool btcoex_enabled; bool btcoex_enabled;
bool disable_ani; bool disable_ani;
...@@ -177,6 +183,11 @@ struct ath_common { ...@@ -177,6 +183,11 @@ struct ath_common {
struct ieee80211_supported_band sbands[IEEE80211_NUM_BANDS]; struct ieee80211_supported_band sbands[IEEE80211_NUM_BANDS];
}; };
static inline const struct ath_ps_ops *ath_ps_ops(struct ath_common *common)
{
return common->ps_ops;
}
struct sk_buff *ath_rxbuf_alloc(struct ath_common *common, struct sk_buff *ath_rxbuf_alloc(struct ath_common *common,
u32 len, u32 len,
gfp_t gfp_mask); gfp_t gfp_mask);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment