Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions mt7925/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -856,12 +856,17 @@ static int mt7925_mac_link_sta_add(struct mt76_dev *mdev,

msta = (struct mt792x_sta *)link_sta->sta->drv_priv;
mlink = mt792x_sta_to_link(msta, link_id);
if (!mlink)
return -EINVAL;

idx = mt76_wcid_alloc(dev->mt76.wcid_mask, MT792x_WTBL_STA - 1);
if (idx < 0)
return -ENOSPC;

mconf = mt792x_vif_to_link(mvif, link_id);
if (!mconf)
return -EINVAL;

mt76_wcid_init(&mlink->wcid, 0);
mlink->wcid.sta = 1;
mlink->wcid.idx = idx;
Expand Down Expand Up @@ -1691,6 +1696,9 @@ mt7925_conf_tx(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
[IEEE80211_AC_BK] = 1,
};

if (!mconf)
return -EINVAL;

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

Expand Down