Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 237041
b: refs/heads/master
c: 3985a46
h: refs/heads/master
i:
  237039: 7a8f39e
v: v3
  • Loading branch information
Jussi Kivilinna authored and John W. Linville committed Feb 4, 2011
1 parent b7e1e0c commit 052025a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 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: a0fd751f0924e0eefa36592f1d358c4ab18b44c5
refs/heads/master: 3985a46543d47a50b94e839e0a16e67d959ab092
13 changes: 12 additions & 1 deletion trunk/drivers/net/wireless/zd1211rw/zd_mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ static int zd_mac_config_beacon(struct ieee80211_hw *hw, struct sk_buff *beacon)
dev_err(zd_mac_dev(mac),
"Giving up beacon config.\n");
r = -ETIMEDOUT;
goto release_sema;
goto reset_device;
}
}
msleep(20);
Expand Down Expand Up @@ -770,6 +770,17 @@ static int zd_mac_config_beacon(struct ieee80211_hw *hw, struct sk_buff *beacon)
mutex_unlock(&mac->chip.mutex);
kfree(ioreqs);
return r;

reset_device:
mutex_unlock(&mac->chip.mutex);
kfree(ioreqs);

/* semaphore stuck, reset device to avoid fw freeze later */
dev_warn(zd_mac_dev(mac), "CR_BCN_FIFO_SEMAPHORE stuck, "
"reseting device...");
usb_queue_reset_device(mac->chip.usb.intf);

return r;
}

static int fill_ctrlset(struct zd_mac *mac,
Expand Down

0 comments on commit 052025a

Please sign in to comment.