mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt7615: use params->ssn value directly
There is no point to use pointer to params->ssn. Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
f74d117ed4
commit
649f2e8374
+3
-3
@@ -443,7 +443,7 @@ mt7615_ampdu_action(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
|
|||||||
struct ieee80211_txq *txq = sta->txq[params->tid];
|
struct ieee80211_txq *txq = sta->txq[params->tid];
|
||||||
struct mt7615_sta *msta = (struct mt7615_sta *)sta->drv_priv;
|
struct mt7615_sta *msta = (struct mt7615_sta *)sta->drv_priv;
|
||||||
u16 tid = params->tid;
|
u16 tid = params->tid;
|
||||||
u16 *ssn = ¶ms->ssn;
|
u16 ssn = params->ssn;
|
||||||
struct mt76_txq *mtxq;
|
struct mt76_txq *mtxq;
|
||||||
|
|
||||||
if (!txq)
|
if (!txq)
|
||||||
@@ -453,7 +453,7 @@ mt7615_ampdu_action(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
|
|||||||
|
|
||||||
switch (action) {
|
switch (action) {
|
||||||
case IEEE80211_AMPDU_RX_START:
|
case IEEE80211_AMPDU_RX_START:
|
||||||
mt76_rx_aggr_start(&dev->mt76, &msta->wcid, tid, *ssn,
|
mt76_rx_aggr_start(&dev->mt76, &msta->wcid, tid, ssn,
|
||||||
params->buf_size);
|
params->buf_size);
|
||||||
mt7615_mcu_set_rx_ba(dev, params, 1);
|
mt7615_mcu_set_rx_ba(dev, params, 1);
|
||||||
break;
|
break;
|
||||||
@@ -473,7 +473,7 @@ mt7615_ampdu_action(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
|
|||||||
mt7615_mcu_set_tx_ba(dev, params, 0);
|
mt7615_mcu_set_tx_ba(dev, params, 0);
|
||||||
break;
|
break;
|
||||||
case IEEE80211_AMPDU_TX_START:
|
case IEEE80211_AMPDU_TX_START:
|
||||||
mtxq->agg_ssn = IEEE80211_SN_TO_SEQ(*ssn);
|
mtxq->agg_ssn = IEEE80211_SN_TO_SEQ(ssn);
|
||||||
ieee80211_start_tx_ba_cb_irqsafe(vif, sta->addr, tid);
|
ieee80211_start_tx_ba_cb_irqsafe(vif, sta->addr, tid);
|
||||||
break;
|
break;
|
||||||
case IEEE80211_AMPDU_TX_STOP_CONT:
|
case IEEE80211_AMPDU_TX_STOP_CONT:
|
||||||
|
|||||||
Reference in New Issue
Block a user