iwlwifi: mvm: fix array out of bounds reference
authorAvraham Stern <avraham.stern@intel.com>
Mon, 5 Mar 2018 09:26:53 +0000 (11:26 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Mon, 19 Mar 2018 08:50:37 +0000 (10:50 +0200)
commit4a6d2e525b43eba5870ea7e360f59aa65de00705
tree8adc89152f08edfa179d82ac98ba6fbe6782216a
parentdf65c8d1728adee2a52c30287d33da83a8c87480
iwlwifi: mvm: fix array out of bounds reference

When starting aggregation, the code checks the status of the queue
allocated to the aggregation tid, which might not yet be allocated
and thus the queue index may be invalid.
Fix this by reserving a new queue in case the queue id is invalid.

While at it, clean up some unreachable code (a condition that is
already handled earlier) and remove all the non-DQA comments since
non-DQA mode is no longer supported.

Fixes: cf961e16620f ("iwlwifi: mvm: support dqa-mode agg on non-shared 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