Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97915
b: refs/heads/master
c: a01f545
h: refs/heads/master
i:
  97913: a63e599
  97911: d5a3ed5
v: v3
  • Loading branch information
Holger Schurig authored and John W. Linville committed Jun 9, 2008
1 parent 6dc3462 commit 56e043d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 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: 507b06d0622480f8026d49a94f86068bb0fd6ed6
refs/heads/master: a01f5450401f081f07a866612121e780e0730cfd
5 changes: 4 additions & 1 deletion trunk/drivers/net/wireless/libertas/cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1842,6 +1842,9 @@ static void lbs_send_confirmsleep(struct lbs_private *priv)

spin_lock_irqsave(&priv->driver_lock, flags);

/* We don't get a response on the sleep-confirmation */
priv->dnld_sent = DNLD_RES_RECEIVED;

/* If nothing to do, go back to sleep (?) */
if (!__kfifo_len(priv->event_fifo) && !priv->resp_len[priv->resp_idx])
priv->psstate = PS_STATE_SLEEP;
Expand Down Expand Up @@ -1904,12 +1907,12 @@ void lbs_ps_confirm_sleep(struct lbs_private *priv)

lbs_deb_enter(LBS_DEB_HOST);

spin_lock_irqsave(&priv->driver_lock, flags);
if (priv->dnld_sent) {
allowed = 0;
lbs_deb_host("dnld_sent was set\n");
}

spin_lock_irqsave(&priv->driver_lock, flags);
/* In-progress command? */
if (priv->cur_cmd) {
allowed = 0;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/libertas/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -732,8 +732,8 @@ static int lbs_thread(void *data)
lbs_deb_thread("4: currenttxskb %p, dnld_sent %d\n",
priv->currenttxskb, priv->dnld_sent);

spin_lock_irq(&priv->driver_lock);
/* Process any pending command response */
spin_lock_irq(&priv->driver_lock);
resp_idx = priv->resp_idx;
if (priv->resp_len[resp_idx]) {
spin_unlock_irq(&priv->driver_lock);
Expand Down

0 comments on commit 56e043d

Please sign in to comment.