Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4714050ybl; Mon, 13 Jan 2020 19:17:37 -0800 (PST) X-Google-Smtp-Source: APXvYqzQ1lwyBpAFCGZjK7CHoBitgZzbsc05DcAM4yLbzkwg8N2ys8MiNejC66evVvA1yXRrX1Fp X-Received: by 2002:a9d:3c6:: with SMTP id f64mr695870otf.334.1578971857799; Mon, 13 Jan 2020 19:17:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578971857; cv=none; d=google.com; s=arc-20160816; b=mU+gBJqxuQ5L31nTPeVWH5HloFp9Y6D+kGM0vcjB2cL0VYLFUgjWfee8NPbQgK/+mV t9NcV7JHT66mwozFUJ1p5fJ3ZbBrD2X++RS+M/N52EmrjsUvdNIONqIxc0okhKugEDzT xW7swDr2N5xv16B6Yd7Tq5HqvhycP9dlzfDaTI2Hr64uIeRG6R8tq51N11OY1aIhms1k f4JbQnWHhBVxV8EF57MoL6WTvTi/FYLzUta2pEumUjrkM8mHE2FdXSkzAOJPE5Q/lOV7 ieJk12bLToHfmg7WOGqdRajWQqLA/xb04uBVDkl51sSkuWhPJLpAmNZdsfVYcr7hSXWx 17Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature; bh=Ysc0kSQv0C2nCyyZOQORY8gg50c5kI1Ihctc9NkfI6w=; b=oM6ChnjCZug/AHV44tsYIebGZG1Ywm1GUe5W4Puqu209Cl4CsUQty6c8Wd60aO8Nol JsHA3w63v6BDMSABosyi3puKd0sikfOZI3S4tt5cx8W7lxSxtjfWCVxE4Wh/J5GP6188 pc0N3Tz+PUeF26P39v6pMpglFIeH2i/7512UdKlIx/rAAU4KKLxc7G5ALNMURYOwc+ql IvYwE2/bxlg/eUfyOZAagw3bptGkRsSsZ5qPK2IlrXxddfwWwnUzfWmzIsBXFfeaTU75 xIeHgieSXWyCnmb8+pfgtmmzsn7aD2dtUdGGUO6b8zuIo6lW7Qted9+B22UVtBW5J95Q Lc9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WbQB2AHt; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p5si8883254otk.221.2020.01.13.19.17.12; Mon, 13 Jan 2020 19:17:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WbQB2AHt; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729190AbgANCwa (ORCPT + 99 others); Mon, 13 Jan 2020 21:52:30 -0500 Received: from mail-il1-f169.google.com ([209.85.166.169]:41777 "EHLO mail-il1-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729011AbgANCwa (ORCPT ); Mon, 13 Jan 2020 21:52:30 -0500 Received: by mail-il1-f169.google.com with SMTP id f10so10099421ils.8 for ; Mon, 13 Jan 2020 18:52:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Ysc0kSQv0C2nCyyZOQORY8gg50c5kI1Ihctc9NkfI6w=; b=WbQB2AHtbo9KXBXmsEDNlx3KW5VSi5LDlBfXREPAI6JTml0jJwJ0kpOeCaGORjUqpN HXt21rADx7tv78BQI1aoP/zJaCAsaSVbKukmWFUZvXk6VzdraQcmRp82rrp0XYp1ovgp qHYyvNQ3I76ED0Xvs5vnJY2C+cm6mUvll4An0QJqq+dNj9CZW4jkZ0ntbFqNNjeNQ0Vr VSoLRLy31/yeT9nLz5sVYhAksSiguWykZX8bK1o5qaU5m4PeXQ6DCPMjgMhjlSXYafTp d9CO8e/Oc3qz8t3fQXEa5yXbsmEOeYSGgQffO6JVCL9zOxRuAnoSixrtpS0AzYCrJV4f xuFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Ysc0kSQv0C2nCyyZOQORY8gg50c5kI1Ihctc9NkfI6w=; b=TIHpKHelRowZTMiEtaW8kA5BPZu4xa+zkB6f+ajvNHI3yPgdC1y3SqcBjxNkW70mDQ 83asFOQR6OzHksZJ5Ns7SqLgX39LLtJ6mzXSoan0YIz+gO2vSlXjQ8ylp2u+uQSzoTgG heFxMYGt3ij1Zzrifid+QOrJwEqFipkeRvCEK+n2xHOBwBMZOnxLLokU0HC2QvEQ1lHt aCYMyOEqvD4yc8c69G/tAlt+0kfFhr/rwmqcddlCScx/5ts643WdJrM3Zu7+0ZcENT71 Voshfp9kV1s4KaC9RyGH9qPpakrp2BNSAEWqoRzs0Oy3Kj/rfhAoV7D8yVdE2Kp1inn+ VKIQ== X-Gm-Message-State: APjAAAXrVatOak9PBhRqwAvmT6f2SatNDX3ppdJTJv7y/VtyxKK3KaVr CGdvuJ87La0Vjer/eOx2MtGTm3TeBU8TACXc3bg= X-Received: by 2002:a92:8f4b:: with SMTP id j72mr1588482ild.1.1578970349484; Mon, 13 Jan 2020 18:52:29 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a6b:a0b:0:0:0:0:0 with HTTP; Mon, 13 Jan 2020 18:52:28 -0800 (PST) In-Reply-To: References: <20200110132142.7737-1-denis281089@gmail.com> From: Tom Psyborg Date: Tue, 14 Jan 2020 03:52:28 +0100 Message-ID: Subject: Re: [PATCH v3] ath9k: fix firmware bug in some Mikrotik R11e-2HPnD cards To: Denis Kalashnikov Cc: Felix Fietkau , linux-wireless@vger.kernel.org, Kalle Valo Content-Type: text/plain; charset="UTF-8" Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 13/01/2020, Denis Kalashnikov wrote: > I read value from the SREV register of AR9582 -- got 0x001c04ff. I > looked through the code of ath9k and found out that in this case the > revision is 4. So, since AR_SREV_REVISION_9580_10 is defined as 4, I > logically concluded that AR_SREV_9580_10 would do the job. But you > suspicions turned to be right. I tested AR9580 now and it has the same > value as AR9582 in the SREV register -- 0x001c04ff. PCI Subsystem ID > is zero on those Mikrotik cards, so it is not useful. Felix, guys, may > be somebody have any thoughts how we can distinguish AR9582? Or that a > chip has only 2 chains? May be values from other registers? > read MAC OUI any apply only to mikrotik ones?