projects
/
carl9170fw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
carlu: support testing async commands
[carl9170fw.git]
/
tools
/
carlu
/
src
/
usb.h
diff --git
a/tools/carlu/src/usb.h
b/tools/carlu/src/usb.h
index 298e82d14ad76048328ab9b89e134401925bf4ee..00e1467b935c76f650f2cbaa7b4446e5bc755351 100644
(file)
--- a/
tools/carlu/src/usb.h
+++ b/
tools/carlu/src/usb.h
@@
-60,7
+60,11
@@
struct carlusb {
struct libusb_transfer *rx_interrupt;
unsigned char irq_buf[AR9170_RX_BULK_IRQ_SIZE];
struct libusb_transfer *rx_interrupt;
unsigned char irq_buf[AR9170_RX_BULK_IRQ_SIZE];
- unsigned char cmd_buf[CARL9170_MAX_CMD_LEN];
+ union {
+ unsigned char buf[CARL9170_MAX_CMD_LEN];
+ struct carl9170_cmd cmd;
+ struct carl9170_rsp rsp;
+ } cmd;
struct list_head tx_queue;
SDL_mutex *tx_queue_lock;
struct list_head tx_queue;
SDL_mutex *tx_queue_lock;