wifi: iwlwifi: cancel session protection only if there is one
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Mon, 5 Feb 2024 19:21:08 +0000 (21:21 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 15 Feb 2024 09:58:36 +0000 (10:58 +0100)
commit77770189921e38597a42744c7032b8222538cdf3
treedbdaf4bfdea871f508505795904e2986baaa7870
parent35c1bbd93c4e6969b3ac238b48a8bdff3e223ed8
wifi: iwlwifi: cancel session protection only if there is one

mac80211 might (due to an unavoidable race) cancel a ROC that has already
expired. In that case the driver should not send the session protection
cmd to cancel the ROC.
When session protection is supported, the te_data::id field is reused
to save the configuration id. Check it before sending the cmd.

Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240205211151.30176bf869d9.Id811c20d3746b870cbe0c946bbfe1c0ab0a290cb@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/time-event.c