Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp147470lqt; Mon, 18 Mar 2024 04:23:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWScpeg2WeIw9Sw5xY4FlKCWSOBRPgfuqxkDHZEEHDHvp7laXZVjSvxlgmGYHz3QE/D/GaOrnyVjwA4E2lSnRHaqmbxQRNP6kVLSyamGQ== X-Google-Smtp-Source: AGHT+IGJD/fYjGsza11bo1HkgwtARGeVynrhgdAPgPW9hAeA+OMimEjtq2Lq2syIIIhwiAnoGWs9 X-Received: by 2002:a0c:f10a:0:b0:690:d881:3b40 with SMTP id i10-20020a0cf10a000000b00690d8813b40mr13193819qvl.11.1710761020820; Mon, 18 Mar 2024 04:23:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710761020; cv=pass; d=google.com; s=arc-20160816; b=cRf1SIKpgwpCUIXh1GDUs8wD5j2/TvL+6ybQWdwFI/MlZ5mc0e22AdFPZQB5245ZsY jP3JK6SBKkrJnTk01IIaZjbdpHW5qh/YdqtpGEbvRZk3k2GnxPCJkjp7lE8pFpvmihAs eH/PlFOXpt2B/36Po9GjmLOy4QdGoNwF2hoG1yvFK/oxLktjvaHjQiRPmDFe4lWxaN1j eM0pWCHKff8NLOBtR2kBwLUiK9OOey+C5jfPlwAlhPa8GnzGgQ39DxQhTkAAeJGcieWy g93u0dtoUU3DfbIQohy03VQDOr+XbL9aUjlWOdCfB8JM0IxcGc6mAOlNDlYQYg6bxwRW JShA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=MPI/UsZ7xO2R+jvbfm0djmgWZ2X1nvpv/p/DeAJdrwI=; fh=QAHJQh4xGLyoIWQmukpgcsXBWCzQDjxe1fdQQt03Dsg=; b=0ipUQyfvd825q3EvgBBbRb7eUc25V7sZH4rUiZF+CMsdytXILVFq+Goy65P1MMOkUU XE94x14xaJpcsk3ZywH8De12EeSoBuQXOoCxKbzU7W60r+VNerfrZ2ywh/HKqgYXLZuB GkfUgnQbCuAMnlOFnJU605MT647aDl89FNOEfWvNaWA513Io8z1UmJRyUX3Hp+TGU1cF MyQuX8Y0x1UbgG1xL4xVCY7mmZ0iNVLfNLO/eS4IKpz2ekzAd9H8wPwP5OVMaLNt/67d MCKUIec6JIMlPxj8PYgkqU2rWxtTI9YTvnipk/kkd1D7hs7BobbNtHwVOd7NLiteLMUH AxKg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BtsCqYpG; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-wireless+bounces-4836-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4836-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id p7-20020a05621421e700b0069613de99b5si2479242qvj.11.2024.03.18.04.23.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 04:23:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4836-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BtsCqYpG; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-wireless+bounces-4836-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4836-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7718C1C21245 for ; Mon, 18 Mar 2024 11:23:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7D60B2D043; Mon, 18 Mar 2024 11:23:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BtsCqYpG" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7AA7B2D7B8 for ; Mon, 18 Mar 2024 11:23:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710760988; cv=none; b=FJ0aSOYmcWrGmjV7Lpw3un9agdGuNwXgm5sIMqJxj5FP99YUuHt4UBGSbBImYtJwtIdyWcBHMSOeSEi2YDY1UdvgxuvvhJQLbd2q0brNWpN00XmT0xAqjW8Uvy0qPIBb6K7IvynXZTpkXa5+UQQeOZLFa31qI4HOdyUyjh0+pug= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710760988; c=relaxed/simple; bh=EzI3bstGT7kjdnXFj7oEJPmOPn0ZxQCZrqM2oP0Skv4=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=FpDmyA/A0lyQRjkb33Nb9mOMNza4jj48EgbwtSkG2Ml75112FG1OsT1Cxt7eRI6NKIq3evZmFFahXuPDWk3H5yBj7uoxAf9ADPFlEhcfDIYNFVMXtGyoTSk6lWBXCqj+OXg7QxgfhD7n/CGOPOvZWUOu2acpBMebmAjcrm/pPzg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=BtsCqYpG; arc=none smtp.client-ip=209.85.218.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a45f257b81fso545000466b.0 for ; Mon, 18 Mar 2024 04:23:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710760985; x=1711365785; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=MPI/UsZ7xO2R+jvbfm0djmgWZ2X1nvpv/p/DeAJdrwI=; b=BtsCqYpGNXug2MUwiTV0r0fxC1pCpIZMwxm/qCuBBwzApuFC5CCpKpVdcF7eLgmQTI oWMkBZoR7GAcHbhDeZosiQxrsS+YMc1e0PJuhk1bKft8jkkOs4zqgafvyGs2e/HSmcvZ ErgpX2/hwYqeaxSWoU+fs6iZb3srQIyT31Mliv6GibJpWqff7FQ83en/GvTPiJs1Bdhh OXMMtS908PbkB0Hb6aaulrs7m2aUleydhh80ut3eK5+RzUqAE6az5/jE26LtO/M8EcmB 73PgBkM0suJb819w6k8FbGPe2es0hfYCzAP5FdA6msrkipH6qgnfYCK0jihnzJwfjRjC Euqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710760985; x=1711365785; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MPI/UsZ7xO2R+jvbfm0djmgWZ2X1nvpv/p/DeAJdrwI=; b=gCLyhhtNs5ex5TZDiSuBI6x6pG0w4i5cNVke62NfWMuFfHQErSzDcvJHfRUWRMq2dA vSUVXhDcgWcD/WYcKxWTqX3IDNaJx0ZybJ10Qy8rgR+myIIR1qJrPnuiMzFEUvOV/7Ur DJ05tmVA9bwqXo9jhdQzML+/V1aH1DLkSndnYI4JrzgBqeBfcm5FOfldri1Z3NYj9C6E P0ERmw0IO9EyCEbX5UU5jyPEvb7bi6ANzoJHqEsFpR55pRzWbBiBJe8BSGoWCQ+z5mzR 3WeCdwc0qVyAaB365CfNilOQb60xbRrffezUNgI6NHiDNW+h+ZazGoM1whOI5jWPOYxH 4K7Q== X-Gm-Message-State: AOJu0Ywme95uUR0amznipVtxjx3njuwTMR6aOzrfEWgXs3ib9dzk6mSO M2yQ18VM/v+P2FHWYCJ5mVUMPP7oLWuwBOmoAgy148o7A7Q9kP8FOc/qxv3pFEJ6XF/e/D0Z5cj beESJfbkxECDweSUW8PA6Y5SGNUzjcXIjtJw= X-Received: by 2002:a17:906:6855:b0:a46:166d:d0d8 with SMTP id a21-20020a170906685500b00a46166dd0d8mr6218490ejs.64.1710760984527; Mon, 18 Mar 2024 04:23:04 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <52d4ad82257001925849a34aa9fd717046208e26.camel@sipsolutions.net> In-Reply-To: <52d4ad82257001925849a34aa9fd717046208e26.camel@sipsolutions.net> From: Janusz Dziedzic Date: Mon, 18 Mar 2024 12:22:53 +0100 Message-ID: Subject: Re: BE200 - 6.5 backports - disabled EHT issue To: Johannes Berg Cc: linux-wireless Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable pon., 18 mar 2024 o 10:58 Johannes Berg napisa= =C5=82(a): > > On Sun, 2024-03-17 at 10:53 +0100, Janusz Dziedzic wrote: > > pt., 15 mar 2024 o 19:04 Johannes Berg napi= sa=C5=82(a): > > > > > > > > > > > I see this one do this: > > > > if (!ieee80211_verify_sta_eht_mcs_support(sdata, sband, eht_oper)) > > > > *conn_flags |=3D IEEE80211_CONN_DISABLE_EHT; > > > > > > > > Testing on openwrt and using backports. > > > > Is there some patch I can easy cherry-pick to fix it? > > > > So far just disable ieee80211_verify_sta_eht_mcs_support() check an= d > > > > BE200 works in EHT mode correctly. > > > > > > Then either the code there or the AP is broken? > > > > > > That function checks that the client supports the MCSes that the AP > > > requires. If it lets you connect without them, then it's broken. If t= he > > > checks there are wrong, the code is broken :) > > > > > > I guess you can capture the assoc response frame and we can check > > > manually. > > Added such dbg: > > > > printk(KERN_ERR "%d vs %d, %d vs %d\n", > > req_rx_nss, have_rx_nss, > > req_tx_nss, have_tx_nss); > > if (req_rx_nss > have_rx_nss || > > req_tx_nss > have_tx_nss) > > return false; > > > > [ 70.243183] ieee80211_verify_sta_eht_mcs_support nss 4 - > > (ARRAY_SIZE(req->rx_tx_max_nss)) > > [ 70.248336] 4 vs 2, 4 vs 2 > > [ 70.251035] disable EHT due to mcs > > [ 70.260724] wlan1: send auth to .... > > > > AP have 4 NSS. > > Which doesn't just mean it _has_ 4 NSS though, it also means it > _clients_ to have 4 NSS, if I'm reading the code correctly? So we > correctly don't connect, and the AP incorrectly lets us connect if you > hack out the check. > > Arguably the AP should not even include 4 NSS as the minimum > requirement, but of course it can, if it really wants pretty much no > client to connect (in EHT) :-) > > Unless I'm misreading the code, but it looks pretty straight-forward. > Check what wireshark says about the EHT operation element? > Basic EHT-MCS And Nss Set: 0x44444444 Seems this is AP issue, will report it. Thanks for help. BR Janusz