Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3923440pxk; Tue, 29 Sep 2020 09:29:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyP/N+dmOJ4dVAiVa/mogukHAw1Ozm4nKnJg3lkCkszD79Ju8pKJO3ta8QTWytWLdE1c6t6 X-Received: by 2002:a50:ec12:: with SMTP id g18mr4102708edr.309.1601396948842; Tue, 29 Sep 2020 09:29:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601396948; cv=none; d=google.com; s=arc-20160816; b=huL6b45IQVoeqClQjq9IiGfRxf8+zneBP2ZBSF3C/B5yN5abWImDlD+1YKzAgvybd3 S30Df0FrGijcd7NWbLxvZVLuLyY6YhITSM2uA94HPg1uhzKNkhXmzgtK0qDPauNkwUPT FdxrPEWI4kgIYLPCnebN+w1ehb2OFS5sg6oxKjf/4xE8NpfNZVcqUeYXSLQr2kmF9JMZ hAxFn08xkimrMgTJfwmJ54L5vXfnCpfS1DpR+hT7CR3O5RlHZhUsx9NBkU5OpUR/w0HT 50El/hsnplr9gaiKVO+m+zMQPUC0i2GFqVkskdGUsZqbBdnRlpP+FKu4XEB0RLqOqgnW PtPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from:dkim-signature; bh=KMbWS4HeKhmuNHz6g+voXVj4x3iKYvyw1dmoLPy8WwM=; b=qONiNJEdLWBDYDYzknlU5YmLagPDfuwQJgBM4AHuc1FHgs9cgEfsVjO/PGph0btRVd VMm1vgRTsxenzHVt/InM8LPK5ClgN4/9X5BF/adEsKPg5dY3Ntl0e3U6Pd9EpOvpbIo8 AgvYDwanA2q+tqCXFcVmxCYi6KLm+CsWWoYQZZOJmoKakdY3j6zlnlMpdm9tnX/4KJp+ O91R4N84It+eMvDCaeptZ7HFl9uYYgR0s4w9x96Eako7BBpeGytECYNjo0XAK/CdxSKs +ulQV0Xesw0zjZfW5dGRapDyrj+T39jQxBUgEoCcboDu4Pp1FM7fvlTv0EHhDAZilTIz NtKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=ijqDVfeD; 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 d2si3260728eds.533.2020.09.29.09.28.43; Tue, 29 Sep 2020 09:29:08 -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=ijqDVfeD; 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 S1728366AbgI2QZx (ORCPT + 99 others); Tue, 29 Sep 2020 12:25:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728184AbgI2QZx (ORCPT ); Tue, 29 Sep 2020 12:25:53 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D92C0C061755 for ; Tue, 29 Sep 2020 09:25:52 -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 :To:From:Sender:Reply-To:Cc: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=KMbWS4HeKhmuNHz6g+voXVj4x3iKYvyw1dmoLPy8WwM=; b=ijqDVfeDc3DrU9CFdr2KawkNMn FJYM1OEGoO16OsVqo0gHk8OxMNjWHW0hpgozjSgRwSt1mbYFq5nMJImG7TpxuFAcsztwDbx0Ehu1q WBJ2mCa0N0uIuqjyFpbb3z00FxNDl9bPkOOQgdEkkKdZg5FRGThjaZLnGUQOCkgLxlLU=; Received: from p4ff134da.dip0.t-ipconnect.de ([79.241.52.218] helo=localhost.localdomain) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.89) (envelope-from ) id 1kNIRr-00028J-39 for linux-wireless@vger.kernel.org; Tue, 29 Sep 2020 18:25:51 +0200 From: Felix Fietkau To: linux-wireless@vger.kernel.org Subject: [PATCH 1/2] mt76: mt7915: fix DRR sta bss group index Date: Tue, 29 Sep 2020 18:25:49 +0200 Message-Id: <20200929162550.83724-1-nbd@nbd.name> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org The firmware/hardware supports only 16 entries. Trying to use more can lead to timeouts on some firmware versions Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt7915/mcu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c index ca198c4f5510..b50f5b058103 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c @@ -2307,7 +2307,7 @@ mt7915_mcu_add_group(struct mt7915_dev *dev, struct ieee80211_vif *vif, .action = cpu_to_le32(MT_STA_BSS_GROUP), .wlan_idx_lo = to_wcid_lo(msta->wcid.idx), .wlan_idx_hi = to_wcid_hi(msta->wcid.idx), - .val = cpu_to_le32(mvif->idx), + .val = cpu_to_le32(mvif->idx % 16), }; return __mt76_mcu_send_msg(&dev->mt76, MCU_EXT_CMD_SET_DRR_CTRL, -- 2.28.0