mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: move channel state to struct mt76_phy
Add support for an extra wiphy in mt76_set_channel and mt76_get_survey This is preparation for supporting multiple wiphys per device to support the concurrent dual-band feature of MT7615D Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+2
-2
@@ -11,7 +11,7 @@
|
||||
static inline int
|
||||
mt76x02_get_rssi_gain_thresh(struct mt76x02_dev *dev)
|
||||
{
|
||||
switch (dev->mt76.chandef.width) {
|
||||
switch (dev->mphy.chandef.width) {
|
||||
case NL80211_CHAN_WIDTH_80:
|
||||
return -62;
|
||||
case NL80211_CHAN_WIDTH_40:
|
||||
@@ -24,7 +24,7 @@ mt76x02_get_rssi_gain_thresh(struct mt76x02_dev *dev)
|
||||
static inline int
|
||||
mt76x02_get_low_rssi_gain_thresh(struct mt76x02_dev *dev)
|
||||
{
|
||||
switch (dev->mt76.chandef.width) {
|
||||
switch (dev->mphy.chandef.width) {
|
||||
case NL80211_CHAN_WIDTH_80:
|
||||
return -76;
|
||||
case NL80211_CHAN_WIDTH_40:
|
||||
|
||||
Reference in New Issue
Block a user