X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=tools%2Fcarlu%2Fsrc%2Ftx.c;h=ec97502038f0e5a3c8c68f1c35ae6c2e901d95ce;hb=12cc2cc355d1dce3d50c78e0f680b3cda0c73dfe;hp=ea3e81fe1e777f85d6dc995702fa085cb9547c16;hpb=a5cc1f3fc4462940dd9fabb45a865d372d24d1f4;p=carl9170fw.git diff --git a/tools/carlu/src/tx.c b/tools/carlu/src/tx.c index ea3e81f..ec97502 100644 --- a/tools/carlu/src/tx.c +++ b/tools/carlu/src/tx.c @@ -1,9 +1,9 @@ /* - * carl9170user - userspace testing utility for ar9170 devices + * carlu - userspace testing utility for ar9170 devices * * xmit - related functions * - * 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 @@ -188,7 +188,7 @@ int carlu_tx(struct carlu *ar, struct frame *frame) txp->s.len = cpu_to_le16(frame->len); - queue = ar9170_qmap[frame->queue % ARRAY_SIZE(ar9170_qmap)]; + queue = (frame->queue % __AR9170_NUM_TXQ); SET_VAL(CARL9170_TX_SUPER_MISC_QUEUE, txp->s.misc, queue);