main.c (6f23fc47c1b2ac226704fb7294f43ed3b0965e51) | main.c (0335c034e7265d36d956e806f33202c94a8a9860) |
---|---|
1// SPDX-License-Identifier: ISC 2/* 3 * Copyright (C) 2022 MediaTek Inc. 4 */ 5 6#include "mt7996.h" 7#include "mcu.h" 8#include "mac.h" --- 193 unchanged lines hidden (view full) --- 202 idx = MT7996_WTBL_RESERVED - mvif->mt76.idx; 203 204 INIT_LIST_HEAD(&mvif->sta.rc_list); 205 INIT_LIST_HEAD(&mvif->sta.wcid.poll_list); 206 mvif->sta.wcid.idx = idx; 207 mvif->sta.wcid.phy_idx = band_idx; 208 mvif->sta.wcid.hw_key_idx = -1; 209 mvif->sta.wcid.tx_info |= MT_WCID_TX_INFO_SET; | 1// SPDX-License-Identifier: ISC 2/* 3 * Copyright (C) 2022 MediaTek Inc. 4 */ 5 6#include "mt7996.h" 7#include "mcu.h" 8#include "mac.h" --- 193 unchanged lines hidden (view full) --- 202 idx = MT7996_WTBL_RESERVED - mvif->mt76.idx; 203 204 INIT_LIST_HEAD(&mvif->sta.rc_list); 205 INIT_LIST_HEAD(&mvif->sta.wcid.poll_list); 206 mvif->sta.wcid.idx = idx; 207 mvif->sta.wcid.phy_idx = band_idx; 208 mvif->sta.wcid.hw_key_idx = -1; 209 mvif->sta.wcid.tx_info |= MT_WCID_TX_INFO_SET; |
210 mt76_packet_id_init(&mvif->sta.wcid); | 210 mt76_wcid_init(&mvif->sta.wcid); |
211 212 mt7996_mac_wtbl_update(dev, idx, 213 MT_WTBL_UPDATE_ADM_COUNT_CLEAR); 214 215 if (vif->txq) { 216 mtxq = (struct mt76_txq *)vif->txq->drv_priv; 217 mtxq->wcid = idx; 218 } --- 44 unchanged lines hidden (view full) --- 263 phy->omac_mask &= ~BIT_ULL(mvif->mt76.omac_idx); 264 mutex_unlock(&dev->mt76.mutex); 265 266 spin_lock_bh(&dev->mt76.sta_poll_lock); 267 if (!list_empty(&msta->wcid.poll_list)) 268 list_del_init(&msta->wcid.poll_list); 269 spin_unlock_bh(&dev->mt76.sta_poll_lock); 270 | 211 212 mt7996_mac_wtbl_update(dev, idx, 213 MT_WTBL_UPDATE_ADM_COUNT_CLEAR); 214 215 if (vif->txq) { 216 mtxq = (struct mt76_txq *)vif->txq->drv_priv; 217 mtxq->wcid = idx; 218 } --- 44 unchanged lines hidden (view full) --- 263 phy->omac_mask &= ~BIT_ULL(mvif->mt76.omac_idx); 264 mutex_unlock(&dev->mt76.mutex); 265 266 spin_lock_bh(&dev->mt76.sta_poll_lock); 267 if (!list_empty(&msta->wcid.poll_list)) 268 list_del_init(&msta->wcid.poll_list); 269 spin_unlock_bh(&dev->mt76.sta_poll_lock); 270 |
271 mt76_packet_id_flush(&dev->mt76, &msta->wcid); | 271 mt76_wcid_cleanup(&dev->mt76, &msta->wcid); |
272} 273 274int mt7996_set_channel(struct mt7996_phy *phy) 275{ 276 struct mt7996_dev *dev = phy->dev; 277 int ret; 278 279 cancel_delayed_work_sync(&phy->mt76->mac_work); --- 1139 unchanged lines hidden --- | 272} 273 274int mt7996_set_channel(struct mt7996_phy *phy) 275{ 276 struct mt7996_dev *dev = phy->dev; 277 int ret; 278 279 cancel_delayed_work_sync(&phy->mt76->mac_work); --- 1139 unchanged lines hidden --- |