Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp336974pxa; Wed, 12 Aug 2020 03:24:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOpw0g4OSxVjAsj09nIprinGdYKkCg/0OdfM5hrI6qKsZtSixNIlzkWq0Gc0PV4cuzFxtn X-Received: by 2002:a17:906:2b8a:: with SMTP id m10mr16150055ejg.444.1597227862940; Wed, 12 Aug 2020 03:24:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597227862; cv=none; d=google.com; s=arc-20160816; b=vfnbvQ0vZI2T++4vVxDQk4gZmaYzNkBg777KGXFY+ZaxXnBg1IulXdgRFtQqQEigzA SjvSuz8aF2Am/Z2HuYyI75BLhVso9OW7VMysZsT3K34ppNE4H3LXF7/iVtX13Xp5Qvsx PThBLCQ/szL3CFnvogf5GGOpyBl1aw2njkxyfGXbD8A1qDSMn4o91z0j5P3pJK5S0OVZ 8D2Qanq2Q6eu1iSTWU3SRPHb2FX0/G4LjakRY17BW3LbKmSEkrZaFaQeT48JYspqBhhx sCA9ycf65iKudKBl0/R9VRhEBNoo663HncgbqBUgF/cxmNs7ARWLxIVZ6OyhfelC5wl9 GxBA== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=tV4xZ1tJ0Siz5lmRXS9nveaD/E2Ff1jKg8KIw6QyBc0=; b=GYPkwPIfjUi188IKn/mpFwlPcLLm5YIJs+mVt/c/8rm5X0YPMS1DEwMKVnYFFT3w5t jzziQVMRwUUkICJEhedT0Lx6b0YZ5xx4dcF2nYjvajIizK3Wt8h1DQUO7YjikFdfJsBx eBWDGCqSGtqt4BF2LitbfN27TIU1G+13zubJ2eXV9OOSIi+0ovk/oRflT5BeKB2CkpFb oNDdIWtwK1a+FedkbXjbiiKjAQlrQ+xbnLO9dssp1Wd6IfRIeLjJEX/2kZXSKlF7yxf5 QElU0emmFoCGGfphx+B6oGS3QGhymHrZps2KtrdwliLaXAvYO5sKSASkjAfIQlQjPsZv Zc1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b="Dn/4IMgw"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lk24si880852ejb.593.2020.08.12.03.23.45; Wed, 12 Aug 2020 03:24:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b="Dn/4IMgw"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727000AbgHLKXi (ORCPT + 99 others); Wed, 12 Aug 2020 06:23:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726829AbgHLKXi (ORCPT ); Wed, 12 Aug 2020 06:23:38 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE8D6C06174A for ; Wed, 12 Aug 2020 03:23:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject :Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=tV4xZ1tJ0Siz5lmRXS9nveaD/E2Ff1jKg8KIw6QyBc0=; b=Dn/4IMgwDVZg+vv6pMZ4T+PvUr U4cZb0LXbX7WtZV46BwoZtrcpj0e/jESNqrNHYZ7dlLRQuh5JWlGSlT5vtIoehNG0dVbgxMRAHv9Y oH+X9wiCE15Z0w/jGa7NCgHNTMRtTm4/wPzAO58goVIDoKLQY0LxDfQpDqlRfgUoPkgw=; Received: from p54ae996c.dip0.t-ipconnect.de ([84.174.153.108] helo=localhost.localdomain) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.89) (envelope-from ) id 1k5nuv-0002AS-Fo; Wed, 12 Aug 2020 12:23:33 +0200 From: Felix Fietkau To: linux-wireless@vger.kernel.org Cc: kvalo@codeaurora.org Subject: [PATCH 5.9] mt76: mt7615: use v1 MCU API on MT7615 to fix issues with adding/removing stations Date: Wed, 12 Aug 2020 12:23:32 +0200 Message-Id: <20200812102332.11812-1-nbd@nbd.name> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org The implementation of embedding WTBL update inside the STA_REC update is buggy on the MT7615 v2 firmware. This leads to connection issues after a station has connected and disconnected again. Switch to the v1 MCU API ops, since they have received much more testing and should be more stable. On MT7622 and later, the v2 API is more actively used, so we should keep using it as well. Fixes: 6849e29ed92e ("mt76: mt7615: add starec operating flow for firmware v2") Cc: stable@vger.kernel.org Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt7615/mcu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c index 6e869b8c5e26..59deca44d977 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c @@ -2007,7 +2007,8 @@ static int mt7615_load_n9(struct mt7615_dev *dev, const char *name) sizeof(dev->mt76.hw->wiphy->fw_version), "%.10s-%.15s", hdr->fw_ver, hdr->build_date); - if (!strncmp(hdr->fw_ver, "2.0", sizeof(hdr->fw_ver))) { + if (!is_mt7615(&dev->mt76) && + !strncmp(hdr->fw_ver, "2.0", sizeof(hdr->fw_ver))) { dev->fw_ver = MT7615_FIRMWARE_V2; dev->mcu_ops = &sta_update_ops; } else { -- 2.28.0