From patchwork Mon Apr 9 18:45:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Ulli Kroll X-Patchwork-Id: 10331885 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.web.codeaurora.org (Postfix) with ESMTP id A1D1F6020F for ; Mon, 9 Apr 2018 18:49:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 90FF028922 for ; Mon, 9 Apr 2018 18:49:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 858E928BB6; Mon, 9 Apr 2018 18:49:10 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, 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 9DC1528BB4 for ; Mon, 9 Apr 2018 18:49:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752249AbeDIStH (ORCPT ); Mon, 9 Apr 2018 14:49:07 -0400 Received: from mail-wm0-f48.google.com ([74.125.82.48]:50477 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751728AbeDIStG (ORCPT ); Mon, 9 Apr 2018 14:49:06 -0400 Received: by mail-wm0-f48.google.com with SMTP id t67so21328436wmt.0 for ; Mon, 09 Apr 2018 11:49:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=Fa0OuY9t0dmbvWl3NIrp4LDJm5cKOseokaHt3GbXaos=; b=pdZudwIA9Hhp3KnDFdssUIT+U1TgiiiGScwibljgIMq6rzP71gpZVW6ViG2H4dyiw+ CivI6ctgzCS/bRb6RftFC2VqVQNIJ4ib1kMr4/4M2aslzit255kvgZvTfk7bDmhA9Gf7 jJ1WahoTVCEX2h9fGw2fXNLMrKo4CsQMAmo1HhxCwj8Q3rHsFzSvywdiGGRf2V5LVbjS crCgG73RVimrWaTFdrRUxX8hoHb6XOsCMWk/Wg/zet06I4Ay+Rq2skXb2E6geoLlCopK 90nz2kObsogfdGXp0nQtuY+HhKS7/GksuXcCRfDcapZ3fOso9Q9Hbsxmmj8ZdoFAyEGT /d+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=Fa0OuY9t0dmbvWl3NIrp4LDJm5cKOseokaHt3GbXaos=; b=q9BzCrnI15ppkjCpYhCLKsmxH5DchtWz75KiFDumX+wIPHLl7eNBYXP8pDIKliJXYP nET9QssN0ntpuR+QmIuwYpTrZLeE4n97Zux1EDOhKBeqe7s/uulb9BRLm3hzxuK+WK7n swPnhh64pCeU1q50yf09EioJ44JV6rrDN2A4c3hFuxeXWS7/aJsmUg0HmLljiSEOIB/4 zkNu+WRIfKhsuOA13LX+3y1PmUctj0MNgb32Ery8bld5khGNtvLci3C1Ut8jFCyKFSBe 2r5FjKf8WZQvhGpXfP7hLmPa0gxdKQaixBP7B6BUgeTGk+h1wpbWn0IHU1SbJqVR6lC+ cklQ== X-Gm-Message-State: ALQs6tDOHCa4vCAEq9x7fX4jVLNS8nkqV8JZ3B9VBGjy1BVaWOBlICpB +YIUS6rx/epDnKOCz3yncdc= X-Google-Smtp-Source: AIpwx48ZTjfgpG9Ho6WDK8W7GoTQmNWZK3Yrr9y4PNpK5SHealnlUNfGXV2nziSdvz+rXt2Wjp3u2g== X-Received: by 10.80.168.227 with SMTP id k90mr23962296edc.208.1523299744812; Mon, 09 Apr 2018 11:49:04 -0700 (PDT) Received: from localhost (cable-78-34-7-242.netcologne.de. [78.34.7.242]) by smtp.gmail.com with ESMTPSA id p27sm636451eda.83.2018.04.09.11.49.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Apr 2018 11:49:04 -0700 (PDT) Date: Mon, 9 Apr 2018 20:45:20 +0200 (CEST) From: Hans Ulli Kroll X-X-Sender: elektroman@T420s To: Stanislaw Gruszka cc: linux-wireless@vger.kernel.org, Felix Fietkau , =?ISO-8859-2?Q?Jakub_Kici=F1ski?= , Hans Ulli Kroll , Lorenzo Bianconi , Michal Schmidt , linux-mediatek@lists.infradead.org Subject: Re: [ANN] mt76x0 usb driver In-Reply-To: <20180409141032.GA9247@redhat.com> Message-ID: References: <20180409141032.GA9247@redhat.com> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 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 Hi On Mon, 9 Apr 2018, Stanislaw Gruszka wrote: > Hi > > I would like to announce mt76x0 driver for MT7610U USB dongles: > > https://github.com/sgruszka/mt76x0 > > mt76x0 is based on Jakub's mt7601u mac80211 driver and is intended to be > integrated in the linux kernel. > > Currently only Linksys AE6000 (ID 13b1:003e) in on USB id's list > and 5GHz does not work. > here are my changes for working 5Ghz band and more USB ID's form my side Greetings Hans diff --git a/phy.c b/phy.c index e1af2b0..460bd4e 100644 --- a/phy.c +++ b/phy.c @@ -350,7 +350,7 @@ mt76x0_phy_set_band(struct mt76x0_dev *dev, enum nl80211_band band) static void mt76x0_phy_set_chan_rf_params(struct mt76x0_dev *dev, u8 channel, u16 rf_bw_band) { - u16 rf_band = rf_bw_band & 0xff00; + u16 rf_band; u16 rf_bw = rf_bw_band & 0x00ff; u32 mac_reg; u8 rf_val; @@ -367,6 +367,7 @@ mt76x0_phy_set_chan_rf_params(struct mt76x0_dev *dev, u8 channel, u16 rf_bw_band for (i = 0; i < ARRAY_SIZE(mt76x0_frequency_plan); i++) { if (channel == mt76x0_frequency_plan[i].channel) { + rf_band = mt76x0_frequency_plan[i].band; if (bSDM) freq_item = &(mt76x0_sdm_frequency_plan[i]); diff --git a/usb.c b/usb.c index efae0a0..6b9a505 100644 --- a/usb.c +++ b/usb.c @@ -20,7 +20,29 @@ #include "trace.h" static struct usb_device_id mt76x0_device_table[] = { - { USB_DEVICE(0x13b1,0x003e) }, + { USB_DEVICE(0x148F, 0x7610) }, /* MT7610U */ + { USB_DEVICE(0x13B1, 0x003E) }, /* Linksys AE6000 */ + { USB_DEVICE(0x0E8D, 0x7610) }, /* Sabrent NTWLAC */ + { USB_DEVICE(0x7392, 0xa711) }, /* Edimax 7711mac */ + { USB_DEVICE(0x7392, 0xb711) }, /* Edimax / Elecom */ + { USB_DEVICE(0x148f, 0x761a) }, /* TP-Link TL-WDN5200 */ + { USB_DEVICE(0x148f, 0x760a) }, /* TP-Link unknown */ + { USB_DEVICE(0x0b05, 0x17d1) }, /* Asus USB-AC51 */ + { USB_DEVICE(0x0b05, 0x17db) }, /* Asus USB-AC50 */ + { USB_DEVICE(0x0df6, 0x0075) }, /* Sitecom WLA-3100 */ + { USB_DEVICE(0x2019, 0xab31) }, /* Planex GW-450D */ + { USB_DEVICE(0x2001, 0x3d02) }, /* D-LINK DWA-171 rev B1 */ + { USB_DEVICE(0x0586, 0x3425) }, /* Zyxel NWD6505 */ + { USB_DEVICE(0x07b8, 0x7610) }, /* AboCom AU7212 */ + { USB_DEVICE(0x04bb, 0x0951) }, /* I-O DATA WN-AC433UK */ + { USB_DEVICE(0x057c, 0x8502) }, /* AVM FRITZ!WLAN USB Stick AC 430 */ + { USB_DEVICE(0x293c, 0x5702) }, /* Comcast Xfinity KXW02AAA */ + { USB_DEVICE(0x20f4, 0x806b) }, /* TRENDnet TEW-806UBH */ + { USB_DEVICE(0x7392, 0xc711) }, /* Devolo Wifi ac Stick */ + { USB_DEVICE(0x0df6, 0x0079) }, /* Sitecom Europe B.V. ac Stick */ + { USB_DEVICE(0x2357, 0x0105) }, /* TP-LINK Archer T1U */ + { USB_DEVICE_AND_INTERFACE_INFO(0x0E8D, 0x7630, 0xff, 0x2, 0xff)}, /* MT7630U */ + { USB_DEVICE_AND_INTERFACE_INFO(0x0E8D, 0x7650, 0xff, 0x2, 0xff)}, /* MT7650U */ { 0, } };