* [PATCH v4] mt76: mt7615: add missing capabilities for DBDC
@ 2021-03-04 8:55 ` Ryder Lee
0 siblings, 0 replies; 4+ messages in thread
From: Ryder Lee @ 2021-03-04 8:55 UTC (permalink / raw)
To: Felix Fietkau, Lorenzo Bianconi
Cc: Shayne Chen, linux-wireless, linux-mediatek, Ryder Lee
This improves performance for second phy.
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
---
change since v4 - fix init order.
change since v3 - none.
change since v2 - adjust setup sequence.
---
drivers/net/wireless/mediatek/mt76/mt7615/init.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/init.c b/drivers/net/wireless/mediatek/mt76/mt7615/init.c
index 88a2ee7e7143..e70e852c1af8 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7615/init.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7615/init.c
@@ -448,6 +448,9 @@ int mt7615_register_ext_phy(struct mt7615_dev *dev)
/* second phy can only handle 5 GHz */
mphy->cap.has_5ghz = true;
+ mphy->sband_5g.sband.ht_cap.cap |= IEEE80211_HT_CAP_LDPC_CODING;
+ mphy->sband_5g.sband.vht_cap.cap |=
+ IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK;
/* mt7615 second phy shares the same hw queues with the primary one */
for (i = 0; i <= MT_TXQ_PSD ; i++)
--
2.18.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v4] mt76: mt7615: add missing capabilities for DBDC
@ 2021-03-04 8:55 ` Ryder Lee
0 siblings, 0 replies; 4+ messages in thread
From: Ryder Lee @ 2021-03-04 8:55 UTC (permalink / raw)
To: Felix Fietkau, Lorenzo Bianconi
Cc: Shayne Chen, linux-wireless, linux-mediatek, Ryder Lee
This improves performance for second phy.
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
---
change since v4 - fix init order.
change since v3 - none.
change since v2 - adjust setup sequence.
---
drivers/net/wireless/mediatek/mt76/mt7615/init.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/init.c b/drivers/net/wireless/mediatek/mt76/mt7615/init.c
index 88a2ee7e7143..e70e852c1af8 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7615/init.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7615/init.c
@@ -448,6 +448,9 @@ int mt7615_register_ext_phy(struct mt7615_dev *dev)
/* second phy can only handle 5 GHz */
mphy->cap.has_5ghz = true;
+ mphy->sband_5g.sband.ht_cap.cap |= IEEE80211_HT_CAP_LDPC_CODING;
+ mphy->sband_5g.sband.vht_cap.cap |=
+ IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK;
/* mt7615 second phy shares the same hw queues with the primary one */
for (i = 0; i <= MT_TXQ_PSD ; i++)
--
2.18.0
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v4] mt76: mt7615: add missing capabilities for DBDC
2021-03-04 8:55 ` Ryder Lee
@ 2021-03-04 19:28 ` Felix Fietkau
-1 siblings, 0 replies; 4+ messages in thread
From: Felix Fietkau @ 2021-03-04 19:28 UTC (permalink / raw)
To: Ryder Lee, Lorenzo Bianconi; +Cc: Shayne Chen, linux-wireless, linux-mediatek
On 2021-03-04 09:55, Ryder Lee wrote:
> This improves performance for second phy.
>
> Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>I actually prefer v1 of this patch. You can fix the init order issues by
simply dropping the if (phy->mt76->cap.has_*) checks, since they are not
needed at all.
- Felix
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v4] mt76: mt7615: add missing capabilities for DBDC
@ 2021-03-04 19:28 ` Felix Fietkau
0 siblings, 0 replies; 4+ messages in thread
From: Felix Fietkau @ 2021-03-04 19:28 UTC (permalink / raw)
To: Ryder Lee, Lorenzo Bianconi; +Cc: Shayne Chen, linux-wireless, linux-mediatek
On 2021-03-04 09:55, Ryder Lee wrote:
> This improves performance for second phy.
>
> Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>I actually prefer v1 of this patch. You can fix the init order issues by
simply dropping the if (phy->mt76->cap.has_*) checks, since they are not
needed at all.
- Felix
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-03-04 19:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-04 8:55 [PATCH v4] mt76: mt7615: add missing capabilities for DBDC Ryder Lee
2021-03-04 8:55 ` Ryder Lee
2021-03-04 19:28 ` Felix Fietkau
2021-03-04 19:28 ` Felix Fietkau
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.