Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3926860imm; Mon, 8 Oct 2018 11:49:01 -0700 (PDT) X-Google-Smtp-Source: ACcGV62dRr/nzOiZL4OqCcs1dtlb2NAxRbk99KGwtBXfC0nMV3i4pD94XtyX08FvjPWItEW7TBbU X-Received: by 2002:a63:f922:: with SMTP id h34-v6mr22304306pgi.154.1539024541638; Mon, 08 Oct 2018 11:49:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539024541; cv=none; d=google.com; s=arc-20160816; b=HNr4KM6mOUoPmMumz2uIQVj5tGOh/VV0mj/Uz4iTn0UhpaXr9B5BiC5KQiSW2dzRjn 4Q2J8OS5ag6ivG5B3gULG6dKEAfLoAdl82GHEoQTUqmxjc6MZcaL3KBcE2K3l6ZrGcUz /XREsw0SjoRLl2neG3ndwYwf4zQacbagZkMvTnItzgw0uVkVyFpbi3FX4HemCHnIhWBU CYwBaXMflOiTySnvtb6Ntj3IJxDIUzgrpTMrX1PQTCtOUqm8JALagoIS91lxCojIuD2B mE7SQP3iCa81uznUdhdzqa1/HDLFNeNy7hSfwRT8KBhakMRy1ieH5zg/ERb93P+nmQ5s BGhA== 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=eU4m2kjkuIlBUGcYo0h7Hai5W1TvLbXpEBdDggn0f2M=; b=tCYDRE+dt+L7uVbeAbMsH0Ze3HsCY1ZpJWmx6cm9R+p7sNHATiQFYabqbjIfb5ssTp P0E8W+wSslZ6+rozJd5aY4n61PE0qZrmIsuViDa3qUXi1q66ZA8soTSgFi0JF27KZ33t 9KlCsaVz/gg3172RPYi99EyXdLDwN60jdnq/d0Nl7eKVqz58xfdVNccDHucDHtxF5JON +DGBK3r2F0i/SpHi5S/VqB5ndOcuatuHn5Mm/X4TU+NLud2awko7FvExadcZY2WcE0oz wGYk1GiiQ4cVP4uJuRsb9CZHXHdCrRvcYusqdTXTCJIM2yi8mYdAwW23kqgLs+CCkusj saPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DZzHZx3j; 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 s16-v6si19563995pfk.62.2018.10.08.11.48.46; Mon, 08 Oct 2018 11:49:01 -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=@kernel.org header.s=default header.b=DZzHZx3j; 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 S1731402AbeJICA0 (ORCPT + 99 others); Mon, 8 Oct 2018 22:00:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:49078 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730764AbeJICAZ (ORCPT ); Mon, 8 Oct 2018 22:00:25 -0400 Received: from localhost (ip-213-127-77-176.ip.prioritytelecom.net [213.127.77.176]) (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 3B227214C4; Mon, 8 Oct 2018 18:47:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539024439; bh=OWruM79VqlWUDGLf37p63oppDtCS+QVfUdLKkCwIAN8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DZzHZx3jTj9t+9AGKb5tysloxtfkKr7YgFBXD9hHCewrrOV2JFeoZYnENH0h7MKI1 yQzAykPvrPUL42mxOgsuokJmcKLSL9RpX9i3iihqap6lBX6weN9iqo14iCNSji2+go 2+lqzMS6ZU0oceO2Z62tvr5E2hS3epezyiIFPF4U= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Danek Duvall , Johannes Berg , Sasha Levin Subject: [PATCH 4.18 015/168] mac80211: correct use of IEEE80211_VHT_CAP_RXSTBC_X Date: Mon, 8 Oct 2018 20:29:55 +0200 Message-Id: <20181008175620.621780746@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181008175620.043587728@linuxfoundation.org> References: <20181008175620.043587728@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.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Danek Duvall [ Upstream commit 67d1ba8a6dc83d90cd58b89fa6cbf9ae35a0cf7f ] The mod mask for VHT capabilities intends to say that you can override the number of STBC receive streams, and it does, but only by accident. The IEEE80211_VHT_CAP_RXSTBC_X aren't bits to be set, but values (albeit left-shifted). ORing the bits together gets the right answer, but we should use the _MASK macro here instead. Signed-off-by: Danek Duvall Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- net/mac80211/main.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) --- a/net/mac80211/main.c +++ b/net/mac80211/main.c @@ -470,10 +470,7 @@ static const struct ieee80211_vht_cap ma cpu_to_le32(IEEE80211_VHT_CAP_RXLDPC | IEEE80211_VHT_CAP_SHORT_GI_80 | IEEE80211_VHT_CAP_SHORT_GI_160 | - IEEE80211_VHT_CAP_RXSTBC_1 | - IEEE80211_VHT_CAP_RXSTBC_2 | - IEEE80211_VHT_CAP_RXSTBC_3 | - IEEE80211_VHT_CAP_RXSTBC_4 | + IEEE80211_VHT_CAP_RXSTBC_MASK | IEEE80211_VHT_CAP_TXSTBC | IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE | IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE |