mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: move band capabilities in mt76_phy
This is a preliminary patch to move properly support mt7915 dbdc Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
576647f2ec
commit
e881fd67c7
+4
-4
@@ -159,9 +159,9 @@ static void mt76_init_stream_cap(struct mt76_phy *phy,
|
||||
|
||||
void mt76_set_stream_caps(struct mt76_phy *phy, bool vht)
|
||||
{
|
||||
if (phy->dev->cap.has_2ghz)
|
||||
if (phy->cap.has_2ghz)
|
||||
mt76_init_stream_cap(phy, &phy->sband_2g.sband, false);
|
||||
if (phy->dev->cap.has_5ghz)
|
||||
if (phy->cap.has_5ghz)
|
||||
mt76_init_stream_cap(phy, &phy->sband_5g.sband, vht);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(mt76_set_stream_caps);
|
||||
@@ -461,13 +461,13 @@ int mt76_register_device(struct mt76_dev *dev, bool vht,
|
||||
dev_set_drvdata(dev->dev, dev);
|
||||
mt76_phy_init(dev, hw);
|
||||
|
||||
if (dev->cap.has_2ghz) {
|
||||
if (phy->cap.has_2ghz) {
|
||||
ret = mt76_init_sband_2g(dev, rates, n_rates);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (dev->cap.has_5ghz) {
|
||||
if (phy->cap.has_5ghz) {
|
||||
ret = mt76_init_sband_5g(dev, rates + 4, n_rates - 4, vht);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user