Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 281e27c8 authored by Wey-Yi Guy's avatar Wey-Yi Guy Committed by John W. Linville
Browse files

iwlagn: do nothing when disable agg in wrong state



When disable aggregation request come in on wrong agg state. ignore it

Signed-off-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 9e8107ed
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -636,6 +636,8 @@ int iwl_trans_pcie_tx_agg_disable(struct iwl_trans *trans,
	default:
		IWL_WARN(trans, "Stopping AGG while state not ON"
				"or starting\n");
		spin_unlock_irqrestore(&trans->shrd->sta_lock, flags);
		return 0;
	}

	write_ptr = trans_pcie->txq[txq_id].q.write_ptr;