iwlagn: use IWL_MAX_TID_COUNT for WoWLAN
authorJohannes Berg <johannes.berg@intel.com>
Fri, 2 Dec 2011 20:24:45 +0000 (12:24 -0800)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Thu, 8 Dec 2011 23:55:46 +0000 (15:55 -0800)
Now that I corrected IWL_MAX_TID_COUNT to be 8
instead of 9, we can use it in WoWLAN suspend.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-agn-lib.c

index 1d63422..057f952 100644 (file)
@@ -1157,7 +1157,7 @@ int iwlagn_suspend(struct iwl_priv *priv,
         * For QoS counters, we store the one to use next, so subtract 0x10
         * 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 -= 0x10;
                wakeup_filter_cmd.qos_seq[i] = cpu_to_le16(seq);