Received: by 10.192.165.156 with SMTP id m28csp1149817imm; Wed, 11 Apr 2018 13:22:41 -0700 (PDT) X-Google-Smtp-Source: AIpwx48ZlJPEoEN3DvnqHBDJt+oe+rqfvln/PJREwQeGehEU+PSkOAFW6+aeM2MCJqJNlkqKGb76 X-Received: by 2002:a17:902:5a8e:: with SMTP id r14-v6mr50602pli.138.1523478161913; Wed, 11 Apr 2018 13:22:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523478161; cv=none; d=google.com; s=arc-20160816; b=Wh4WM52Z1OTKeogFA7c1gWzALZ5cUNwzOS2KNnRMFxDSsrbWVB37stv3MkGZLV3/gO IjwBLiHMVll9BrVS24+diTo5+cDQ7GafknUJIsyo5HGrUdCd1PCtnKtNcbRtbdOKjh30 xJcBLeTCmAA5nBYld8+HZfZYzH+tbhaLIZgTwnE83d9zjI2dIA1oyv4XZHDBv21E+IxR NUznaBnKU5cXFvl+/czIh8Q8TMRjr+4S70gRrO79qz5cQhTOUCEpPVZLWBTDyyESnyzm /0IP64gTOH/WFI0pQcD4Ak22/oqHiC0C3dFH4SmCG1JcR6boBYHFWAebjPor19Nl97pt rplw== 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=FbV8hRoqyigcRCPch5I3bWiJ8d/9H424xfPb2MgfYyI=; b=wH3LcCG1fA8T9/ouzFlEuGAUAJ93M/vgFV6kdmyFx6hbtdFK5mS0FiwGqe9MBGy2bE D+qBQzAh0lRJhx5pR6rL0bkw9gI0L0+Y+2ZWd7NTP1yERi9hQ4P/nC+J67jeihMij6Dn t+9REgj2uhx5618GMZrsOERdopi8l/kmFPF1RwDj+t2T+3qck9/RlkyRPnDCnVCyBOCB l3ltC1lXuSfLCI/nYlqrYJPN/d5xMFXTECkWxiVPAOuN98HIPteokIIGipxvzcSsljH0 yVzy8Bjz73bbMi6JKMnP+LcCaF/lplBF9uBLXmg3g89uS3apfi/hP4fhp26LlE2Dq1Lz 7qVA== 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.13.22.05; Wed, 11 Apr 2018 13:22:41 -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 S933237AbeDKSxR (ORCPT + 99 others); Wed, 11 Apr 2018 14:53:17 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:33680 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932401AbeDKSxP (ORCPT ); Wed, 11 Apr 2018 14:53:15 -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 80E70E98; Wed, 11 Apr 2018 18:53:14 +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.9 002/310] cfg80211: make RATE_INFO_BW_20 the default Date: Wed, 11 Apr 2018 20:32:21 +0200 Message-Id: <20180411183622.404557037@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180411183622.305902791@linuxfoundation.org> References: <20180411183622.305902791@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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.9-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 @@ -947,9 +947,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,