Commit 882b97c1 authored by Sean Wang's avatar Sean Wang Committed by Felix Fietkau
Browse files

wifi: mt76: mt7925: set Tx queue parameters according to link id

parent 3878b433
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1306,6 +1306,7 @@ mt7925_conf_tx(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
	       const struct ieee80211_tx_queue_params *params)
{
	struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv;
	struct mt792x_bss_conf *mconf = mt792x_vif_to_link(mvif, link_id);
	static const u8 mq_to_aci[] = {
		    [IEEE80211_AC_VO] = 3,
		    [IEEE80211_AC_VI] = 2,
@@ -1314,7 +1315,7 @@ mt7925_conf_tx(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
	};

	/* firmware uses access class index */
	mvif->bss_conf.queue_params[mq_to_aci[queue]] = *params;
	mconf->queue_params[mq_to_aci[queue]] = *params;

	return 0;
}