Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2526689imu; Thu, 29 Nov 2018 06:25:43 -0800 (PST) X-Google-Smtp-Source: AFSGD/Uo0/eBkw6X3IRdeY/Apm6jS5ZgEWxw9DPzREmfeKR1OmTnQ+7teeDYT4fSr9qBxZk705t4 X-Received: by 2002:a63:e20a:: with SMTP id q10mr225316pgh.206.1543501542947; Thu, 29 Nov 2018 06:25:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543501542; cv=none; d=google.com; s=arc-20160816; b=mkkjfUuIh1JNkiYXE9PGLkh1BWD7nIDW2SJDERejcm00G+Mn2GfQr1HK0UgLcTxRsN tuGkZeMHvCF24mTyvl4rsEGa8mEn9fnu2lXyru/qMh3rRu1lnkUGAKAlrOuD2qqt9zN2 oyNkLY7538nGxBTEImde52MajCF7sZoPDMSH+eO1xbLHr982SS9mGNjFq6ZGJ1dF6Sqm CxoMslRa1fDZX8dbJcqptXFQoTiiZ9ec09/hGbmrKP9T9RgM+849dCkOvtc7UTSIUHAQ taZnEEWaKvu/CLqaf1Qu58nFJNfYOkHT6IA15+phN8eX2pgL19cbL0NAZ0RQO2c0iRs7 RV/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=9zs2f+obvkkrOjmsn14EMmd6FZ8rExGQ9BoTvYeOd8A=; b=DKQenDlgUHZcirxpM6RwVcA3gMi9Et1wNp0OIOKSgv2/JQ3BnMG8n6oqN3+9tIo10M 1oyBLYoVt0s2lGkQ8sd64QZwdQxyYYi5kSGhhEo5U4OkGxqgEldkGJIdQx0phwPEJ916 7OzlK0hNaeq6w3N3mJE+hyrYqtzwpBicAE0BcJY0m5y/uVhdUYVLWQueKikzmXmbOqap dOdEGL4dI7fXUe93GkPsiAbx7zXOa5OLjpuQmsUfBx9y/yzgIMXIEtN9ef+tG4jfCDvl ztLsW4b+H37y4hN/odQoFu+8bBzxrs3v149IfHU6uDno5t4hrLn6V3LoLyS7zbjyE9FZ m9dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EOAldl19; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u6si2499150pfb.92.2018.11.29.06.25.27; Thu, 29 Nov 2018 06:25:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EOAldl19; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732771AbeK3BaV (ORCPT + 99 others); Thu, 29 Nov 2018 20:30:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:57344 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728616AbeK3BaV (ORCPT ); Thu, 29 Nov 2018 20:30:21 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EE813213A2; Thu, 29 Nov 2018 14:24:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543501489; bh=TT9/PqdAjI6g90JL8CWAZ3XSrboVPjISxIr7QQyfDks=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EOAldl19dquzUmGUR3fr8xYk03aluv9WYExJ0NePfTcqnOc4RU6M52NVWY6SyypAk eMVX3AM4ZATA2371zMIWB8Vj8yFvvONnJFdvzfzH7N+vZSJPOGvdcgMMZ5awPeE9Dp RI48A9Lm4LaVIgitHxotxuem7jV4o1EpXsFssTaU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , Kalle Valo Subject: [PATCH 4.14 019/100] brcmfmac: fix reporting support for 160 MHz channels Date: Thu, 29 Nov 2018 15:11:49 +0100 Message-Id: <20181129140100.480709812@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181129140058.768942700@linuxfoundation.org> References: <20181129140058.768942700@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Rafał Miłecki commit d1fe6ad6f6bd61c84788d3a7b11e459a439c6169 upstream. Driver can report IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ so it's important to provide valid & complete info about supported bands for each channel. By default no support for 160 MHz should be assumed unless firmware reports it for a given channel later. This fixes info passed to the userspace. Without that change userspace could try to use invalid channel and fail to start an interface. Signed-off-by: Rafał Miłecki Cc: stable@vger.kernel.org Signed-off-by: Kalle Valo Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c @@ -6098,7 +6098,8 @@ static int brcmf_construct_chaninfo(stru * for subsequent chanspecs. */ channel->flags = IEEE80211_CHAN_NO_HT40 | - IEEE80211_CHAN_NO_80MHZ; + IEEE80211_CHAN_NO_80MHZ | + IEEE80211_CHAN_NO_160MHZ; ch.bw = BRCMU_CHAN_BW_20; cfg->d11inf.encchspec(&ch); chaninfo = ch.chspec;