Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp220697rdh; Wed, 7 Feb 2024 02:52:20 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUx8r5Dxkn9kq/REmGr2Ylrle2nQanA0YwUR2agL4gNRHnMHSLh8RCPI49X+Vxagaf3P/L4XVpPz6isG87gZ1+worOImmKzHUxshkbpew== X-Google-Smtp-Source: AGHT+IE7PWdQVQitWoQ+22T+Td2pp+Wh8EH5h/5aUXsRgagM9PY73HhVGb4u991XThIt49lqOMXU X-Received: by 2002:a05:620a:4489:b0:785:6215:de81 with SMTP id x9-20020a05620a448900b007856215de81mr7426502qkp.0.1707303140732; Wed, 07 Feb 2024 02:52:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707303140; cv=pass; d=google.com; s=arc-20160816; b=pT7NOwrmm8kSbyTACv/9LCXFWCSKvUs0GCOEOQJenTOtAYSsPaFElvrfzfRStMv1TJ RhWi9FLJEfAzyUL12tSvAa+y9b1hRznHm3OAup/8bd/IeZffLTWAsy+JNwa4oFceb87/ eeWJBJi8rYnkhoNex6y41Bg8ebu+kWITonTrnjXe62XR+phOJ3BGoHNZbqzc5izK52A5 0ean7TTmxDFpX7yUFkYMAEVenazWe8gbyaLeAbXrVfT2BaxRrGOkZUMgK0nYScPxax1r w/83v6l5TekN7rgAj5yi5n9x396SbjcpNOhn3I+G9gq6Aq7rysroZTXZ6SJ/m/QZ8kwO MpnQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=xIhBdBuB4+Irj+sDFGwSgr9BNo29FSMxovC23RovWA0=; fh=WcMVcx9wGlzT5W2ZNuSWLxgCkTIAFbQyuqLYNASDjtM=; b=DPtysi+lJNIk42as51fvGl8hS7gaahPwBUVxsNWwy4QCUqPDwqzpzIUohhxbHsLJwk 0WRv0cBZzAQqOgHoFS7UXQvCjAxIvOhLtYcaBRWfs4JzhV3m0PvcOzYLqVBoeMc+4AAX ahhDY/qERxNJfXiFwMc856Wj4RiJ4Sj5zeXye5dVVTbw+Qu7oM4URrN5j1yPGIgAxxNX c3imiFgBjFBpBUu9CL/Uehko/wN07QmUNOBCrqr+FyKw/B96V4y9F0outzvEF1lkSOCJ 97ooMCtQY0ZDBaMjxFiwZKu6Q3WnphJkjgteNOUP3wKbsXglcE57ZSWPZVw47WYkkwkZ vw1Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b="Uv0/hed8"; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-3281-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3281-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net X-Forwarded-Encrypted: i=2; AJvYcCWLWKllinBuflo0ccL0jSXJ8fcRUSTquLn3BEG2/U7+wdXV+EmtKyxwzrgDDTw2647tucTjWB+kwJ0NXnoOJzr2L0xyrlDsm14uov4B1w== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id h17-20020a05620a13f100b00783da601714si803720qkl.574.2024.02.07.02.52.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 02:52:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3281-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=@sipsolutions.net header.s=mail header.b="Uv0/hed8"; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-3281-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3281-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net 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 653191C24350 for ; Wed, 7 Feb 2024 10:52:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F18F8179BE; Wed, 7 Feb 2024 10:52:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="Uv0/hed8" X-Original-To: linux-wireless@vger.kernel.org Received: from sipsolutions.net (s3.sipsolutions.net [168.119.38.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 55E4917582; Wed, 7 Feb 2024 10:52:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=168.119.38.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707303135; cv=none; b=O5YnpmuWjJEpsx6wwioXi0ZVG21h1A0TazBTag7A4WVeyutyr1NzDPLVfiK9clTQ9nVeuPC5zklhWddY8t4Kxdh7q49BtpAJ1oictvOuvnk6GhLVf0ot5RgHbjfGHjRhCk7RTXvaKDAP9r/+Aspoum1q7x6SGHkW8zrQGBBzHJk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707303135; c=relaxed/simple; bh=HTW77sv4gHQlJ35myLHT4fY0jEm6BXDhen5KdxeYT5A=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=GZy+qkQ/j0qrc/siPrUCQfp9fMjpeJ9HNPJWW+5fmecsWUHK5EIN8ACTRJDYm/OoBRTTZIDX3xC1xT3UN+A7mA/RGwvGw9tT78Fxc8h72BjscNWfnoFGfWLs/YiSel/3I16lIwtMjSgOzMQ3SMuHz3AsVb9ieeS81wAKpPlRr+c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net; spf=pass smtp.mailfrom=sipsolutions.net; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b=Uv0/hed8; arc=none smtp.client-ip=168.119.38.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sipsolutions.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=xIhBdBuB4+Irj+sDFGwSgr9BNo29FSMxovC23RovWA0=; t=1707303133; x=1708512733; b=Uv0/hed8jGA9DYZ0SjjF13vL/sjeJKME3LKjd8JMy8dAUGX EF2PIbUTmsXdC1R0KKqIMT6p5DymUFD/n7grIIiMjLnqW4qhhmb2n7HroPxrLRB7EZbVGITQYWYQD IMS+OoHEY7ycfi8FtmnY8fCoCBdHicIxxPA8ONzvxq1cu31OkmrRCbc6Uw9Zwi8crw8enZx7R2CQ6 gNurO1O+kdVaS+gUm4SnrwCsyvU/Nl/Wbmk+2iA0GLXPcqLAm7jImnZZ2v24WrKrbzDeviNr3+528 fPnbBgQQeCoc72ZlsyoCC6LibyKkKSgRdGYT7JMy2kDQkPXKoDSMKlPcz7N3J2eQ==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1rXfXE-0000000FsHZ-0NYz; Wed, 07 Feb 2024 11:52:08 +0100 Message-ID: Subject: Re: [PATCH] wifi: mt76: inititalize sband.band to correct value From: Johannes Berg To: Bert Karwatzki , Lorenzo Bianconi , Felix Fietkau , Ryder Lee Cc: linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org Date: Wed, 07 Feb 2024 11:52:07 +0100 In-Reply-To: <20240207072253.4189-1-spasswolf@web.de> References: <20240207072253.4189-1-spasswolf@web.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.3 (3.50.3-1.fc39) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-malware-bazaar: not-scanned On Wed, 2024-02-07 at 08:22 +0100, Bert Karwatzki wrote: > Set phy->sband_{2,5,6}g.sband.band to the correct enum value, otherwise > the ieee80211_register_hw() will fail to register the device. So turns out that technically, it wasn't needed before because cfg80211 *will* set sband->band, but *mac80211* now requires it to have been set before ... We could do a trivial fix in mac80211 as well: --- a/net/mac80211/main.c +++ b/net/mac80211/main.c @@ -1124,7 +1124,7 @@ int ieee80211_register_hw(struct ieee80211_hw *hw) supp_he =3D supp_he || iftd->he_cap.has_he; supp_eht =3D supp_eht || iftd->eht_cap.has_eht; =20 - if (sband->band =3D=3D NL80211_BAND_2GHZ) + if (band =3D=3D NL80211_BAND_2GHZ) he_40_mhz_cap =3D IEEE80211_HE_PHY_CAP0_CHANNEL_WIDTH_SET_40MHZ_IN_2G; else but seems like no other driver even likely needed this, and it's probably less reliable in the long term? Or do both? johannes