Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56944
b: refs/heads/master
c: 596f2d0
h: refs/heads/master
v: v3
  • Loading branch information
Eugene Teo authored and John W. Linville committed May 22, 2007
1 parent 8b01d4c commit bb7bb92
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3d4bd24b019981394fabb465b0c7932924b83d65
refs/heads/master: 596f2d0554352f1089f7478b309b27d8cdf5cd4f
14 changes: 9 additions & 5 deletions trunk/drivers/net/wireless/libertas/fw.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,18 +333,22 @@ static void command_timer_fn(unsigned long data)
unsigned long flags;

ptempnode = adapter->cur_cmd;
if (ptempnode == NULL) {
lbs_pr_debug(1, "PTempnode Empty\n");
return;
}

cmd = (struct cmd_ds_command *)ptempnode->bufvirtualaddr;
if (!cmd) {
lbs_pr_debug(1, "cmd is NULL\n");
return;
}

lbs_pr_info("command_timer_fn fired (%x)\n", cmd->command);

if (!adapter->fw_ready)
return;

if (ptempnode == NULL) {
lbs_pr_debug(1, "PTempnode Empty\n");
return;
}

spin_lock_irqsave(&adapter->driver_lock, flags);
adapter->cur_cmd = NULL;
spin_unlock_irqrestore(&adapter->driver_lock, flags);
Expand Down

0 comments on commit bb7bb92

Please sign in to comment.