Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp591278ybl; Fri, 10 Jan 2020 03:39:41 -0800 (PST) X-Google-Smtp-Source: APXvYqwLOZ2kjhw2J3DUzIz86fNp+xMbk7tNnw64SpimFp+le8tBPGU6t5tMxU1xsbuKPv+ohlzV X-Received: by 2002:a9d:6758:: with SMTP id w24mr2346828otm.155.1578656381463; Fri, 10 Jan 2020 03:39:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578656381; cv=none; d=google.com; s=arc-20160816; b=G11qZK+sxCG5w1m1LyRPQ7gVSS0s5N091vf6z9hlViOEB3+46U5wD2dUrzkXT5vGQi wTouI76gJ28wNpUTkqU9Su0CmICJjPgnQODAuN/IEh9lKA5CiyoOpJJverk3/WjfEyEz 51r7xYhdZ817bakqwAkd9UVH2MC5cPzkiDIwNpans5YQWG7jLvrv9TP7bdxJLR3RDGC4 w6L59oubPmb/fLGkqL9Q/RiFkNxe+7+z8JR2s0v7mwivdaglq+waGPOVfWoQJuykESsE mlybkazWa8P2wAFEj63XkolNjuRKjOzK+9ATxAz/3oUksGzq+ZTCD1dPwwTx3rB0ARp8 WiFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=N5q315f9LjOiYAZl8Osbhhg/nIGipOca4U1i12aQxzg=; b=SriAmFf1de4As/zbzQp3H3Km3BTz336lZWf6+XihHV4yBDDc8rOGL1cZ6ri9slT7nS 4gOVZ0psmP9iOFFEpO917wPBToku41ZzaT90VQmMOybLUettb/aV6NplNKGncBiu/wa0 iVdJJnHkKscJBTcLNCPaQ4DWHa7T7Pje8lO8SxtPXPQIPEg6zTGuLum+/igPsKDdxRn3 bVDEA5yXZAEBazgBdKQDYRVKN+hXsekdLrg4nBJsijLFdlWC+xn9+gWgFf3L2qyfWAp4 VKwFci1C38OKdCfG2aaxcMzmo5NzShXbFZieK6gsuuJFdp9VAKoEZVZ5xL5vvepa2QTZ wYOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=j+dYtAD7; 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 t28si1142023otr.16.2020.01.10.03.39.15; Fri, 10 Jan 2020 03:39:41 -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=j+dYtAD7; 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 S1727710AbgAJLjL (ORCPT + 99 others); Fri, 10 Jan 2020 06:39:11 -0500 Received: from mail-ot1-f68.google.com ([209.85.210.68]:36913 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727457AbgAJLjK (ORCPT ); Fri, 10 Jan 2020 06:39:10 -0500 Received: by mail-ot1-f68.google.com with SMTP id k14so1644993otn.4 for ; Fri, 10 Jan 2020 03:39:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=N5q315f9LjOiYAZl8Osbhhg/nIGipOca4U1i12aQxzg=; b=j+dYtAD7VSmuHXSKuI074QT6Q74r/OEJBeXmrI/wL8hQxkIo67if/LXhfTEH5899sZ I5bglopMnHe+dU/0ZSEsg3PzbIEouzrePgkYSMX66SWenJcFeO+ACrMLSRFnqffm83Mz tyM1Emseujcpl6wzSqT9Ie097arY/q2G++tr7w/LT3ZYowfXkQ1xgpnhQ3ADHslfHSr+ Zmc3XjY8NYD9y3DQzIpyd+IJ0qPaBOBrsKWvxnH9ofGxtx4bO4Nr2f9vEq/FHYL0Zjtd C8Of7sIRWulJqQePqmMn5TE6cRg0M75niotcVidxZRbuiaC+mgF3+K/e03GjRx0DLLgr lZRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=N5q315f9LjOiYAZl8Osbhhg/nIGipOca4U1i12aQxzg=; b=iqoEHnELYzL022ZaHhT0byfZWRSYGJLXT6HFNlInQU1Heb/EJveZ3Yf1J/6k4DEqj1 kOE5SJjFHIjtioEvHHbHlHapDb6kvkR9yewdZKZnAuNObiCAnYLgBuybZj1o7VfRgvm/ TkB0YNaOaC+xGl3M1addXRIqpZLuO3F2wZqovm1nbrbNx5/fj1ae+Q+eVdpIg84kr3Yu onQ9YCpozb1L3C8dDd74YHObi0vfYybqCT710l/w9zBIJHcoRKrUkHtr0F5KQDTkLOZ+ gtk5UOl00rQ8Ue2ZATpptOhEO8wlpdLPnsvt0uCGC+JUlBFAxUOKCXLY8br8KhSAgo3m c35Q== X-Gm-Message-State: APjAAAVXJLq0LI9AAFrKQwcV3n5aLYGI3OChj8UGw1arRzAhdt0Ne5AX y8nd8U5nt+JKHgqpnwfVm4Jy4znuKIVX9XVQ+oe+zw== X-Received: by 2002:a05:6830:ce:: with SMTP id x14mr2100394oto.289.1578656350008; Fri, 10 Jan 2020 03:39:10 -0800 (PST) MIME-Version: 1.0 References: <87v9pjsom7.fsf@codeaurora.org> In-Reply-To: <87v9pjsom7.fsf@codeaurora.org> From: Denis Kalashnikov Date: Fri, 10 Jan 2020 14:37:23 +0300 Message-ID: Subject: Re: [PATCH 1/1] ath9k: fix firmware bug in some of Mikrotik R11e-2HPnD cards To: Kalle Valo Cc: linux-wireless@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org You are right, it is possible. I will fix my patch and resend. Thank you. =D0=BF=D1=82, 10 =D1=8F=D0=BD=D0=B2. 2020 =D0=B3. =D0=B2 11:27, Kalle Valo = : > > Denis Kalashnikov writes: > > > Some of the Mikrotik R11e-2HPnD cards have EEPROM where is > > flashed that a card has 3 chains, but actually all this cards > > have only 2. This leads ath9k to write periodically into the logs: > > 'ath: phy0: Unable to reset channel, reset status -5' and > > stations don't see that AP. > > > > Mikrotik R11e-2HPnD is based on AR9582 chip. > > > > Signed-off-by: Denis Kalashnikov > > --- > > drivers/net/wireless/ath/ath9k/ar9003_eeprom.c | 9 +++++++++ > > 1 file changed, 9 insertions(+) > > > > diff --git a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c > > b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c > > index b4885a700296..554a81400648 100644 > > --- a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c > > +++ b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c > > @@ -3373,6 +3373,15 @@ static int > > ar9300_eeprom_restore_internal(struct ath_hw *ah, > > cptr -=3D (COMP_HDR_LEN + osize + COMP_CKSUM_LEN); > > } > > > > + /** > > + * Fix firmware bug of some Mikrotik R11e-2HPnD cards (based on= AR9582) > > + * that claim that they have 3 chains, but actually have only 2= . > > + */ > > + if (AR_SREV_9580(ah)) { > > + eep =3D (struct ar9300_eeprom *)mptr; > > + eep->baseEepHeader.txrxMask &=3D 0x33; > > + } > > What about 9580 devices which really have 3 chains, doesn't this broke > those? Or is such setup impossible? > > -- > https://wireless.wiki.kernel.org/en/developers/documentation/submittingpa= tches