carlu: support testing async commands
[carl9170fw.git] / tools / carlu / src / usb.h
index 298e82d14ad76048328ab9b89e134401925bf4ee..00e1467b935c76f650f2cbaa7b4446e5bc755351 100644 (file)
@@ -60,7 +60,11 @@ struct carlusb {
        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;