hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/drivers/net/wireless/mediatek/mt7601u/main.c
....@@ -1,15 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2014 Felix Fietkau <nbd@openwrt.org>
34 * Copyright (C) 2015 Jakub Kicinski <kubakici@wp.pl>
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License version 2
7
- * as published by the Free Software Foundation
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
135 */
146
157 #include "mt7601u.h"
....@@ -359,7 +351,7 @@
359351 struct ieee80211_sta *sta = params->sta;
360352 enum ieee80211_ampdu_mlme_action action = params->action;
361353 u16 tid = params->tid;
362
- u16 *ssn = &params->ssn;
354
+ u16 ssn = params->ssn;
363355 struct mt76_sta *msta = (struct mt76_sta *) sta->drv_priv;
364356
365357 WARN_ON(msta->wcid.idx > GROUP_WCID(0));
....@@ -379,9 +371,8 @@
379371 case IEEE80211_AMPDU_TX_STOP_FLUSH_CONT:
380372 break;
381373 case IEEE80211_AMPDU_TX_START:
382
- msta->agg_ssn[tid] = *ssn << 4;
383
- ieee80211_start_tx_ba_cb_irqsafe(vif, sta->addr, tid);
384
- break;
374
+ msta->agg_ssn[tid] = ssn << 4;
375
+ return IEEE80211_AMPDU_TX_START_IMMEDIATE;
385376 case IEEE80211_AMPDU_TX_STOP_CONT:
386377 ieee80211_stop_tx_ba_cb_irqsafe(vif, sta->addr, tid);
387378 break;