.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * mac80211 glue code for mac80211 Prism54 drivers |
---|
3 | 4 | * |
---|
.. | .. |
---|
10 | 11 | * Copyright 2004-2006 Jean-Baptiste Note <jbnote@gmail.com>, et al. |
---|
11 | 12 | * - stlc45xx driver |
---|
12 | 13 | * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies). |
---|
13 | | - * |
---|
14 | | - * This program is free software; you can redistribute it and/or modify |
---|
15 | | - * it under the terms of the GNU General Public License version 2 as |
---|
16 | | - * published by the Free Software Foundation. |
---|
17 | 14 | */ |
---|
18 | 15 | |
---|
19 | 16 | #include <linux/slab.h> |
---|
.. | .. |
---|
414 | 411 | int ret; |
---|
415 | 412 | |
---|
416 | 413 | mutex_lock(&priv->conf_mutex); |
---|
417 | | - if (queue < dev->queues) { |
---|
418 | | - P54_SET_QUEUE(priv->qos_params[queue], params->aifs, |
---|
419 | | - params->cw_min, params->cw_max, params->txop); |
---|
420 | | - ret = p54_set_edcf(priv); |
---|
421 | | - } else |
---|
422 | | - ret = -EINVAL; |
---|
| 414 | + P54_SET_QUEUE(priv->qos_params[queue], params->aifs, |
---|
| 415 | + params->cw_min, params->cw_max, params->txop); |
---|
| 416 | + ret = p54_set_edcf(priv); |
---|
423 | 417 | mutex_unlock(&priv->conf_mutex); |
---|
424 | 418 | return ret; |
---|
425 | 419 | } |
---|
.. | .. |
---|
688 | 682 | * queues have already been stopped and no new frames can sneak |
---|
689 | 683 | * up from behind. |
---|
690 | 684 | */ |
---|
691 | | - while ((total = p54_flush_count(priv) && i--)) { |
---|
| 685 | + while ((total = p54_flush_count(priv)) && i--) { |
---|
692 | 686 | /* waste time */ |
---|
693 | 687 | msleep(20); |
---|
694 | 688 | } |
---|