init.c (56d965da1318f92705a349f7232524dbb93add43) | init.c (67aa27431c7f871962fccdb70ae1f3883691e958) |
---|---|
1// SPDX-License-Identifier: ISC 2/* Copyright (C) 2020 MediaTek Inc. */ 3 4#include <linux/etherdevice.h> 5#include "mt7921.h" 6#include "mac.h" | 1// SPDX-License-Identifier: ISC 2/* Copyright (C) 2020 MediaTek Inc. */ 3 4#include <linux/etherdevice.h> 5#include "mt7921.h" 6#include "mac.h" |
7#include "mcu.h" |
|
7#include "eeprom.h" 8 9#define CCK_RATE(_idx, _rate) { \ 10 .bitrate = _rate, \ 11 .flags = IEEE80211_RATE_SHORT_PREAMBLE, \ 12 .hw_value = (MT_PHY_TYPE_CCK << 8) | (_idx), \ 13 .hw_value_short = (MT_PHY_TYPE_CCK << 8) | (4 + (_idx)), \ 14} --- 119 unchanged lines hidden (view full) --- 134 mt76_clear(dev, MT_MDP_DCR0, MT_MDP_DCR0_RX_HDR_TRANS_EN); 135 136 for (i = 0; i < MT7921_WTBL_SIZE; i++) 137 mt7921_mac_wtbl_update(dev, i, 138 MT_WTBL_UPDATE_ADM_COUNT_CLEAR); 139 for (i = 0; i < 2; i++) 140 mt7921_mac_init_band(dev, i); 141 | 8#include "eeprom.h" 9 10#define CCK_RATE(_idx, _rate) { \ 11 .bitrate = _rate, \ 12 .flags = IEEE80211_RATE_SHORT_PREAMBLE, \ 13 .hw_value = (MT_PHY_TYPE_CCK << 8) | (_idx), \ 14 .hw_value_short = (MT_PHY_TYPE_CCK << 8) | (4 + (_idx)), \ 15} --- 119 unchanged lines hidden (view full) --- 135 mt76_clear(dev, MT_MDP_DCR0, MT_MDP_DCR0_RX_HDR_TRANS_EN); 136 137 for (i = 0; i < MT7921_WTBL_SIZE; i++) 138 mt7921_mac_wtbl_update(dev, i, 139 MT_WTBL_UPDATE_ADM_COUNT_CLEAR); 140 for (i = 0; i < 2; i++) 141 mt7921_mac_init_band(dev, i); 142 |
142 mt7921_mcu_set_rts_thresh(&dev->phy, 0x92b); | 143 mt76_connac_mcu_set_rts_thresh(&dev->mt76, 0x92b, 0); |
143} 144 145static void mt7921_init_work(struct work_struct *work) 146{ 147 struct mt7921_dev *dev = container_of(work, struct mt7921_dev, 148 init_work); 149 150 mt7921_mcu_set_eeprom(dev); --- 105 unchanged lines hidden --- | 144} 145 146static void mt7921_init_work(struct work_struct *work) 147{ 148 struct mt7921_dev *dev = container_of(work, struct mt7921_dev, 149 init_work); 150 151 mt7921_mcu_set_eeprom(dev); --- 105 unchanged lines hidden --- |