|
@@ -222,8 +222,8 @@ void iwlagn_tx_queue_set_status(struct iwl_priv *priv,
|
|
|
scd_retry ? "BA" : "AC/CMD", txq_id, tx_fifo_id);
|
|
|
}
|
|
|
|
|
|
-int iwlagn_txq_agg_enable(struct iwl_priv *priv, int txq_id,
|
|
|
- int tx_fifo, int sta_id, int tid, u16 ssn_idx)
|
|
|
+static int iwlagn_txq_agg_enable(struct iwl_priv *priv, int txq_id,
|
|
|
+ int tx_fifo, int sta_id, int tid, u16 ssn_idx)
|
|
|
{
|
|
|
unsigned long flags;
|
|
|
u16 ra_tid;
|
|
@@ -288,8 +288,8 @@ int iwlagn_txq_agg_enable(struct iwl_priv *priv, int txq_id,
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-int iwlagn_txq_agg_disable(struct iwl_priv *priv, u16 txq_id,
|
|
|
- u16 ssn_idx, u8 tx_fifo)
|
|
|
+static int iwlagn_txq_agg_disable(struct iwl_priv *priv, u16 txq_id,
|
|
|
+ u16 ssn_idx, u8 tx_fifo)
|
|
|
{
|
|
|
if ((IWLAGN_FIRST_AMPDU_QUEUE > txq_id) ||
|
|
|
(IWLAGN_FIRST_AMPDU_QUEUE +
|
|
@@ -1037,8 +1037,7 @@ int iwlagn_tx_agg_start(struct iwl_priv *priv, struct ieee80211_vif *vif,
|
|
|
iwl_set_swq_id(&priv->txq[txq_id], get_ac_from_tid(tid), txq_id);
|
|
|
spin_unlock_irqrestore(&priv->sta_lock, flags);
|
|
|
|
|
|
- ret = priv->cfg->ops->lib->txq_agg_enable(priv, txq_id, tx_fifo,
|
|
|
- sta_id, tid, *ssn);
|
|
|
+ ret = iwlagn_txq_agg_enable(priv, txq_id, tx_fifo, sta_id, tid, *ssn);
|
|
|
if (ret)
|
|
|
return ret;
|
|
|
|
|
@@ -1125,8 +1124,7 @@ int iwlagn_tx_agg_stop(struct iwl_priv *priv, struct ieee80211_vif *vif,
|
|
|
* to deactivate the uCode queue, just return "success" to allow
|
|
|
* mac80211 to clean up it own data.
|
|
|
*/
|
|
|
- priv->cfg->ops->lib->txq_agg_disable(priv, txq_id, ssn,
|
|
|
- tx_fifo_id);
|
|
|
+ iwlagn_txq_agg_disable(priv, txq_id, ssn, tx_fifo_id);
|
|
|
spin_unlock_irqrestore(&priv->lock, flags);
|
|
|
|
|
|
ieee80211_stop_tx_ba_cb_irqsafe(vif, sta->addr, tid);
|
|
@@ -1155,8 +1153,7 @@ int iwlagn_txq_check_empty(struct iwl_priv *priv,
|
|
|
u16 ssn = SEQ_TO_SN(tid_data->seq_number);
|
|
|
int tx_fifo = get_fifo_from_tid(ctx, tid);
|
|
|
IWL_DEBUG_HT(priv, "HW queue empty: continue DELBA flow\n");
|
|
|
- priv->cfg->ops->lib->txq_agg_disable(priv, txq_id,
|
|
|
- ssn, tx_fifo);
|
|
|
+ iwlagn_txq_agg_disable(priv, txq_id, ssn, tx_fifo);
|
|
|
tid_data->agg.state = IWL_AGG_OFF;
|
|
|
ieee80211_stop_tx_ba_cb_irqsafe(ctx->vif, addr, tid);
|
|
|
}
|