Commit 72c240fe authored by Wei Yongjun's avatar Wei Yongjun Committed by Luca Coelho

iwlwifi: mvm: use setup_timer instead of init_timer and data fields

Use setup_timer function instead of initializing timer with the function
and data fields
Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
parent a3e939df
...@@ -2050,11 +2050,9 @@ int iwl_mvm_sta_rx_agg(struct iwl_mvm *mvm, struct ieee80211_sta *sta, ...@@ -2050,11 +2050,9 @@ int iwl_mvm_sta_rx_agg(struct iwl_mvm *mvm, struct ieee80211_sta *sta,
baid_data->baid = baid; baid_data->baid = baid;
baid_data->timeout = timeout; baid_data->timeout = timeout;
baid_data->last_rx = jiffies; baid_data->last_rx = jiffies;
init_timer(&baid_data->session_timer); setup_timer(&baid_data->session_timer,
baid_data->session_timer.function = iwl_mvm_rx_agg_session_expired,
iwl_mvm_rx_agg_session_expired; (unsigned long)&mvm->baid_map[baid]);
baid_data->session_timer.data =
(unsigned long)&mvm->baid_map[baid];
baid_data->mvm = mvm; baid_data->mvm = mvm;
baid_data->tid = tid; baid_data->tid = tid;
baid_data->sta_id = mvm_sta->sta_id; baid_data->sta_id = mvm_sta->sta_id;
......
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