iwlwifi: mvm: fix default disabled aggs in sta
authorLiad Kaufman <liad.kaufman@intel.com>
Tue, 1 Sep 2015 15:50:22 +0000 (18:50 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Mon, 5 Oct 2015 09:29:04 +0000 (12:29 +0300)
For the ADD_STA command, when the flag for aggregation
disabling is set, there is a bitmap indicated what TIDs
are disabling aggregations and what aren't. Currently, by
default, all TIDs allow for aggregations since the value
we begin with is 0.

Change this default value to 0xffff so all TIDs don't
allow aggregations until explicitly turned on.

Signed-off-by: Liad Kaufman <liad.kaufman@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/iwlwifi/mvm/sta.c

index fe2f53850d36f6b306b0d543fb8a26ed8777a79e..18ca030d28b2db555f51a3df6a6fc335e257a0ca 100644 (file)
@@ -292,7 +292,7 @@ int iwl_mvm_add_sta(struct iwl_mvm *mvm,
 
        /* HW restart, don't assume the memory has been zeroed */
        atomic_set(&mvm->pending_frames[sta_id], 0);
-       mvm_sta->tid_disable_agg = 0;
+       mvm_sta->tid_disable_agg = 0xffff; /* No aggs at first */
        mvm_sta->tfd_queue_msk = 0;
 
        /* allocate new queues for a TDLS station */