Skip to content

Commit 459e237

Browse files
Stanislaw GruszkaKalle Valo
authored andcommitted
mt76x0: use mt76_wcid_free in mt76x0
Use helper from util instead of custom code. Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
1 parent 516ea2a commit 459e237

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/wireless/mediatek/mt76/mt76x0

1 file changed

+1
-1
lines changed

drivers/net/wireless/mediatek/mt76/mt76x0/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ mt76x0_sta_remove(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
197197
mutex_lock(&dev->mt76.mutex);
198198
rcu_assign_pointer(dev->wcid[idx], NULL);
199199
mt76x02_mac_wcid_set_drop(&dev->mt76, idx, true);
200-
dev->wcid_mask[idx / BITS_PER_LONG] &= ~BIT(idx % BITS_PER_LONG);
200+
mt76_wcid_free(dev->wcid_mask, idx);
201201
mt76x02_mac_wcid_setup(&dev->mt76, idx, 0, NULL);
202202
mt76x0_mac_set_ampdu_factor(dev);
203203
mutex_unlock(&dev->mt76.mutex);

0 commit comments

Comments
 (0)