aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorHante Meuleman <meuleman@broadcom.com>2012-09-19 16:21:16 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-09-24 15:02:06 -0400
commit6385df2db76c48d04530395a67c16b03afcc4095 (patch)
tree800c6cdb6cf0e1e83fca11b9ccf1b6916cf1e39f /drivers
parent82d8eba358badb466a4e988ecabf0668a8d92e9c (diff)
brcmfmac: clear control lock on usb error.
On a usb error the lock bit should be cleared. Reviewed-by: Arend Van Spriel <arend@broadcom.com> Signed-off-by: Hante Meuleman <meuleman@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/brcm80211/brcmfmac/usb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/usb.c b/drivers/net/wireless/brcm80211/brcmfmac/usb.c
index 246d06bb573a..5fe6ec7f838e 100644
--- a/drivers/net/wireless/brcm80211/brcmfmac/usb.c
+++ b/drivers/net/wireless/brcm80211/brcmfmac/usb.c
@@ -337,6 +337,7 @@ static int brcmf_usb_tx_ctlpkt(struct device *dev, u8 *buf, u32 len)
337 err = brcmf_usb_send_ctl(devinfo, buf, len); 337 err = brcmf_usb_send_ctl(devinfo, buf, len);
338 if (err) { 338 if (err) {
339 brcmf_dbg(ERROR, "fail %d bytes: %d\n", err, len); 339 brcmf_dbg(ERROR, "fail %d bytes: %d\n", err, len);
340 clear_bit(0, &devinfo->ctl_op);
340 return err; 341 return err;
341 } 342 }
342 343
@@ -367,6 +368,7 @@ static int brcmf_usb_rx_ctlpkt(struct device *dev, u8 *buf, u32 len)
367 err = brcmf_usb_recv_ctl(devinfo, buf, len); 368 err = brcmf_usb_recv_ctl(devinfo, buf, len);
368 if (err) { 369 if (err) {
369 brcmf_dbg(ERROR, "fail %d bytes: %d\n", err, len); 370 brcmf_dbg(ERROR, "fail %d bytes: %d\n", err, len);
371 clear_bit(0, &devinfo->ctl_op);
370 return err; 372 return err;
371 } 373 }
372 devinfo->ctl_completed = false; 374 devinfo->ctl_completed = false;