All of lore.kernel.org
 help / color / mirror / Atom feed
From: Miri Korenblit <miriam.rachel.korenblit@intel.com>
To: johannes@sipsolutions.net
Cc: linux-wireless@vger.kernel.org,
	Johannes Berg <johannes.berg@intel.com>,
	Gregory Greenman <gregory.greenman@intel.com>
Subject: [PATCH 04/14] wifi: iwlwifi: mvm: send TX path flush in rfkill
Date: Tue, 19 Dec 2023 21:58:52 +0200	[thread overview]
Message-ID: <20231219215605.c528a6fa6cec.Ibe5e9560359ccc0fba60c35e01de285c376748a2@changeid> (raw)
In-Reply-To: <20231219195902.3336105-1-miriam.rachel.korenblit@intel.com>

From: Johannes Berg <johannes.berg@intel.com>

If we want to drop packets, that's surely a good thing to
do when we want to enter rfkill. Send this command despite
rfkill so we can successfully clean up everything, we need
to handle it separately since it has CMD_WANT_SKB, so it's
not going to automatically return success when in rfkill.

Fixes: d4e3a341b87b ("iwlwifi: mvm: add support for new flush queue response")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Reviewed-by: Gregory Greenman <gregory.greenman@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
---
 drivers/net/wireless/intel/iwlwifi/mvm/tx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/tx.c b/drivers/net/wireless/intel/iwlwifi/mvm/tx.c
index ae5cd13cd6dd..db986bfc4dc3 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/tx.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/tx.c
@@ -2256,7 +2256,7 @@ int iwl_mvm_flush_sta_tids(struct iwl_mvm *mvm, u32 sta_id, u16 tids)
 	WARN_ON(!iwl_mvm_has_new_tx_api(mvm));
 
 	if (iwl_fw_lookup_notif_ver(mvm->fw, LONG_GROUP, TXPATH_FLUSH, 0) > 0)
-		cmd.flags |= CMD_WANT_SKB;
+		cmd.flags |= CMD_WANT_SKB | CMD_SEND_IN_RFKILL;
 
 	IWL_DEBUG_TX_QUEUES(mvm, "flush for sta id %d tid mask 0x%x\n",
 			    sta_id, tids);
-- 
2.34.1


  parent reply	other threads:[~2023-12-19 19:59 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-19 19:58 [PATCH 00/14] wifi: iwlwifi: updates - 2023-12-06 Miri Korenblit
2023-12-19 19:58 ` [PATCH 01/14] iwlwifi: mvm: set siso/mimo chains to 1 in FW SMPS request Miri Korenblit
2023-12-19 19:58 ` [PATCH 02/14] wifi: iwlwifi: mvm: Allow DFS concurrent operation Miri Korenblit
2023-12-20 19:42   ` kernel test robot
2023-12-20 20:02   ` kernel test robot
2023-12-19 19:58 ` [PATCH 03/14] wifi: iwlwifi: Don't mark DFS channels as NO-IR Miri Korenblit
2023-12-19 19:58 ` Miri Korenblit [this message]
2023-12-19 19:58 ` [PATCH 05/14] wifi: iwlwifi: mvm: d3: avoid intermediate/early mutex unlock Miri Korenblit
2023-12-19 19:58 ` [PATCH 06/14] wifi: iwlwifi: mvm: Do not warn if valid link pair was not found Miri Korenblit
2023-12-19 19:58 ` [PATCH 07/14] wifi: iwlwifi: fix out of bound copy_from_user Miri Korenblit
2023-12-19 19:58 ` [PATCH 08/14] wifi: iwlwifi: assign phy_ctxt before eSR activation Miri Korenblit
2023-12-19 19:58 ` [PATCH 09/14] wifi: iwlwifi: cleanup BT Shared Single Antenna code Miri Korenblit
2023-12-19 19:58 ` [PATCH 10/14] wifi: iwlwifi: Add rf_mapping of new wifi7 devices Miri Korenblit
2023-12-19 19:58 ` [PATCH 11/14] wifi: iwlwifi: mvm: add US/Canada MCC to API Miri Korenblit
2023-12-19 19:59 ` [PATCH 12/14] wifi: iwlwifi: mvm: disallow puncturing in US/Canada Miri Korenblit
2023-12-19 19:59 ` [PATCH 13/14] wifi: iwlwifi: mvm: use the new command to clear the internal buffer Miri Korenblit
2023-12-19 19:59 ` [PATCH 14/14] wifi: iwlwifi: replace ENOTSUPP with EOPNOTSUPP Miri Korenblit
2023-12-20 13:29 [PATCH 00/14] wifi: iwlwifi: updates - 2023-12-19 Miri Korenblit
2023-12-20 13:29 ` [PATCH 04/14] wifi: iwlwifi: mvm: send TX path flush in rfkill Miri Korenblit

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231219215605.c528a6fa6cec.Ibe5e9560359ccc0fba60c35e01de285c376748a2@changeid \
    --to=miriam.rachel.korenblit@intel.com \
    --cc=gregory.greenman@intel.com \
    --cc=johannes.berg@intel.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.