Commit 6eb1f379 authored by Javier Achirica's avatar Javier Achirica Committed by Jeff Garzik

[wireless airo] Returns proper status in case of transmission error.

parent 20e9a493
......@@ -2697,11 +2697,11 @@ static u16 transmit_allocate(struct airo_info *ai, int lenPayload, int raw)
if (down_interruptible(&ai->sem))
return ERROR;
if (issuecommand(ai, &cmd, &rsp) != SUCCESS) {
txFid = 0;
txFid = ERROR;
goto done;
}
if ( (rsp.status & 0xFF00) != 0) {
txFid = 0;
txFid = ERROR;
goto done;
}
/* wait for the allocate event/indication
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment