iwlagn: fix command queue timeout
authorJohannes Berg <johannes.berg@intel.com>
Mon, 12 Sep 2011 19:09:10 +0000 (12:09 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 3 Oct 2011 18:40:34 +0000 (11:40 -0700)
commitbdba777a08cfe193f8c4a5cbb8382549db932171
treeea433f94e5cdfad4aab49dfb7ec1999319a745f3
parentc3c24ca5a0a6bf57b2685c159e5c9c01df76dddb
iwlagn: fix command queue timeout

commit 282cdb325aea4ebbc42ce753b47cc96145eb54bc upstream.

If the command queue is constantly busy,
which can happen in P2P, the hangcheck
timer will frequently find a command in
it and will eventually reset the device
because nothing sets the timestamp for
this queue when commands are processed.

Fix this by setting the timestamp when
a command completes.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/iwlwifi/iwl-tx.c