diff --git a/mt7603_main.c b/mt7603_main.c index 6473edb7..09955164 100644 --- a/mt7603_main.c +++ b/mt7603_main.c @@ -213,9 +213,7 @@ mt7603_get_txpower(struct ieee80211_hw *hw, struct ieee80211_vif *vif, int *dbm) static int mt7603_ampdu_action(struct ieee80211_hw *hw, struct ieee80211_vif *vif, - enum ieee80211_ampdu_mlme_action action, - struct ieee80211_sta *sta,u16 tid, u16 *ssn, u8 buf_size, - bool amsdu) + struct ieee80211_ampdu_params *params) { return -EINVAL; } diff --git a/mt76x2_main.c b/mt76x2_main.c index a586d7bd..9ae94156 100644 --- a/mt76x2_main.c +++ b/mt76x2_main.c @@ -374,14 +374,16 @@ mt76x2_get_txpower(struct ieee80211_hw *hw, struct ieee80211_vif *vif, int *dbm) static int mt76x2_ampdu_action(struct ieee80211_hw *hw, struct ieee80211_vif *vif, - enum ieee80211_ampdu_mlme_action action, - struct ieee80211_sta *sta,u16 tid, u16 *ssn, u8 buf_size, - bool amsdu) + struct ieee80211_ampdu_params *params) { + enum ieee80211_ampdu_mlme_action action = params->action; + struct ieee80211_sta *sta = params->sta; struct mt76x2_dev *dev = hw->priv; struct mt76x2_sta *msta = (struct mt76x2_sta *) sta->drv_priv; - struct ieee80211_txq *txq = sta->txq[tid]; + struct ieee80211_txq *txq = sta->txq[params->tid]; struct mt76_txq *mtxq = (struct mt76_txq *) txq->drv_priv; + u16 tid = params->tid; + u16 *ssn = ¶ms->ssn; if (!txq) return -EINVAL;