Commit e0467a30 authored by Johannes Berg's avatar Johannes Berg Committed by Wey-Yi Guy

iwlagn: use IWL_MAX_TID_COUNT for WoWLAN

Now that I corrected IWL_MAX_TID_COUNT to be 8
instead of 9, we can use it in WoWLAN suspend.
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
parent 9a215e40
...@@ -1157,7 +1157,7 @@ int iwlagn_suspend(struct iwl_priv *priv, ...@@ -1157,7 +1157,7 @@ int iwlagn_suspend(struct iwl_priv *priv,
* For QoS counters, we store the one to use next, so subtract 0x10 * For QoS counters, we store the one to use next, so subtract 0x10
* since the uCode will add 0x10 before using the value. * since the uCode will add 0x10 before using the value.
*/ */
for (i = 0; i < 8; i++) { for (i = 0; i < IWL_MAX_TID_COUNT; i++) {
seq = priv->shrd->tid_data[IWL_AP_ID][i].seq_number; seq = priv->shrd->tid_data[IWL_AP_ID][i].seq_number;
seq -= 0x10; seq -= 0x10;
wakeup_filter_cmd.qos_seq[i] = cpu_to_le16(seq); wakeup_filter_cmd.qos_seq[i] = cpu_to_le16(seq);
......
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