Received: by 10.192.165.156 with SMTP id m28csp1182471imm; Wed, 11 Apr 2018 14:03:51 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+oCQqkHL7HJVWHdEfvVkBOHuPlIVF/vBrJHHTLQSWLtlQ6ScTWwGnmDy3jLa2L43bKt6gu X-Received: by 10.101.97.208 with SMTP id j16mr4612935pgv.431.1523480631887; Wed, 11 Apr 2018 14:03:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523480631; cv=none; d=google.com; s=arc-20160816; b=AeKE91fNAHCjbxB/ElrxIuNF0bNhw2kQbZYvAYJj3jTJB8NKqqFT81mceap9QlN0o+ Hk7YjD9R4Igf1CnSf7fSbiEHOG0AbfdIzka4AkinT/fPoUXZhu8E2Q9zU2dL8gcbtm1H mIniQpV0yKxnT7O3BRLsPGDYJJ36XVDd58MthItKa8366xael4ADlaMUHtqOFiEPZtCf LZEFhJNUz8VVSwE+i9CHcpkoTln+Hlg0LoxnTXp1hGILu/6i8w3RTzrTrMagG1zEPuDD V4gyjv2rssjVQIsxsu5r/GABndUseKpeQh0HlpB2fhiPHHZow+6c9WrpyfisLht1Wkn8 rG+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=fsrR7Z6XvXtj/AonSE2DJeLj6rEsNGyuAblTY7TehZA=; b=1F6HIK4nx6qGZn/UuZCla5Hp2MEI+e1afsObvTLOvN13ns0iA93b+sJEw9XsVp5ZW/ cEGNubeJxB/fEW0LCBE7lofBcQ+kezvbmsiB1p8Xz4lVzUlt2nZ/9sd1Dvkd7HiQMuRO KBN/53FPWcbZq0zj4G1Hl+BV+4kxhkajkEmfJZVu02ZY8HOQ4WBZHWYlQkEeI6BEciGJ XzjRG1cEf9HwMhRKFPiJ+7iexOQtsK+Am15tpV1uKk7i4fH8F8iCCfVZswJ+m3o5GV9w EBI5XwpyCpF6yeuCcwDI+szU9/2sIOI7CSBgwLvkErP2ZjUnuo5hTtHuQcgC1o6hzLxW C4OA== ARC-Authentication-Results: i=1; mx.google.com; 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 f32-v6si1860285plf.415.2018.04.11.14.03.14; Wed, 11 Apr 2018 14:03:51 -0700 (PDT) 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; 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 S932081AbeDKSnn (ORCPT + 99 others); Wed, 11 Apr 2018 14:43:43 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:57652 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932069AbeDKSnk (ORCPT ); Wed, 11 Apr 2018 14:43:40 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id CF379D9C; Wed, 11 Apr 2018 18:43:39 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Linus Torvalds , Jens Axboe , Johannes Berg , "David S. Miller" , Sasha Levin Subject: [PATCH 4.4 001/190] cfg80211: make RATE_INFO_BW_20 the default Date: Wed, 11 Apr 2018 20:34:07 +0200 Message-Id: <20180411183550.184496168@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180411183550.114495991@linuxfoundation.org> References: <20180411183550.114495991@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Johannes Berg [ Upstream commit 842be75c77cb72ee546a2b19da9c285fb3ded660 ] Due to the way I did the RX bitrate conversions in mac80211 with spatch, going setting flags to setting the value, many drivers now don't set the bandwidth value for 20 MHz, since with the flags it wasn't necessary to (there was no 20 MHz flag, only the others.) Rather than go through and try to fix up all the drivers, instead renumber the enum so that 20 MHz, which is the typical bandwidth, actually has the value 0, making those drivers all work again. If VHT was hit used with a driver not reporting it, e.g. iwlmvm, this manifested in hitting the bandwidth warning in cfg80211_calculate_bitrate_vht(). Reported-by: Linus Torvalds Tested-by: Jens Axboe Signed-off-by: Johannes Berg Signed-off-by: David S. Miller Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- include/net/cfg80211.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -933,9 +933,9 @@ enum rate_info_flags { * @RATE_INFO_BW_160: 160 MHz bandwidth */ enum rate_info_bw { + RATE_INFO_BW_20 = 0, RATE_INFO_BW_5, RATE_INFO_BW_10, - RATE_INFO_BW_20, RATE_INFO_BW_40, RATE_INFO_BW_80, RATE_INFO_BW_160,