.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Driver for ZyDAS zd1201 based wireless USB devices. |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (c) 2004, 2005 Jeroen Vreeken (pe1rxq@amsat.org) |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or |
---|
7 | | - * modify it under the terms of the GNU General Public License |
---|
8 | | - * version 2 as published by the Free Software Foundation. |
---|
9 | 6 | * |
---|
10 | 7 | * Parts of this driver have been derived from a wlan-ng version |
---|
11 | 8 | * modified by ZyDAS. They also made documentation available, thanks! |
---|
.. | .. |
---|
833 | 830 | return NETDEV_TX_OK; |
---|
834 | 831 | } |
---|
835 | 832 | |
---|
836 | | -static void zd1201_tx_timeout(struct net_device *dev) |
---|
| 833 | +static void zd1201_tx_timeout(struct net_device *dev, unsigned int txqueue) |
---|
837 | 834 | { |
---|
838 | 835 | struct zd1201 *zd = netdev_priv(dev); |
---|
839 | 836 | |
---|
.. | .. |
---|
969 | 966 | */ |
---|
970 | 967 | zd1201_join(zd, "\0-*#\0", 5); |
---|
971 | 968 | /* Put port in pIBSS */ |
---|
| 969 | + /* Fall through */ |
---|
972 | 970 | case 8: /* No pseudo-IBSS in wireless extensions (yet) */ |
---|
973 | 971 | porttype = ZD1201_PORTTYPE_PSEUDOIBSS; |
---|
974 | 972 | break; |
---|
.. | .. |
---|
1654 | 1652 | struct iw_request_info *info, struct iw_param *rrq, char *extra) |
---|
1655 | 1653 | { |
---|
1656 | 1654 | struct zd1201 *zd = netdev_priv(dev); |
---|
1657 | | - int err; |
---|
1658 | 1655 | |
---|
1659 | 1656 | if (!zd->ap) |
---|
1660 | 1657 | return -EOPNOTSUPP; |
---|
1661 | 1658 | |
---|
1662 | | - err = zd1201_setconfig16(zd, ZD1201_RID_CNFMAXASSOCSTATIONS, rrq->value); |
---|
1663 | | - if (err) |
---|
1664 | | - return err; |
---|
1665 | | - return 0; |
---|
| 1659 | + return zd1201_setconfig16(zd, ZD1201_RID_CNFMAXASSOCSTATIONS, rrq->value); |
---|
1666 | 1660 | } |
---|
1667 | 1661 | |
---|
1668 | 1662 | static int zd1201_get_maxassoc(struct net_device *dev, |
---|