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: 10331887 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 BA6866020F for ; Mon, 9 Apr 2018 18:49:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A8FE828B76 for ; Mon, 9 Apr 2018 18:49:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9D84728BB6; Mon, 9 Apr 2018 18:49:22 +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=-2.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1D77B28BB4 for ; Mon, 9 Apr 2018 18:49:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:Message-ID: In-Reply-To:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=C1SPP6rEY4sMgB4+bm+1nJdux84NeU/oshRMYUoxabQ=; b=kdMvAMcrMeKsoZ IB0C2XaZLPSzBaoVyQolfEumATugcdirLmSm0LBEfvouAk5e0POAtiCdTRiY1k3xcfOjxoJqT6fod nqDvsjmE/NWJybR7wq2TikOLvs4gtXzLNKWHdM6k+nauCN8PEFNTu7P2OY9UgmiksdlyXe2LqihZn 62Nm7BxeC9vdkSNrlHQVh+e1/01Xx5BGtfASwo+H0ekT40Zx36IfYIHsAWn+nm251bT8UGLgH6fNs /Oze9oFqT03dpcHupYB4WXS6h8CezfFfkMJE/wEO6r5fdlQIQWqmRJR2oRGZC+m6GrpbVUAXTEBge 2GBu51c8IQOoJC6qZcAQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1f5bqy-0001oJ-6v; Mon, 09 Apr 2018 18:49:20 +0000 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f5bqu-0001md-W7 for linux-mediatek@lists.infradead.org; Mon, 09 Apr 2018 18:49:18 +0000 Received: by mail-wm0-x234.google.com with SMTP id i3so18648764wmf.3 for ; Mon, 09 Apr 2018 11:49:06 -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=BOI2PTjhY2eIp8T1PHmbizCKwjyP8v12ws0GUQ42m04b4wkEEsYdDLz5Ue/XoLTOfM fnPpd9Y+0P6EbKF9vD7BnBwpAAM9lE8wNuZ2pkpJFwVhTaWBz/37Jt3/T4ueM4zU5dxr f8S/39VbFUGPXbjuFQDoPKYulXn36U7KxkxTTPm5lmMkmpHfb9syQBRSaIuYI05cGZbK suNYbxwIvn7qqc04phb7Ber9IvK+WhcqIhXhAt7RFXtq/jlne6xTf4YZBwej+blDPFaX 4yFGi/yWGQOJFvxuv+DPP7XMX+kmGjecUaAKbS1P6prqG4O56xUXrS1sJ1zzZfvEJjEk WDiw== X-Gm-Message-State: ALQs6tBIaPyV5ZHWDdZsq65AYl5BAdpSpc4Fviop9NjVWJX04pYTEyiH n2WXZEVLMPx2rHvendPImWc= 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180409_114917_064729_45883AF9 X-CRM114-Status: GOOD ( 15.07 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?ISO-8859-2?Q?Jakub_Kici=F1ski?= , Hans Ulli Kroll , Michal Schmidt , linux-wireless@vger.kernel.org, linux-mediatek@lists.infradead.org, Lorenzo Bianconi , Felix Fietkau Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.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, } };