mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: sync with upstream changes
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+1
-1
@@ -128,7 +128,7 @@ mt7615_eeprom_parse_hw_band_cap(struct mt7615_dev *dev)
|
||||
break;
|
||||
case MT_EE_DBDC:
|
||||
dev->dbdc_support = true;
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
default:
|
||||
dev->mphy.cap.has_2ghz = true;
|
||||
dev->mphy.cap.has_5ghz = true;
|
||||
|
||||
+4
-1
@@ -323,8 +323,11 @@ mt7615_regd_notifier(struct wiphy *wiphy,
|
||||
|
||||
if (chandef->chan->flags & IEEE80211_CHAN_RADAR)
|
||||
mt7615_dfs_init_radar_detector(phy);
|
||||
if (mt7615_firmware_offload(phy->dev))
|
||||
|
||||
if (mt7615_firmware_offload(phy->dev)) {
|
||||
mt76_connac_mcu_set_channel_domain(mphy);
|
||||
mt76_connac_mcu_set_rate_txpower(mphy);
|
||||
}
|
||||
|
||||
mt7615_mutex_release(dev);
|
||||
}
|
||||
|
||||
@@ -66,6 +66,10 @@ static int mt7615_start(struct ieee80211_hw *hw)
|
||||
ret = mt76_connac_mcu_set_channel_domain(phy->mt76);
|
||||
if (ret)
|
||||
goto out;
|
||||
|
||||
ret = mt76_connac_mcu_set_rate_txpower(phy->mt76);
|
||||
if (ret)
|
||||
goto out;
|
||||
}
|
||||
|
||||
ret = mt7615_mcu_set_chan_info(phy, MCU_EXT_CMD_SET_RX_PATH);
|
||||
|
||||
@@ -2204,6 +2204,11 @@ static void mt7615_mcu_set_txpower_sku(struct mt7615_phy *phy, u8 *sku)
|
||||
&limits, tx_power);
|
||||
mphy->txpower_cur = tx_power;
|
||||
|
||||
if (is_mt7663(mphy->dev)) {
|
||||
memset(sku, tx_power, MT_SKU_4SS_DELTA + 1);
|
||||
return;
|
||||
}
|
||||
|
||||
for (i = 0; i < MT_SKU_1SS_DELTA; i++)
|
||||
sku[i] = limits_array[sku_mapping[i]];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user