| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* ZD1211 USB-WLAN driver for Linux |
|---|
| 2 | 3 | * |
|---|
| 3 | 4 | * Copyright (C) 2005-2007 Ulrich Kunitz <kune@deine-taler.de> |
|---|
| 4 | 5 | * Copyright (C) 2006-2007 Daniel Drake <dsd@gentoo.org> |
|---|
| 5 | 6 | * Copyright (C) 2006-2007 Michael Wu <flamingice@sourmilk.net> |
|---|
| 6 | 7 | * Copyright (C) 2007-2008 Luis R. Rodriguez <mcgrof@winlab.rutgers.edu> |
|---|
| 7 | | - * |
|---|
| 8 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 9 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 10 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 11 | | - * (at your option) any later version. |
|---|
| 12 | | - * |
|---|
| 13 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 14 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 15 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 16 | | - * GNU General Public License for more details. |
|---|
| 17 | | - * |
|---|
| 18 | | - * You should have received a copy of the GNU General Public License |
|---|
| 19 | | - * along with this program; if not, see <http://www.gnu.org/licenses/>. |
|---|
| 20 | 8 | */ |
|---|
| 21 | 9 | |
|---|
| 22 | 10 | #include <linux/netdevice.h> |
|---|
| .. | .. |
|---|
| 235 | 223 | { |
|---|
| 236 | 224 | flush_workqueue(zd_workqueue); |
|---|
| 237 | 225 | zd_chip_clear(&mac->chip); |
|---|
| 238 | | - ZD_ASSERT(!spin_is_locked(&mac->lock)); |
|---|
| 239 | 226 | ZD_MEMCLEAR(mac, sizeof(struct zd_mac)); |
|---|
| 240 | 227 | } |
|---|
| 241 | 228 | |
|---|
| .. | .. |
|---|
| 429 | 416 | |
|---|
| 430 | 417 | /** |
|---|
| 431 | 418 | * zd_mac_tx_status - reports tx status of a packet if required |
|---|
| 432 | | - * @hw - a &struct ieee80211_hw pointer |
|---|
| 433 | | - * @skb - a sk-buffer |
|---|
| 434 | | - * @flags: extra flags to set in the TX status info |
|---|
| 419 | + * @hw: a &struct ieee80211_hw pointer |
|---|
| 420 | + * @skb: a sk-buffer |
|---|
| 435 | 421 | * @ackssi: ACK signal strength |
|---|
| 436 | | - * @success - True for successful transmission of the frame |
|---|
| 422 | + * @tx_status: success and/or retry |
|---|
| 437 | 423 | * |
|---|
| 438 | 424 | * This information calls ieee80211_tx_status_irqsafe() if required by the |
|---|
| 439 | 425 | * control information. It copies the control information into the status |
|---|
| .. | .. |
|---|
| 490 | 476 | |
|---|
| 491 | 477 | /** |
|---|
| 492 | 478 | * zd_mac_tx_failed - callback for failed frames |
|---|
| 493 | | - * @dev: the mac80211 wireless device |
|---|
| 479 | + * @urb: pointer to the urb structure |
|---|
| 494 | 480 | * |
|---|
| 495 | 481 | * This function is called if a frame couldn't be successfully |
|---|
| 496 | 482 | * transferred. The first frame from the tx queue, will be selected and |
|---|
| .. | .. |
|---|
| 926 | 912 | /** |
|---|
| 927 | 913 | * zd_op_tx - transmits a network frame to the device |
|---|
| 928 | 914 | * |
|---|
| 929 | | - * @dev: mac80211 hardware device |
|---|
| 930 | | - * @skb: socket buffer |
|---|
| 915 | + * @hw: a &struct ieee80211_hw pointer |
|---|
| 931 | 916 | * @control: the control structure |
|---|
| 917 | + * @skb: socket buffer |
|---|
| 932 | 918 | * |
|---|
| 933 | 919 | * This function transmit an IEEE 802.11 network frame to the device. The |
|---|
| 934 | 920 | * control block of the skbuff will be initialized. If necessary the incoming |
|---|
| .. | .. |
|---|
| 959 | 945 | |
|---|
| 960 | 946 | /** |
|---|
| 961 | 947 | * filter_ack - filters incoming packets for acknowledgements |
|---|
| 962 | | - * @dev: the mac80211 device |
|---|
| 948 | + * @hw: a &struct ieee80211_hw pointer |
|---|
| 963 | 949 | * @rx_hdr: received header |
|---|
| 964 | 950 | * @stats: the status for the received packet |
|---|
| 965 | 951 | * |
|---|