wifi: rtlwifi: cleanup struct rtl_ps_ctl
Remove set but otherwise unused 'sleep_ms', 'last_action', 'state' and 'last_slept' members of 'struct rtl_ps_ctl' (these seems to be a leftovers from some older code) and adjust 'rtl_swlps_wq_callback()' accordingly. Compile tested only. Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru> Acked-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20231013124534.19714-1-dmantipov@yandex.ru
This commit is contained in:
parent
a86a8ca798
commit
9a66e73094
@ -681,25 +681,10 @@ void rtl_swlps_wq_callback(struct work_struct *work)
|
||||
ps_work.work);
|
||||
struct ieee80211_hw *hw = rtlworks->hw;
|
||||
struct rtl_priv *rtlpriv = rtl_priv(hw);
|
||||
bool ps = false;
|
||||
|
||||
ps = (hw->conf.flags & IEEE80211_CONF_PS);
|
||||
|
||||
/* we can sleep after ps null send ok */
|
||||
if (rtlpriv->psc.state_inap) {
|
||||
if (rtlpriv->psc.state_inap)
|
||||
rtl_swlps_rf_sleep(hw);
|
||||
|
||||
if (rtlpriv->psc.state && !ps) {
|
||||
rtlpriv->psc.sleep_ms = jiffies_to_msecs(jiffies -
|
||||
rtlpriv->psc.last_action);
|
||||
}
|
||||
|
||||
if (ps)
|
||||
rtlpriv->psc.last_slept = jiffies;
|
||||
|
||||
rtlpriv->psc.last_action = jiffies;
|
||||
rtlpriv->psc.state = ps;
|
||||
}
|
||||
}
|
||||
|
||||
static void rtl_p2p_noa_ie(struct ieee80211_hw *hw, void *data,
|
||||
|
@ -2032,19 +2032,15 @@ struct rtl_ps_ctl {
|
||||
|
||||
/* for SW LPS*/
|
||||
bool sw_ps_enabled;
|
||||
bool state;
|
||||
bool state_inap;
|
||||
bool multi_buffered;
|
||||
u16 nullfunc_seq;
|
||||
unsigned int dtim_counter;
|
||||
unsigned int sleep_ms;
|
||||
unsigned long last_sleep_jiffies;
|
||||
unsigned long last_awake_jiffies;
|
||||
unsigned long last_delaylps_stamp_jiffies;
|
||||
unsigned long last_dtim;
|
||||
unsigned long last_beacon;
|
||||
unsigned long last_action;
|
||||
unsigned long last_slept;
|
||||
|
||||
/*For P2P PS */
|
||||
struct rtl_p2p_ps_info p2p_ps_info;
|
||||
|
Loading…
x
Reference in New Issue
Block a user