]> git.ipfire.org Git - people/arne_f/kernel.git/commit
iwlwifi: mvm: fix A-MPDU reference assignment
authorJohannes Berg <johannes.berg@intel.com>
Thu, 8 Nov 2018 08:51:56 +0000 (09:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:46:14 +0000 (14:46 +0100)
commitf401472074c6900cb0a87aa91fc4d86b34df0374
tree9c4bff562a86caefb5b53a29ca5f52b042cf2229
parent1abaee5e625d202274ed9bb32431d9958fae82cd
iwlwifi: mvm: fix A-MPDU reference assignment

[ Upstream commit 1f7698abedeeb3fef3cbcf78e16f925df675a179 ]

The current code assigns the reference, and then goes to increment
it if the toggle bit has changed. That way, we get

Toggle  0  0  0  0  1  1  1  1
ID      1  1  1  1  1  2  2  2

Fix that by assigning the post-toggle ID to get

Toggle  0  0  0  0  1  1  1  1
ID      1  1  1  1  2  2  2  2

Reported-by: Danny Alexander <danny.alexander@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Fixes: fbe4112791b8 ("iwlwifi: mvm: update mpdu metadata API")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c