From patchwork Wed Aug 8 20:16:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Valdis_Kl=C4=93tnieks?= X-Patchwork-Id: 10560477 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 621DD139A for ; Wed, 8 Aug 2018 20:17:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4C0362B05B for ; Wed, 8 Aug 2018 20:17:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3F02B2B05E; Wed, 8 Aug 2018 20:17:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C5B272B05B for ; Wed, 8 Aug 2018 20:17:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730183AbeHHWiS (ORCPT ); Wed, 8 Aug 2018 18:38:18 -0400 Received: from outbound.smtp.vt.edu ([198.82.183.121]:46298 "EHLO omr1.cc.vt.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730110AbeHHWiS (ORCPT ); Wed, 8 Aug 2018 18:38:18 -0400 Received: from mr4.cc.vt.edu (smtp.ipv6.vt.edu [IPv6:2607:b400:92:9:0:9d:8fcb:4116]) by omr1.cc.vt.edu (8.14.4/8.14.4) with ESMTP id w78KH2xV012034 for ; Wed, 8 Aug 2018 16:17:02 -0400 Received: from mail-qt0-f197.google.com (mail-qt0-f197.google.com [209.85.216.197]) by mr4.cc.vt.edu (8.14.7/8.14.7) with ESMTP id w78KGuJi023026 for ; Wed, 8 Aug 2018 16:17:01 -0400 Received: by mail-qt0-f197.google.com with SMTP id o18-v6so2684510qtm.11 for ; Wed, 08 Aug 2018 13:17:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:mime-version:date:message-id; bh=qRfUdlZyRUSOzzrFZN5Xgw1fUfxdmbVrndMuXCvgFMI=; b=glfFZJXBCc1zW1cfVWS5LPFZRkZuV8jlghlyZBn0Vz5m4fsqoIZArddGaCpuOqPNnL ExOfie5Z69FBE6I/S3a+T/ZjuXmb1SH5xsfnLK3pGPE6vEx/Rfa1x/g+5akcmHoi7tPH 2HUSunkNTL4mkSS8vkW15xRK2Fp+UR6TazwNGMh1JrZIEifYaf0/MqJYasyDfQYoSnay KH+35wvWRbf/TjSfH7VtSJ+IbrVHxvKePnTuB6M2YYMGU7py2kWC1AFie2BA/siiA6kU +GxUKtmdSuf+WlrejpuT1pDrupYwZj7F/E9iaUCVQIH20iwB/wfDTbXHscy61savqWJE BV6w== X-Gm-Message-State: AOUpUlETFohRjo3Nx/bH0TTYGeugc7pOPNYQ9nLmX1wJSASxOcMzb/xo A21nryX5iijlG8MLTqK56NmRx5NHHUyAGC3bIQzO/0X2hplABz5TFNcOZCrpJf7uGSCtbyoKKq8 waZjbkVK7EJjcA0B5PsDFh0vTZ01EtFRbaiD2mA== X-Received: by 2002:a37:8ac2:: with SMTP id m185-v6mr3769368qkd.401.1533759416781; Wed, 08 Aug 2018 13:16:56 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxhTujOvemFcgwYj4fYbOOAX1HRiSUHsGRVLgvkn+GorfrlsexwaTwbGq/gtq/1+rJXHaek9Q== X-Received: by 2002:a37:8ac2:: with SMTP id m185-v6mr3769354qkd.401.1533759416538; Wed, 08 Aug 2018 13:16:56 -0700 (PDT) Received: from turing-police.cc.vt.edu ([2601:5c0:c001:4340::377]) by smtp.gmail.com with ESMTPSA id z18-v6sm3615444qtz.89.2018.08.08.13.16.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 Aug 2018 13:16:55 -0700 (PDT) X-Mailer: exmh version 2.8.0 04/21/2017 with nmh-1.7+dev From: valdis.kletnieks@vt.edu To: Kalle Valo , "David S. Miller" cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org Subject: [PATCH] fix build for MediaTek MT7610U USB wireless dongle Mime-Version: 1.0 Date: Wed, 08 Aug 2018 16:16:54 -0400 Message-ID: <145751.1533759414@turing-police.cc.vt.edu> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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