iwlagn: do nothing when disable agg in wrong state
authorWey-Yi Guy <wey-yi.w.guy@intel.com>
Mon, 10 Oct 2011 14:27:05 +0000 (07:27 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 14 Oct 2011 18:48:11 +0000 (14:48 -0400)
When disable aggregation request come in on wrong agg state. ignore it

Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-trans-pcie-tx.c

index fa2ce39..fec7065 100644 (file)
@@ -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;