Commit adb90a00 authored by Wey-Yi Guy's avatar Wey-Yi Guy
Browse files

iwlwifi: check for STATUS_EXIT_PENDING when send RXON command



If driver is on the way down, there is no need to send
RXON to uCode, check the condition before continuous the process.

Signed-off-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
parent 8b3ee296
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1784,6 +1784,9 @@ int iwl3945_commit_rxon(struct iwl_priv *priv, struct iwl_rxon_context *ctx)
	int rc = 0;
	bool new_assoc = !!(staging_rxon->filter_flags & RXON_FILTER_ASSOC_MSK);

	if (test_bit(STATUS_EXIT_PENDING, &priv->status))
		return -EINVAL;

	if (!iwl_is_alive(priv))
		return -1;

+3 −0
Original line number Diff line number Diff line
@@ -130,6 +130,9 @@ int iwlagn_commit_rxon(struct iwl_priv *priv, struct iwl_rxon_context *ctx)

	lockdep_assert_held(&priv->mutex);

	if (test_bit(STATUS_EXIT_PENDING, &priv->status))
		return -EINVAL;

	if (!iwl_is_alive(priv))
		return -EBUSY;