iwlwifi: mvm: clear tx queue id when unreserving aggregation queue
authorAvraham Stern <avraham.stern@intel.com>
Wed, 7 Mar 2018 08:41:18 +0000 (10:41 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Mon, 19 Mar 2018 08:50:36 +0000 (10:50 +0200)
commit4b387906b1c3692bb790388c335515c0cf098a23
tree968a6db9068d7e3713f02d538d8be3ee8934b0ca
parent19125cb0591ae63cd4591e3dfe4c22058e748518
iwlwifi: mvm: clear tx queue id when unreserving aggregation queue

When a queue is reserved for aggregation, the queue id is assigned
to the tid_data. This is fine since iwl_mvm_sta_tx_agg_oper()
takes care of allocating the queue before actual tx starts.
When the reservation is cancelled (e.g. when the AP declined the
aggregation request) the tid_data is not cleared. As a result,
following tx for this tid was trying to use an unallocated queue.

Fix this by setting the txq_id for the tid to invalid when unreserving
the queue.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/sta.c