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)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 8 Feb 2024 12:26:07 +0000 (13:26 +0100)
commit3012477cd510044d346c5e0465ead4732aef8349
treec474bfb4a5c836e35b4d92229fd269af7886f026
parent2e57b77583ca34fdb6e14f253172636c52f81cf2
wifi: iwlwifi: clear link_id in time_event

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>
drivers/net/wireless/intel/iwlwifi/mvm/time-event.c