Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp435700pxj; Thu, 10 Jun 2021 04:35:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyG2U9Rh860r53PwL505ipp8UFNimjqw2h3UCJVfh7a5YUKDnMZLstinxqMXcigzIpU0d/P X-Received: by 2002:a17:906:b2d1:: with SMTP id cf17mr4080613ejb.225.1623324959261; Thu, 10 Jun 2021 04:35:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623324959; cv=none; d=google.com; s=arc-20160816; b=QPOzVtY/J7xSx3TnqhibqVQf5eU3oH2jqql3BHTWXWGQCe49ByY3tgI6YlxxuHfPMG ZH0WFhDmJLeE+F9iuc3zFlMG3b4A7a3gHYYiOXA68ycOg2Qci1KDEVm3EWGJSNslzRtI RG8AMwXa+Qu4Fy72JYxn3JgVFrVuGAPJFBTmNim3xjXHK+Q62VCNqrm3C1YfvcyGbw8A lZGd6kKIr/28uu2JCJvVii8NrgWalr4KBky/kbS8jGurz8AJnxgKy/SC5J7bMNEdc/Qt bt+ANRcyqPUCfD+Gzg35qRtG3fGNYXJUvfAuDm2V5PfxDSQgEcrPAO6KdfmCmJ0vF/mw ojWA== 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=+k6HY5+6UDNAZaIYq/+Mdtg00QEYet1EeDea4Upv58k=; b=DZfCmJgdU8NHleCHdZYItxPJT0sCziyO9TiZOMPgCbQllezyVcqWlfmbgxHOTCpRdJ p9B8RA+rsOTk2VnYrlQCEzw5HQPyB4zS+MjJmlyuFmExT2lms+wE7dP27RmhFhZ72hN4 2DO2dvSX+rA/1mQLxAuhqpSNQrcef5Mm3UylnZkIsmNRnaaoZF7F5R4YOggSqzvvgeCa YCP/es67tLsjnsPHxiwsBC6Xwz3uHFV13I5um5Zt88ed/OBq14m5rzS9/Yz0KJ1o9iGF 1KFR0bhm+wmZ/D+V9c0qjwwPomFSmg3Wnb+2+fz/Xbg+t9UXEsZh9zswzVUoWkK1khcl Uotw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=t6J1gkRL; 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 be13si2148874edb.104.2021.06.10.04.35.30; Thu, 10 Jun 2021 04:35:59 -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=t6J1gkRL; 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 S230254AbhFJLg1 (ORCPT + 99 others); Thu, 10 Jun 2021 07:36:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229895AbhFJLg0 (ORCPT ); Thu, 10 Jun 2021 07:36:26 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D45EC061574 for ; Thu, 10 Jun 2021 04:34:30 -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=+k6HY5+6UDNAZaIYq/+Mdtg00QEYet1EeDea4Upv58k=; b=t6J1gkRLGq8B/0gmD+W3cX0xG6 7wrGYLeL7arzOdUyb6OV/WMPeB29g9NqAoNjYq3O1F92zVpKBJRtcWzm/6kntOFsheLhAx78lDltC HowK4SO+ErED2FarWrQQe7dna3tzWqKjHg+Ql3rJ+8aDroDTakIs1VbG7SuYwzmF7oag=; Received: from p54ae9ff2.dip0.t-ipconnect.de ([84.174.159.242] helo=localhost.localdomain) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1lrIxA-00006w-NM for linux-wireless@vger.kernel.org; Thu, 10 Jun 2021 13:34:28 +0200 From: Felix Fietkau To: linux-wireless@vger.kernel.org Subject: [PATCH] mt76: mt7915: drop the use of repeater entries for station interfaces Date: Thu, 10 Jun 2021 13:34:26 +0200 Message-Id: <20210610113426.74767-1-nbd@nbd.name> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org There are firmware or hardware issues, which are currently causing tx hangs when attempting to use these interfaces Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt7915/main.c | 6 ------ drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/main.c b/drivers/net/wireless/mediatek/mt76/mt7915/main.c index 2485f65766e7..c25f8da590dd 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/main.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/main.c @@ -139,12 +139,6 @@ static int get_omac_idx(enum nl80211_iftype type, u64 mask) if (type != NL80211_IFTYPE_STATION) break; - /* next, try to find a free repeater entry for the sta */ - i = get_free_idx(mask >> REPEATER_BSSID_START, 0, - REPEATER_BSSID_MAX - REPEATER_BSSID_START); - if (i) - return i + 32 - 1; - i = get_free_idx(mask, EXT_BSSID_1, EXT_BSSID_MAX); if (i) return i - 1; diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h b/drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h index a4b32e0d64e9..b0cdd53098ef 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h +++ b/drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h @@ -9,7 +9,7 @@ #include "../mt76.h" #include "regs.h" -#define MT7915_MAX_INTERFACES 32 +#define MT7915_MAX_INTERFACES 19 #define MT7915_MAX_WMM_SETS 4 #define MT7915_WTBL_SIZE 288 #define MT7915_WTBL_RESERVED (MT7915_WTBL_SIZE - 1) -- 2.30.1