forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/net/wireless/marvell/mwifiex/11n.h
....@@ -1,10 +1,10 @@
11 /*
2
- * Marvell Wireless LAN device driver: 802.11n
2
+ * NXP Wireless LAN device driver: 802.11n
33 *
4
- * Copyright (C) 2011-2014, Marvell International Ltd.
4
+ * Copyright 2011-2020 NXP
55 *
6
- * This software file (the "File") is distributed by Marvell International
7
- * Ltd. under the terms of the GNU General Public License Version 2, June 1991
6
+ * This software file (the "File") is distributed by NXP
7
+ * under the terms of the GNU General Public License Version 2, June 1991
88 * (the "License"). You may use, redistribute and/or modify this File in
99 * accordance with the terms and conditions of the License, a copy of which
1010 * is available by writing to the Free Software Foundation, Inc.,
....@@ -147,11 +147,10 @@
147147 int tid;
148148 u8 ret = false;
149149 struct mwifiex_tx_ba_stream_tbl *tx_tbl;
150
- unsigned long flags;
151150
152151 tid = priv->aggr_prio_tbl[ptr_tid].ampdu_user;
153152
154
- spin_lock_irqsave(&priv->tx_ba_stream_tbl_lock, flags);
153
+ spin_lock_bh(&priv->tx_ba_stream_tbl_lock);
155154 list_for_each_entry(tx_tbl, &priv->tx_ba_stream_tbl_ptr, list) {
156155 if (tid > priv->aggr_prio_tbl[tx_tbl->tid].ampdu_user) {
157156 tid = priv->aggr_prio_tbl[tx_tbl->tid].ampdu_user;
....@@ -160,7 +159,7 @@
160159 ret = true;
161160 }
162161 }
163
- spin_unlock_irqrestore(&priv->tx_ba_stream_tbl_lock, flags);
162
+ spin_unlock_bh(&priv->tx_ba_stream_tbl_lock);
164163
165164 return ret;
166165 }