Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp11227725rwd; Thu, 22 Jun 2023 10:17:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ47Z/P7G0R1lwRPjpwYF1clRXVJssS5dRGZV+LakkPda58XrqFjmgazruuGfzSqMdXmuHxN X-Received: by 2002:a05:6a00:198f:b0:657:67be:d1c5 with SMTP id d15-20020a056a00198f00b0065767bed1c5mr15547737pfl.27.1687454230040; Thu, 22 Jun 2023 10:17:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687454230; cv=none; d=google.com; s=arc-20160816; b=f6rfHEcWDLLlwVfjl0JEPACfAMQLeP92FDDvBDbamV2aNu10aws7vziZYVOmVtjAXG 3TBOgJDFAp8gZEFD5UMbXhkdCRJGLDyyW1s1Oxkm0dv7zaFMFlRvuwUYyVASbXFHwyn0 Z6IhV7tXIvw0Apc+miqeR4dXyIsQEkRRlJAmFoai2M1ckNl+p0TSiBhcW2cGU0bP2Rv1 17exsdEtblpc534Um6DNh7XxxRGMs5YyWmQGyms8BqAgEtKWu0pYjX27KI03bZlN75Aw 0MqZ/WPw7/LADxeBYhxhu6hpnrprsEDhbyqLOHfamosaqOOHEVjOc2XV9pGLPTqX7EwV yAgg== 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:cc:to:from:dkim-signature; bh=6lPPTXKNuK0A3ipUtZV+OfIVeN9gMtbJflb30agGopI=; b=PyEJ4YutO2H85PF38/I0yy0WSqAO6S6O0kGDskGJA38+LUF8FiBKRMMLR1sHq4bkFA pjRI+rgak9ZQmFbBokAG5fYBe+KoMnfrY5Z6XbtOQbxecUZjIKCNo7uLp+9Tfp22FOkV K8bwxxe4RmvQ3pMyuQ9F+cL9kjrYHFyvTFyMEkxRinYfC6cYqKLwnmHyXbk15uXLX4vR dQazZ0lMe2Ntmg8cR9gdVMIFn/83vF/bCmgQ7P0e3Z03kg+1/hfE5xCPX7M+TNOVbU/5 c0H/UVDxwRNRUZV/Vp97PjKIDw1e9yLigN0uX2U0N4kdWE/NYvIno7Ta8iErlOxd88ys AvmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=jDCF8Xu9; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nbd.name Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a13-20020aa795ad000000b00647d6c7075asi4842142pfk.109.2023.06.22.10.17.00; Thu, 22 Jun 2023 10:17:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=jDCF8Xu9; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nbd.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229973AbjFVQ7c (ORCPT + 59 others); Thu, 22 Jun 2023 12:59:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229830AbjFVQ7b (ORCPT ); Thu, 22 Jun 2023 12:59:31 -0400 Received: from nbd.name (nbd.name [46.4.11.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7D7510D2 for ; Thu, 22 Jun 2023 09:59:29 -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=6lPPTXKNuK0A3ipUtZV+OfIVeN9gMtbJflb30agGopI=; b=jDCF8Xu9u8VuMBv0edsFfpwCrQ 9bkz3HdSHpwqKT/pGdr7CWlxqANVPQEesCN9wd5z9+vg07znjvV7oSb4O1cfwiemMTZiQz2IFPhCl HRurfHeKgyGm8tgkIvsapA71B2kWMsUl1FCzsBgmFOCXCEr3Yt7yON8ywszDcjl64s4E=; Received: from p4ff133b9.dip0.t-ipconnect.de ([79.241.51.185] helo=Maecks.lan) by ds12 with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 (Exim 4.94.2) (envelope-from ) id 1qCNeZ-008w5m-NX; Thu, 22 Jun 2023 18:59:27 +0200 From: Felix Fietkau To: linux-wireless@vger.kernel.org Cc: johannes@sipsolutions.net Subject: [PATCH v2] mac80211: fix sband iftype data lookup for AP_VLAN Date: Thu, 22 Jun 2023 18:59:19 +0200 Message-ID: <20230622165919.46841-1-nbd@nbd.name> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org AP_VLAN interfaces are virtual, so doesn't really exist as a type for capabilities. When passed in as a type, AP is the one that's really intended. Fixes: c4cbaf7973a7 ("cfg80211: Add support for HE") Signed-off-by: Felix Fietkau --- include/net/cfg80211.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 7c7d03aa9d06..d6fa7c8767ad 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -562,6 +562,9 @@ ieee80211_get_sband_iftype_data(const struct ieee80211_supported_band *sband, if (WARN_ON(iftype >= NL80211_IFTYPE_MAX)) return NULL; + if (iftype == NL80211_IFTYPE_AP_VLAN) + iftype = NL80211_IFTYPE_AP; + for (i = 0; i < sband->n_iftype_data; i++) { const struct ieee80211_sband_iftype_data *data = &sband->iftype_data[i]; -- 2.41.0