/* * Copyright (c) 2017 Redpine Signals Inc. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #ifndef __RSI_PS_H__ #define __RSI_PS_H__ #define PS_CONFIRM_INDEX … #define RSI_DEF_DS_WAKEUP_PERIOD … #define RSI_DEF_LISTEN_INTERVAL … #define RSI_SLEEP_TYPE_LP … enum ps_state { … }; struct ps_sleep_params { … } __packed; struct rsi_ps_info { … } __packed; char *str_psstate(enum ps_state state); void rsi_enable_ps(struct rsi_hw *adapter, struct ieee80211_vif *vif); void rsi_disable_ps(struct rsi_hw *adapter, struct ieee80211_vif *vif); int rsi_handle_ps_confirm(struct rsi_hw *adapter, u8 *msg); void rsi_default_ps_params(struct rsi_hw *hw); void rsi_conf_uapsd(struct rsi_hw *adapter, struct ieee80211_vif *vif); #endif