.. | .. |
---|
160 | 160 | |
---|
161 | 161 | void mt76_set_stream_caps(struct mt76_phy *phy, bool vht) |
---|
162 | 162 | { |
---|
163 | | - if (phy->dev->cap.has_2ghz) |
---|
| 163 | + if (phy->cap.has_2ghz) |
---|
164 | 164 | mt76_init_stream_cap(phy, &phy->sband_2g.sband, false); |
---|
165 | | - if (phy->dev->cap.has_5ghz) |
---|
| 165 | + if (phy->cap.has_5ghz) |
---|
166 | 166 | mt76_init_stream_cap(phy, &phy->sband_5g.sband, vht); |
---|
167 | 167 | } |
---|
168 | 168 | EXPORT_SYMBOL_GPL(mt76_set_stream_caps); |
---|
.. | .. |
---|
463 | 463 | dev_set_drvdata(dev->dev, dev); |
---|
464 | 464 | mt76_phy_init(dev, hw); |
---|
465 | 465 | |
---|
466 | | - if (dev->cap.has_2ghz) { |
---|
| 466 | + if (phy->cap.has_2ghz) { |
---|
467 | 467 | ret = mt76_init_sband_2g(dev, rates, n_rates); |
---|
468 | 468 | if (ret) |
---|
469 | 469 | return ret; |
---|
470 | 470 | } |
---|
471 | 471 | |
---|
472 | | - if (dev->cap.has_5ghz) { |
---|
| 472 | + if (phy->cap.has_5ghz) { |
---|
473 | 473 | ret = mt76_init_sband_5g(dev, rates + 4, n_rates - 4, vht); |
---|
474 | 474 | if (ret) |
---|
475 | 475 | return ret; |
---|