Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp138608rdh; Tue, 6 Feb 2024 23:23:24 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVra7KH+MMlFqLHzAcvcWbDiboLD+RkHDEsXKVLvjydaSSRgtKnM/BI6+am6DwHBFNjcKg0k5ATcmhPndMGAJO4IszYO96LTKxhPgV3kw== X-Google-Smtp-Source: AGHT+IHUCde07DIe0+gN7RWeL5nPeSqyLZXZkOLWJRqQ2Ywh0sOEpHFiM+U/JYOkBokcNAQyZPoL X-Received: by 2002:a25:ab50:0:b0:dc6:f90f:e376 with SMTP id u74-20020a25ab50000000b00dc6f90fe376mr3658651ybi.45.1707290603915; Tue, 06 Feb 2024 23:23:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707290603; cv=pass; d=google.com; s=arc-20160816; b=NRMYiamQmAZDFt2HUgrclLqE8kVIPUGb2z1Z5ufnD2Lhe4fv/1rWEBtdiEgsDfrear GUQjv2Xxb1M0x5LyMkEKMPBntVEdXUyCc4lRN3PYrr6ELGpiu1N0uPfQi9NSu6CNhwaH PEyxxznc6/SMGRSc/wq+x21DjhmNLAo483UFJjTIRLlfSpQux11Lg9UJT7i4NxhGWPdJ ar1Yky2TUmC1yS16momBwd8lsVZbz1uy/eVuxu0c57jBSI+eq9Gx6vIQeVMikG3R34I7 SLQxXiSnRCofaAZrs89XNIVH7SWVggzs8Ntc5i+IhukISMwwaNC76Hn7DmfZ8AcppD9l 3rFw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=q/LFLGhZbmd867wFfdnCA0qEx2uLm36uAq+MHuj0dik=; fh=kiFUa5swToZgy8/sdnjkSjkRflheBX6xI2uvkN0qlRs=; b=DpJmmRwgB1U0WlN+iGDSe496E4lRGPKwXixds4ja27TEQflXJbE6z1SM8NqHKKCQUu Iu6HyzqqxvQlb/jDJTeajLJLQeDTryaMd8/38Z7fhfgUke1421KIrKxb6y9plfiVX3Vd IRXK94z9wbnM0cRLrTXGC7OD4XTPgUuccQoQmnYXvXgBU/xw7MT5Nn1RMvMlWzkvZGYj rc9Svi+Xq0HKYSGz1MqQutD+XvFLrhZoA1CDkABNnhYW7QPDsTh0PCcqIfyoxg3bjJoO ruix3/qjZ1BvODrRpXJjKlRpJCWesXpUeZhtixrcvXvgrdQAlljNsdSsjHu0h+ZP/Dfn U18A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@web.de header.s=s29768273 header.b=HUcNMVtC; arc=pass (i=1 spf=pass spfdomain=web.de dkim=pass dkdomain=web.de dmarc=pass fromdomain=web.de); spf=pass (google.com: domain of linux-wireless+bounces-3274-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3274-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=web.de X-Forwarded-Encrypted: i=2; AJvYcCUFVaUUNiUyWQXQalNTSwyd7Hf3KmbbxY+9oplzf/nHEyoXUt68ErlZeBwb0lS4XHFyAZrwEGDJDJCM3wUidnaapNdfmackQlgIsigyeg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id z19-20020aa78893000000b006e04ec2eeefsi994306pfe.260.2024.02.06.23.23.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 23:23:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3274-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@web.de header.s=s29768273 header.b=HUcNMVtC; arc=pass (i=1 spf=pass spfdomain=web.de dkim=pass dkdomain=web.de dmarc=pass fromdomain=web.de); spf=pass (google.com: domain of linux-wireless+bounces-3274-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3274-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=web.de 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 169E4287ECA for ; Wed, 7 Feb 2024 07:23:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 846B9200AC; Wed, 7 Feb 2024 07:23:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=web.de header.i=spasswolf@web.de header.b="HUcNMVtC" X-Original-To: linux-wireless@vger.kernel.org Received: from mout.web.de (mout.web.de [212.227.17.11]) (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 1CC9A200A4; Wed, 7 Feb 2024 07:23:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.17.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707290599; cv=none; b=gEtts5N/BdfhD5+J9QhHxDOSeF4Kqiw4hGuuucnFQhYFAvurbh/ZXUVKxuTE68Qxa5IuOK/lK11AwGtpumXbk+qm4N7fHBwg4w7cfsZudxLtrdYQp7Dox+pmOxFVDHN/UT55+s06pO4v2r8qsOnHv+xI2cWircLsBz8vaMcQRYU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707290599; c=relaxed/simple; bh=J2jt/2fYwNXM5ff+lqyZZsvvteRbinJC2NNlRHVyYQA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=P/eR4X2g64zDBPBlyYJpLmZgiDdgKuOIKec2r0KFVvLBlcOUvkILGw/kBAp2a50pTchWN+L5OXMopVvD9AnO6DTQ/aO6kewmoZEj+Jy+hTNKI7eEpjDUKZfzYKjCDDS2Xbf58A8ipTns7TSvZTNadDoHbooLGoaFBE9R+jMQ3KQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=web.de; spf=pass smtp.mailfrom=web.de; dkim=pass (2048-bit key) header.d=web.de header.i=spasswolf@web.de header.b=HUcNMVtC; arc=none smtp.client-ip=212.227.17.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=web.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1707290579; x=1707895379; i=spasswolf@web.de; bh=J2jt/2fYwNXM5ff+lqyZZsvvteRbinJC2NNlRHVyYQA=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To: References; b=HUcNMVtCq6E/VHV70rgJHAm6KPwV+bn/NU5+I1IsCMN5rwgaVjS5cdRR0XVf5bmt 3SkhqdVJexLANCejiEvvnWESLH+7oOuQAsSnwsW72SwafuC2+lZnAV+BkcXb4lZg3 CAwd7E3LIV2xwj+xes3eHZvT2gwiuGIN0+gJduBiKCGboYM2QGi0fk02omTTzboZH rQruBUDRdZ8brCqsY2ulAsAaPGdCb8o1JopKSg/iK5OjZd8lDbiAzARM3HAgEFpcQ xMFsAdy1QjhrFkKGD4pT0cgKe07So/jhdrNyUV7TgJF6gWlb7gvBU11Lv3XAEH6rC VCTbQ7CEiRWRqVZaZw== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from lisa.home ([84.119.92.193]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MhWkj-1r28zw19tb-00eSPJ; Wed, 07 Feb 2024 08:22:59 +0100 From: Bert Karwatzki To: Lorenzo Bianconi , Felix Fietkau , Ryder Lee Cc: Bert Karwatzki , linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, Johannes Berg Subject: [PATCH] wifi: mt76: inititalize sband.band to correct value Date: Wed, 7 Feb 2024 08:22:53 +0100 Message-Id: <20240207072253.4189-1-spasswolf@web.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: 87zfwchlmt.fsf@kernel.org References: Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:ihWuM1oFPsd5oUO7Ugdyc3gHJ/MRJcaj3yk1SSNfEPysgsQprxV fYh/9tX+tysSXDf9fIfrHa4zFSyjOS+Heh2Cy0upbDHPaVAU+Hg7+BM6YsLSJErta3fU7Qy AoMT3iDr4P9YtwaWogne5u7SHTyJnsPO7TNDnGijIW+UwM8hcxDjDiYdSRbRJZpqWMGQB4i U9Yq4rmez7JZIVdlC0k7w== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:ip9NZo/uNy8=;Rr8/t2RtVQbDMiM9lplEP+nfbcK hHNqbivl6jERX3ZYkFswDw2fp5Xo16fb9hOf6X87ETsFG//p7Dq8fQ2VLNBAx9H7gTdp0ICjN hDH2O3nxSzCUE1DMXiyDvPBrC4lsmBx7/XiYaLJ8/EBPQPvp9TIUzP0TYPDDu1UglRFDONRtD 3qPG6iQhSG7g9MLd6cEVPHfh7635h0/guBDh/P01Afdjn/V+qSqIGJvrz163ZWQ2UhGIZNDLd RA7k16ulyPYlwnYpxemnr+MaqxtFj25SRtcsVRpZFykVM8y+WLfJDwc5EcoiZwK/udFXX8gcS CdA8H+Rp5jTSO+sg3zGu10AKDUzGiL04aT/964hK8GeWlJluAqG4N1uUDT9CjseUyJk75Ewt1 L2xn2wB2wmGOzAtsi1F3g/CtWA+OshVlrr0b7pzYDjk50HNF48Yc8t1ptxh9unKEO8T89NG9G gixlC36Zv06eJXbMSLbX0xuoD/ZwLT1wpvJBzwAp/igCu3LEIWmDjY7ZJu20XljzMi0GIRJtB GXTnZn5P6QEntlB0fGZTc6H5FW5zQRQ+YKfRWIY3Eh96Ex9Ou3FCgGiaJXbEfZDhHkzqtuuB+ MA3sVWpNVQQNZNqNW24WzQJSUZ0Xa+ctU7/y7KQgDiQArwuzMRnMiNG0vViSfnuKEByMRTFJO 7GAM7on9487jZ36UVhdQnq/s8moGUkvph+1tsmiwonPPC6TMOu5skTirHynQcAGKDitnyXRmE JA85oMSAlDe6vPXwWx7JYkamQoiQcV0I/Wo3eaiEDiDDZyn1fGhVHtO9Obv+B6Ick8sx+/+9I NTX++/782cZuMhAktKOisXXzXw0+JLEeVezW6rXcZCBv4= 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. Closes: https://bugzilla.kernel.org/show_bug.cgi?id=3D218466 Signed-off-by: Bert Karwatzki =2D-- drivers/net/wireless/mediatek/mt76/mac80211.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/mediatek/mt76/mac80211.c b/drivers/net/w= ireless/mediatek/mt76/mac80211.c index 8a3a90d1bfac..6cf08446f445 100644 =2D-- a/drivers/net/wireless/mediatek/mt76/mac80211.c +++ b/drivers/net/wireless/mediatek/mt76/mac80211.c @@ -363,6 +363,7 @@ mt76_init_sband_2g(struct mt76_phy *phy, struct ieee80= 211_rate *rates, int n_rates) { phy->hw->wiphy->bands[NL80211_BAND_2GHZ] =3D &phy->sband_2g.sband; + phy->sband_2g.sband.band =3D NL80211_BAND_2GHZ; return mt76_init_sband(phy, &phy->sband_2g, mt76_channels_2ghz, ARRAY_SIZE(mt76_channels_2ghz), rates, @@ -374,6 +375,7 @@ mt76_init_sband_5g(struct mt76_phy *phy, struct ieee80= 211_rate *rates, int n_rates, bool vht) { phy->hw->wiphy->bands[NL80211_BAND_5GHZ] =3D &phy->sband_5g.sband; + phy->sband_5g.sband.band =3D NL80211_BAND_5GHZ; return mt76_init_sband(phy, &phy->sband_5g, mt76_channels_5ghz, ARRAY_SIZE(mt76_channels_5ghz), rates, @@ -385,6 +387,7 @@ mt76_init_sband_6g(struct mt76_phy *phy, struct ieee80= 211_rate *rates, int n_rates) { phy->hw->wiphy->bands[NL80211_BAND_6GHZ] =3D &phy->sband_6g.sband; + phy->sband_6g.sband.band =3D NL80211_BAND_6GHZ; return mt76_init_sband(phy, &phy->sband_6g, mt76_channels_6ghz, ARRAY_SIZE(mt76_channels_6ghz), rates, =2D- 2.39.2 It's "Fixes" for commits and "Closes" for bugs, ain't it? Bert Karwatzki