Received: by 10.213.65.68 with SMTP id h4csp1690199imn; Mon, 19 Mar 2018 10:38:38 -0700 (PDT) X-Google-Smtp-Source: AG47ELsTIQ+/9uzSx4HINcSil569zAVNMPp4MnWMmstMqdUqZhg1O8E2B8H0lkH3V5n/i5zZnpQZ X-Received: by 2002:a17:902:8e83:: with SMTP id bg3-v6mr13576082plb.144.1521481118827; Mon, 19 Mar 2018 10:38:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521481118; cv=none; d=google.com; s=arc-20160816; b=kM0ssIOKLPZGLHADGLHRxe7vmgDu1ZlK4RsKlUi6qJASLmsk0A+PXIYqt7OC1KY+wa q/jCtXR5FAADvO8w+4Yvh55GMstEmubJylh8OFPiZToGwS/GIi3bsZt5H1iqHUQjsJGd dkhxVHXjZG1QBqmtJUh5zjGOsq3b3HJH7taed16mYYSi710WUiUpcfIo+LADT0EfZELL JYbGH1iKQfgK3YB4KImRYDL1DiIgZrGrgKgCg5konhEAMwaySx2Q5ZJAPQU94yfK+Ss7 FKebQhMpxFQJPDceWoMvbyXcwq8Y5SjBmpki5P6YUwfj2+Nu0T44iDWDwfBxF+hG+Tya +17g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:message-id:date:thread-index:thread-topic:subject :cc:to:from:dkim-signature:arc-authentication-results; bh=kPkK2T8nLeNCIBnf4JD4h4BJ3wJKKGNPSKVgKe5wHK8=; b=aB+ZAkM2ao7cF4oGGIEy8bxjcs3YBlEyTO8aFSiKqKNKppnc86Mbgrlqw/ap6QewLv sIn73lABFeaG7+lZfxBye8jZnviQpGL52iXuaTt/7T+squxFNo9yjwMvGuTsuSUsRFOS ZpklvTKkqpYqpzicmh/QAVMr0T7HJ73FBXqII2sXcFhYODRpBCTpwoylE0faHERhPnjU By+Bkj50+NFf3QZCRoqhdXn6sopCAkKp9sgqzAqfouafhpBmZNa9tue7P/ZdIzOVPrOg pamZ+kK/cXUxXfdeSEb2WiZTGkwiReAKIiiiylDm+C9TFMFzc6M9AxGLnktgZVh1kqb6 +2DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=lSS31hcr; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v73si287694pfd.304.2018.03.19.10.38.24; Mon, 19 Mar 2018 10:38:38 -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; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=lSS31hcr; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966017AbeCSRge (ORCPT + 99 others); Mon, 19 Mar 2018 13:36:34 -0400 Received: from mail-by2nam01on0122.outbound.protection.outlook.com ([104.47.34.122]:13968 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965993AbeCSQGp (ORCPT ); Mon, 19 Mar 2018 12:06:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=kPkK2T8nLeNCIBnf4JD4h4BJ3wJKKGNPSKVgKe5wHK8=; b=lSS31hcrokDWNke9RTN0O0COMznhKa6eT1JGkmoACJ6GIl/wU5nOq+n9fol0rvTccH9Pr3ncInlx8bUbeAcaV/JKRYXkewycf6oCxJ5Q82VQlNytW0WiXFppo1SkTmsFNBmVoLB77Rk6LFvFSQgPtLNvLoaOI22whVAj0q2iIXQ= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0728.namprd21.prod.outlook.com (10.167.110.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.631.0; Mon, 19 Mar 2018 16:06:39 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62%5]) with mapi id 15.20.0631.004; Mon, 19 Mar 2018 16:06:39 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Johannes Berg , "David S . Miller" , Sasha Levin Subject: [PATCH AUTOSEL for 4.4 001/167] cfg80211: make RATE_INFO_BW_20 the default Thread-Topic: [PATCH AUTOSEL for 4.4 001/167] cfg80211: make RATE_INFO_BW_20 the default Thread-Index: AQHTv5wUZj5tNc0ZNkSR4ds+ssei5g== Date: Mon, 19 Mar 2018 16:05:20 +0000 Message-ID: <20180319160513.16384-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB0728;7:2OD3nfAWkFYK4bBcB2Eyzz5jAvNFmlYBWPPigy3KRJxTfaCkEu42Vnx5Cm4GLlel7BxVL47Xyo3qruyXcROx+skeD599IxjLEvipd+glZyaazWCRgORQa2iv/UbFCH4yL6CEJqmI5QjG50E9FCyV0utpTNKvD1V7b5yNUjfaAzTH6PK5mkbjahD56RzDZIpgvi0jJ2m+zpDSN3ugDc6Qq3kuEq7afZFsgbOfE9UQdWNV5g2Kwd0PD5cKXMPWbUnP;20:qhSL5ybd3aIIUUYmlynaoyoDixZiLB+h+qv6RVQXOqFYwG8tYZM78ViHAbKnMbgPlnbeI8+K23xuKdjTvUQHKGZTowmp6KJGyt6YGCvhthQPykBRwkhDImni0GcDJFHvTyUbjCTL8OvpiajETx/vZWUbCXeYu8FlUM2Fk4lzVcU= x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: d99f6c2c-ab4d-4f4f-b4a3-08d58db365e5 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0728; x-ms-traffictypediagnostic: DM5PR2101MB0728: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(211171220733660)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501300)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(61426038)(61427038)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011);SRVR:DM5PR2101MB0728;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0728; x-forefront-prvs: 06167FAD59 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(39380400002)(346002)(376002)(39860400002)(396003)(199004)(189003)(8936002)(99286004)(478600001)(53936002)(107886003)(110136005)(86612001)(72206003)(97736004)(316002)(3280700002)(5250100002)(2501003)(36756003)(2906002)(105586002)(1076002)(86362001)(14454004)(6436002)(54906003)(6512007)(6116002)(6486002)(106356001)(3846002)(22452003)(3660700001)(186003)(59450400001)(68736007)(66066001)(25786009)(102836004)(4326008)(10290500003)(26005)(6666003)(305945005)(7736002)(10090500001)(81156014)(81166006)(8676002)(6506007)(5660300001)(2900100001)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0728;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: /YiI+qclmRt92MiVUPl9rSjDKPqk6zOrqHLlOG1Jctrc6nl4LzOd9qp5d9HHB/YKafL7mUWtR76cTjNCpEm8ei9FP2Jm8TVGtrF1l/mNxPx/COKWosWmWSvcJyNvtvwHZLaQHTbKUTtBFA8gbhOQjapog25omAA+mbzcer73jLBF3AgRydBKwLPmE8W0GwAeZH1cD1wN9BrbVk9yRKFx2QM6X05CRel512GMrWrZEcilhx4OLP8ajfvhOcg4l2qKQysn9xTpF/xdMJGNHUyAoFProHOicB36R4M/drn8yIePCvovb56DifIenbYgwTvpkpFDOCuQvR1SOTgnRQniLQ== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: d99f6c2c-ab4d-4f4f-b4a3-08d58db365e5 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Mar 2018 16:05:20.0428 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0728 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- include/net/cfg80211.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index b5f3693fe5b6..c05748cc1b20 100644 --- 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 =3D 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, --=20 2.14.1