mirror of
https://github.com/shenmintao/aic8800d80.git
synced 2026-09-26 17:44:16 +00:00
feat: update new aic driver version
This commit is contained in:
@@ -240,6 +240,7 @@ void aicwf_set_cmd_tx(void *dev, struct lmac_msg *msg, uint len)
|
||||
struct aicwf_bus *bus = usbdev->bus_if;
|
||||
u8 *buffer = bus->cmd_buf;
|
||||
u16 index = 0;
|
||||
int ret = 0;
|
||||
|
||||
memset(buffer, 0, CMD_BUF_MAX);
|
||||
buffer[0] = (len+4) & 0x00ff;
|
||||
@@ -261,7 +262,10 @@ void aicwf_set_cmd_tx(void *dev, struct lmac_msg *msg, uint len)
|
||||
index += 2;
|
||||
memcpy(&buffer[index], (u8 *)msg->param, msg->param_len);
|
||||
|
||||
aicwf_bus_txmsg(bus, buffer, len + 8);
|
||||
ret = aicwf_bus_txmsg(bus, buffer, len + 8);
|
||||
if (ret == -EIO) {
|
||||
ret = aicwf_bus_txmsg(bus, buffer, len + 8);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void *rwnx_msg_zalloc(lmac_msg_id_t const id,
|
||||
|
||||
Reference in New Issue
Block a user