Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 171382
b: refs/heads/master
c: ad150e9
h: refs/heads/master
v: v3
  • Loading branch information
Juuso Oikarinen authored and John W. Linville committed Nov 2, 2009
1 parent e93147f commit 4a0ea67
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 19ad0715d8d9acc259ef02f83df767df2cf1eafe
refs/heads/master: ad150e966e987edcf737e1871d9e44a30d1aa58d
6 changes: 4 additions & 2 deletions trunk/drivers/net/wireless/wl12xx/wl1271_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ int wl1271_cmd_send(struct wl1271 *wl, u16 id, void *buf, size_t len)
unsigned long timeout;
u32 intr;
int ret = 0;
u16 status;

cmd = buf;
cmd->id = cpu_to_le16(id);
Expand Down Expand Up @@ -78,8 +79,9 @@ int wl1271_cmd_send(struct wl1271 *wl, u16 id, void *buf, size_t len)
wl1271_spi_read(wl, wl->cmd_box_addr, cmd,
sizeof(struct wl1271_cmd_header), false);

if (cmd->status != CMD_STATUS_SUCCESS) {
wl1271_error("command execute failure %d", cmd->status);
status = le16_to_cpu(cmd->status);
if (status != CMD_STATUS_SUCCESS) {
wl1271_error("command execute failure %d", status);
ret = -EIO;
}

Expand Down

0 comments on commit 4a0ea67

Please sign in to comment.