]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: iwlwifi: clear link_id in time_event
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Sun, 4 Feb 2024 22:06:16 +0000 (00:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Feb 2024 08:51:24 +0000 (09:51 +0100)
commitfa4c77df119235d88bf7f9be473c3fd9a337ab63
tree005b2ecbea84ede4b1e3d75672441b4d9b5b069d
parent45e9ed0dea611b3fae1acb07f787bdcca6611a88
wifi: iwlwifi: clear link_id in time_event

[ Upstream commit 3012477cd510044d346c5e0465ead4732aef8349 ]

Before sending a SESSION PROTECTION cmd the driver checks if
the link_id indicated in the time event (and for which the cmd will be
sent) is valid and exists.
Clear the te_data::link_id when FW notifies that a session protection
ended, so the check will actually fail when it should.

Fixes: 135065837310 ("wifi: iwlwifi: support link_id in SESSION_PROTECTION cmd")
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240204235836.c64a6b3606c2.I35cdc08e8a3be282563163690f8ca3edb51a3854@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlwifi/mvm/time-event.c