|
@@ -1402,11 +1402,24 @@ int iwl_mvm_add_sta(struct iwl_mvm *mvm,
|
|
|
|
|
|
if (iwl_mvm_has_new_rx_api(mvm) &&
|
|
|
!test_bit(IWL_MVM_STATUS_IN_HW_RESTART, &mvm->status)) {
|
|
|
+ int q;
|
|
|
+
|
|
|
dup_data = kcalloc(mvm->trans->num_rx_queues,
|
|
|
- sizeof(*dup_data),
|
|
|
- GFP_KERNEL);
|
|
|
+ sizeof(*dup_data), GFP_KERNEL);
|
|
|
if (!dup_data)
|
|
|
return -ENOMEM;
|
|
|
+ /*
|
|
|
+ * Initialize all the last_seq values to 0xffff which can never
|
|
|
+ * compare equal to the frame's seq_ctrl in the check in
|
|
|
+ * iwl_mvm_is_dup() since the lower 4 bits are the fragment
|
|
|
+ * number and fragmented packets don't reach that function.
|
|
|
+ *
|
|
|
+ * This thus allows receiving a packet with seqno 0 and the
|
|
|
+ * retry bit set as the very first packet on a new TID.
|
|
|
+ */
|
|
|
+ for (q = 0; q < mvm->trans->num_rx_queues; q++)
|
|
|
+ memset(dup_data[q].last_seq, 0xff,
|
|
|
+ sizeof(dup_data[q].last_seq));
|
|
|
mvm_sta->dup_data = dup_data;
|
|
|
}
|
|
|
|