X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=tools%2Fcarlu%2Fsrc%2Frx.c;h=2a77334615b0a7da3c426c51a91367dc897573b0;hb=2410b6d77a15fc53d2e5ccffd0a1deff96676cab;hp=4a8f24e8cad7b4128efffea963365d3f44042354;hpb=e72388a0aa23da8bc8e24a0cbe9d523c5a9ce294;p=carl9170fw.git diff --git a/tools/carlu/src/rx.c b/tools/carlu/src/rx.c index 4a8f24e..2a77334 100644 --- a/tools/carlu/src/rx.c +++ b/tools/carlu/src/rx.c @@ -1,9 +1,9 @@ /* - * carl9170user - userspace testing utility for ar9170 devices + * carlu - userspace testing utility for ar9170 devices * * RX data processing * - * Copyright 2009, 2010 Christian Lamparter + * Copyright 2009-2011 Christian Lamparter * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -57,7 +57,9 @@ void carlu_handle_command(struct carlu *ar, void *buf, cmd = (void *) buf; - if ((cmd->hdr.cmd & 0xc0) != 0xc0) { + if ((cmd->hdr.cmd & CARL9170_RSP_FLAG) != CARL9170_RSP_FLAG) { + if ((cmd->hdr.cmd & CARL9170_CMD_ASYNC_FLAG)) + return; SDL_mutexP(ar->resp_lock); if (ar->resp_buf && ar->resp_len && ar->resp_len >= (len - 4)) {