linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fix build for MediaTek MT7610U USB wireless dongle
@ 2018-08-08 20:16 valdis.kletnieks
  2018-08-09  5:16 ` Kalle Valo
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: valdis.kletnieks @ 2018-08-08 20:16 UTC (permalink / raw)
  To: Kalle Valo, David S. Miller; +Cc: netdev, linux-kernel, linux-wireless

The mt76x0 driver requires the mt76 core driver to actually function.
So add a 'select' to avoid embarrassing 'symbol unknown' errors
when attempting to modprobe it in a module tree that doesn't
include mt76.ko

Signed-off-by: Valdis Kletnieks <valdis.kletnieks@vt.edu>
---
Still need to figure out why it totally fails to see the 5gz band,
it works find on 2.4 but ends up locked at 72mbits/sec. Works
OK otherwise...

diff --git a/drivers/net/wireless/mediatek/mt76/Kconfig b/drivers/net/wireless/mediatek/mt76/Kconfig
index 850611ad347a..b6c5f17dca30 100644
--- a/drivers/net/wireless/mediatek/mt76/Kconfig
+++ b/drivers/net/wireless/mediatek/mt76/Kconfig
@@ -11,6 +11,7 @@ config MT76x2_COMMON
 
 config MT76x0U
 	tristate "MediaTek MT76x0U (USB) support"
+	select MT76_CORE
 	depends on MAC80211
 	depends on USB
 	help


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] fix build for MediaTek MT7610U USB wireless dongle
  2018-08-08 20:16 [PATCH] fix build for MediaTek MT7610U USB wireless dongle valdis.kletnieks
@ 2018-08-09  5:16 ` Kalle Valo
  2018-08-09 10:51 ` Stanislaw Gruszka
  2018-08-09 15:13 ` [PATCH] mt76: " Kalle Valo
  2 siblings, 0 replies; 4+ messages in thread
From: Kalle Valo @ 2018-08-09  5:16 UTC (permalink / raw)
  To: valdis.kletnieks; +Cc: David S. Miller, netdev, linux-kernel, linux-wireless

valdis.kletnieks@vt.edu writes:

> The mt76x0 driver requires the mt76 core driver to actually function.
> So add a 'select' to avoid embarrassing 'symbol unknown' errors
> when attempting to modprobe it in a module tree that doesn't
> include mt76.ko
>
> Signed-off-by: Valdis Kletnieks <valdis.kletnieks@vt.edu>

I'll add "mt76:" prefix to the title and queue this for 4.19.

> Still need to figure out why it totally fails to see the 5gz band,
> it works find on 2.4 but ends up locked at 72mbits/sec. Works
> OK otherwise...

Great, thanks for the feedback.

-- 
Kalle Valo

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] fix build for MediaTek MT7610U USB wireless dongle
  2018-08-08 20:16 [PATCH] fix build for MediaTek MT7610U USB wireless dongle valdis.kletnieks
  2018-08-09  5:16 ` Kalle Valo
@ 2018-08-09 10:51 ` Stanislaw Gruszka
  2018-08-09 15:13 ` [PATCH] mt76: " Kalle Valo
  2 siblings, 0 replies; 4+ messages in thread
From: Stanislaw Gruszka @ 2018-08-09 10:51 UTC (permalink / raw)
  To: valdis.kletnieks
  Cc: Kalle Valo, David S. Miller, netdev, linux-kernel, linux-wireless

On Wed, Aug 08, 2018 at 04:16:54PM -0400, valdis.kletnieks@vt.edu wrote:
> The mt76x0 driver requires the mt76 core driver to actually function.
> So add a 'select' to avoid embarrassing 'symbol unknown' errors
> when attempting to modprobe it in a module tree that doesn't
> include mt76.ko
> 
> Signed-off-by: Valdis Kletnieks <valdis.kletnieks@vt.edu>
> ---
> Still need to figure out why it totally fails to see the 5gz band,
> it works find on 2.4 but ends up locked at 72mbits/sec. Works
> OK otherwise...

This may depend on HW configuration written in the EEPROM. My dongle
Linksys AE6000 do not require various features that Mediatek driver has,
those are not implemented in mt76x0 driver and should be added. Your
hardware may require those features.

You can try version of the driver from:
https://github.com/sgruszka/wireless-drivers-next/commits/mt76x0-draft-v2
which include various fixes and possibly can make things better
(or worse, there can be regressions too)

Cheers
Stanislaw

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] mt76: fix build for MediaTek MT7610U USB wireless dongle
  2018-08-08 20:16 [PATCH] fix build for MediaTek MT7610U USB wireless dongle valdis.kletnieks
  2018-08-09  5:16 ` Kalle Valo
  2018-08-09 10:51 ` Stanislaw Gruszka
@ 2018-08-09 15:13 ` Kalle Valo
  2 siblings, 0 replies; 4+ messages in thread
From: Kalle Valo @ 2018-08-09 15:13 UTC (permalink / raw)
  To: Valdis Kletnieks; +Cc: David S. Miller, netdev, linux-kernel, linux-wireless

Valdis Kletnieks <valdis.kletnieks@vt.edu> wrote:

> The mt76x0 driver requires the mt76 core driver to actually function.
> So add a 'select' to avoid embarrassing 'symbol unknown' errors
> when attempting to modprobe it in a module tree that doesn't
> include mt76.ko
> 
> Signed-off-by: Valdis Kletnieks <valdis.kletnieks@vt.edu>

Patch applied to wireless-drivers-next.git, thanks.

1ec49a236565 mt76: fix build for MediaTek MT7610U USB wireless dongle

-- 
https://patchwork.kernel.org/patch/10560477/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-08-09 15:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-08 20:16 [PATCH] fix build for MediaTek MT7610U USB wireless dongle valdis.kletnieks
2018-08-09  5:16 ` Kalle Valo
2018-08-09 10:51 ` Stanislaw Gruszka
2018-08-09 15:13 ` [PATCH] mt76: " Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).