iwlwifi: mvm: avoid clearing a just saved session protection id
authorShaul Triebitz <shaul.triebitz@intel.com>
Sat, 4 Dec 2021 11:10:47 +0000 (13:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 10:04:37 +0000 (11:04 +0100)
commitd63ddcee9ff3454a14f440ae684afcdbdc03fcf3
tree8fb7566d7c88cdae7fd1cf7211cd1b54fe58d714
parent59b49457fbd870b4d033159698c452f7248b57b1
iwlwifi: mvm: avoid clearing a just saved session protection id

[ Upstream commit 8e967c137df3b236d2075f9538cb888129425d1a ]

When scheduling a session protection the id is saved but
then it may be cleared when calling iwl_mvm_te_clear_data
(if a previous session protection is currently active).
Fix it by saving the id after calling iwl_mvm_te_clear_data.

Signed-off-by: Shaul Triebitz <shaul.triebitz@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20211204130722.b0743a588d14.I098fef6677d0dab3ef1b6183ed206a10bab01eb2@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlwifi/mvm/time-event.c