Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp11186876rwd; Thu, 22 Jun 2023 09:46:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6/IMC5Ho9e8zf7dUi8qV553bNjbw0nmxUZgI38YsGbabdtiHWhWHQfWQ10KAijNSn+5Nzz X-Received: by 2002:a05:6a00:13a0:b0:668:9f95:b518 with SMTP id t32-20020a056a0013a000b006689f95b518mr12244004pfg.9.1687452415793; Thu, 22 Jun 2023 09:46:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687452415; cv=none; d=google.com; s=arc-20160816; b=ikLf1oOWvY/+pcc/HwcngZb8o+z9oQnL736f2TTz9aFlWEA4vUP5DfXGe13ZKQrcDv FUTlUeXjnV8mQpN61I8G6/50xCUPVMA1xUvPlDDYtlcAmZXfihMQTfMCQBDwF9Q4gzp2 DxBMrqtjZ5ki+3uGrlQ3JfSuc/f2ZZUzZqQmvAECharNQqcsTqn3VejTdGsJZfybxsf7 fbSVFU/MUAvp/u2Sx9pLAjbDSPLaUIkwInTM8HuFweV4z0HEh2bpOqy5O8nKiBDUz0bM cLKN4D0djXN7y9kz9DH8ITfdl/AIQ2cGH8gL/yUKoXjIEP7iTTvXoFM0binek1d4L3FK 0pFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=afW1+tBp0pgsziisUIorxJrESavgT5MqBiFP6TKxpVE=; b=a+eqLMuK+C46+FxHp4p/GQLF7D9H6oC6nXUEA8YGwSg0yg6QkkI+F8i5BSlItd/V67 ErmOy9RHFBxmamcpcrEhP64vcBBG23fbwF8n/5WcmA/uDy8i06W/gb/vCQDg3Jqdw4XA qPspUBfgYMPW7g45mUPmLLFxgWtT/XDfGn7zcbe/hXfSJkb1HUd1e1G8XqxDe+/eIHfB oWCMeBASL1yMVJYRwZWJPZqHZKXpOQIYe7xRneukaNZ98UHa2dk0SCa6rXl9++z3/G91 QCgsU1HnQVFHx2DrscG3MIDyBjJSKJZpC52rvse4RAZV2CT4AyxwSnjJahfmP5NptlQq kq1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=mtmltRK3; 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 n29-20020a638f1d000000b00551a32c698dsi6583817pgd.837.2023.06.22.09.46.44; Thu, 22 Jun 2023 09:46:55 -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=mtmltRK3; 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 S230467AbjFVQZX (ORCPT + 59 others); Thu, 22 Jun 2023 12:25:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230242AbjFVQZW (ORCPT ); Thu, 22 Jun 2023 12:25:22 -0400 Received: from nbd.name (nbd.name [46.4.11.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A91A11FC1 for ; Thu, 22 Jun 2023 09:25:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:Subject:From :References:To:MIME-Version:Date:Message-ID:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=afW1+tBp0pgsziisUIorxJrESavgT5MqBiFP6TKxpVE=; b=mtmltRK3OJiMCOKg24SvVeMKXX 2hs42WNegXRpgXQ5vIIwstGKk8sxeU6OY9mna63B3vOj8nEO1y/y1o6NzY1q6wtHiqlT3mZl+40DP lDLffy7b/lVLkdwtd7CsOZEmJu/RzWe1UiMMd/92pAbSvZXLCR7p4h01a5l4nbngKYno=; Received: from p4ff133b9.dip0.t-ipconnect.de ([79.241.51.185] helo=nf.local) by ds12 with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qCN7X-008uxg-SD; Thu, 22 Jun 2023 18:25:19 +0200 Message-ID: <2815ff55-5b5d-1412-5694-7692337bc473@nbd.name> Date: Thu, 22 Jun 2023 18:25:18 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Content-Language: en-US To: Johannes Berg , linux-wireless@vger.kernel.org References: <20230622160501.40666-1-nbd@nbd.name> From: Felix Fietkau Subject: Re: [PATCH] cfg80211: fix sband iftype data lookup for AP_VLAN In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 On 22.06.23 18:07, Johannes Berg wrote: > On Thu, 2023-06-22 at 18:05 +0200, Felix Fietkau wrote: >> Since AP_VLAN interfaces are not pushed to the driver, >> > That's a mac80211 thing though. > >> the driver should not >> be expected to register iftype data for them. >> Map them to the regular AP iftype on lookup. > > And this is in cfg80211 - not sure that seems right? > > OTOH I'd expect no callers with VLAN here, it doesn't really make sense > since they're not a standalone mode that actually has HE/EHT, but still, > seems odd this way? > > What's actually calling it? I'm guessing somewhere in mac80211? Yes, I guess only mac80211 is affected. I put in the cfg80211 prefix because that's what the header file belongs to. I made the patch in response to this: https://patchwork.kernel.org/project/linux-wireless/patch/20230605152141.17434-4-shayne.chen@mediatek.com/ I found that there are several calls to ieee80211_get_he_iftype_cap and ieee80211_get_eht_iftype_cap, which could be affected by this issue. I thought dealing with this in a single place would be better than playing whac-a-mole by fixing it at the call sites. - Felix