forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/net/wireless/zydas/zd1211rw/zd_mac.c
....@@ -1,22 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /* ZD1211 USB-WLAN driver for Linux
23 *
34 * Copyright (C) 2005-2007 Ulrich Kunitz <kune@deine-taler.de>
45 * Copyright (C) 2006-2007 Daniel Drake <dsd@gentoo.org>
56 * Copyright (C) 2006-2007 Michael Wu <flamingice@sourmilk.net>
67 * 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/>.
208 */
219
2210 #include <linux/netdevice.h>
....@@ -235,7 +223,6 @@
235223 {
236224 flush_workqueue(zd_workqueue);
237225 zd_chip_clear(&mac->chip);
238
- ZD_ASSERT(!spin_is_locked(&mac->lock));
239226 ZD_MEMCLEAR(mac, sizeof(struct zd_mac));
240227 }
241228
....@@ -429,11 +416,10 @@
429416
430417 /**
431418 * 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
435421 * @ackssi: ACK signal strength
436
- * @success - True for successful transmission of the frame
422
+ * @tx_status: success and/or retry
437423 *
438424 * This information calls ieee80211_tx_status_irqsafe() if required by the
439425 * control information. It copies the control information into the status
....@@ -490,7 +476,7 @@
490476
491477 /**
492478 * zd_mac_tx_failed - callback for failed frames
493
- * @dev: the mac80211 wireless device
479
+ * @urb: pointer to the urb structure
494480 *
495481 * This function is called if a frame couldn't be successfully
496482 * transferred. The first frame from the tx queue, will be selected and
....@@ -926,9 +912,9 @@
926912 /**
927913 * zd_op_tx - transmits a network frame to the device
928914 *
929
- * @dev: mac80211 hardware device
930
- * @skb: socket buffer
915
+ * @hw: a &struct ieee80211_hw pointer
931916 * @control: the control structure
917
+ * @skb: socket buffer
932918 *
933919 * This function transmit an IEEE 802.11 network frame to the device. The
934920 * control block of the skbuff will be initialized. If necessary the incoming
....@@ -959,7 +945,7 @@
959945
960946 /**
961947 * filter_ack - filters incoming packets for acknowledgements
962
- * @dev: the mac80211 device
948
+ * @hw: a &struct ieee80211_hw pointer
963949 * @rx_hdr: received header
964950 * @stats: the status for the received packet
965951 *