]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: fix AUX ROC removal
authorAvraham Stern <avraham.stern@intel.com>
Sun, 19 Dec 2021 11:28:31 +0000 (13:28 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 21 Dec 2021 10:38:15 +0000 (12:38 +0200)
commitf57f3ba754ef5125dff4801319bb9778ae77dd19
tree79db72bf0aee6596a9d99e543068a748a4549ef4
parent3d3a69f8932e54760540dd70495b0be2bc751dcc
iwlwifi: mvm: fix AUX ROC removal

When IWL_UCODE_TLV_CAPA_SESSION_PROT_CMD is set, removing a time event
always tries to cancel session protection. However, AUX ROC does
not use session protection so it was never removed. As a result,
if the driver tries to allocate another AUX ROC event right after
cancelling the first one, it will fail with a warning.
In addition, the time event data passed to iwl_mvm_remove_aux_roc_te()
is incorrect. Fix it.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20211219132536.915e1f69f062.Id837e917f1c2beaca7c1eb33333d622548918a76@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/time-event.c