libertas: inform which command is being resent due to timeout

Marcelo Tosatti mtosatti at redhat.unroutablecom
Sun Dec 24 04:30:49 EST 2006


Commit:     261e40bb213130e55969e5df01180ede8fa12051
Parent:     7c50279cd3f8b411355941341af6e16cb70e0a1e
commit 261e40bb213130e55969e5df01180ede8fa12051
Author:     Marcelo Tosatti <mtosatti at redhat.com>
AuthorDate: Sat Dec 23 01:41:47 2006 -0200
Commit:     Marcelo Tosatti <mtosatti at redhat.com>
CommitDate: Sat Dec 23 01:41:47 2006 -0200

    libertas: inform which command is being resent due to timeout
    
    Can help debugging.
    
    Signed-off-by: Marcelo Tosatti <mtosatti at redhat.com>
---
 drivers/net/wireless/libertas/wlan_fw.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/drivers/net/wireless/libertas/wlan_fw.c b/drivers/net/wireless/libertas/wlan_fw.c
index b0f89e2..184bbda 100644
--- a/drivers/net/wireless/libertas/wlan_fw.c
+++ b/drivers/net/wireless/libertas/wlan_fw.c
@@ -415,13 +415,15 @@ static void command_timer_fn(unsigned lo
 	wlan_private *priv = (wlan_private *)data;
 	wlan_adapter *Adapter = priv->adapter;
 	struct CmdCtrlNode *pTempNode;
-	ulong flags;
+	struct HostCmd_DS_COMMAND *cmd;
+	unsigned long flags;
 
 	ENTER();
 
-	printk(KERN_INFO "command_timer_fn fired.\n");
-
 	pTempNode = Adapter->CurCmd;
+	cmd = (struct HostCmd_DS_COMMAND *)pTempNode->BufVirtualAddr;
+
+	printk(KERN_INFO "command_timer_fn fired (%x)\n", cmd->Command);
 
 	if (!Adapter->fw_ready)
 		return;


More information about the Commits-kernel mailing list