Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3925802imm; Mon, 8 Oct 2018 11:47:53 -0700 (PDT) X-Google-Smtp-Source: ACcGV60yZYG5uTXZjuA3sGLEpwB+JIpUwhMig04bmcWTisIwmi8eyH3/7TXxM4Zs1PPCLRk3/UnW X-Received: by 2002:a63:b04f:: with SMTP id z15-v6mr20630312pgo.442.1539024473811; Mon, 08 Oct 2018 11:47:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539024473; cv=none; d=google.com; s=arc-20160816; b=yRP6fYu5oIdMf2jyZK0tBN9WhjEHuuse0dLBkjUejlI10t13likb4idrNXhX9HR4Ri YljgPI4K0EDZF53QXNQjncLebSZ8INAjGK69Ty//1I9SdcNZon0IVQALsALyvXCa/Kov 1Si/ahnPuY7HJyuGNu4y8k/XFfC0aZSM7nE6SEA7XbP0cP76Cu+5VtL2xVi7MXZ23ylz BtuzJtqp23nuOGikqVob2l8yFWShojsKQyUq4AQKp+nf+7bzIcBnCYxEUG/x3DU7IxdP qpQ2+KH2ucQGD8sAqP5Ftfd+25XaQ5FHqJHFzcbWCrQEtKW0Ia9pgUJKdtSrTy11VoPm E1Dw== 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=Ep04o5Yo7WaTZlE9C+6uoWCt2empIwAZ9QwSDQ3bpP0=; b=Bh9T3PTpu19Yy/O33LvVNvNZarv5mOBUmUzF5bMVphHlZme17Djr3ruRC7XQuGriQw F+792Xul0P+6HA34k597zuFBHA96neg7qY5qjgJmQFtKmMMzbS6SNFOmNMZsMvUoMd1X pdByDMyPGrNfbDGWvp8GSf+k6hRJ2MEqoj3mK5im4gCojPeVqV08x/NkIiIo8s4Unl9p O42EV27UD4Da01jRXzq3VkNrrhlbt7bw9p9rwW/sS3W5UPLDtT02P9NoPf4ni+w0lZah lw9NuCcxtLQaEOF3UKyjhaGgtj6PSqdJi9wvilbAs97SrEiWoAQ6V7i7TwBAFvMW1V61 CNuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ewbWbgzC; 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 ce19-v6si8360079plb.162.2018.10.08.11.47.38; Mon, 08 Oct 2018 11:47:53 -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=ewbWbgzC; 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 S1731415AbeJICA3 (ORCPT + 99 others); Mon, 8 Oct 2018 22:00:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:49174 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731408AbeJICA2 (ORCPT ); Mon, 8 Oct 2018 22:00:28 -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 933CC214C4; Mon, 8 Oct 2018 18:47:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539024442; bh=q6UaMip56eA4XYwC1J4fQYcy/Tli1tz+5ZUbNHOQPs4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ewbWbgzCGMEVTwmbyS/U2iHsRG3wBQFuIPXfJvXXLRf6UtyNuNSxjGIJsVQsfiUej CPLve43T53O124ZP4f2CMa8y5zptRlq2g3s7gLaIlUycwHnEvlbeeF/aPyQpa0iRpH J6VTu722cuRFokBv/NSqCu7Ns//lb7pzhLKEdMPY= 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 016/168] mac80211_hwsim: correct use of IEEE80211_VHT_CAP_RXSTBC_X Date: Mon, 8 Oct 2018 20:29:56 +0200 Message-Id: <20181008175620.674680058@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 d7c863a2f65e48f442379f4ee1846d52e0c5d24d ] The mac80211_hwsim driver intends to say that it supports up to four STBC receive streams, but instead it ends up saying something undefined. The IEEE80211_VHT_CAP_RXSTBC_X macros aren't independent bits that can be ORed together, but values. In this case, _4 is the appropriate one to use. Signed-off-by: Danek Duvall Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/mac80211_hwsim.c | 3 --- 1 file changed, 3 deletions(-) --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c @@ -2699,9 +2699,6 @@ static int mac80211_hwsim_new_radio(stru IEEE80211_VHT_CAP_SHORT_GI_80 | IEEE80211_VHT_CAP_SHORT_GI_160 | IEEE80211_VHT_CAP_TXSTBC | - IEEE80211_VHT_CAP_RXSTBC_1 | - IEEE80211_VHT_CAP_RXSTBC_2 | - IEEE80211_VHT_CAP_RXSTBC_3 | IEEE80211_VHT_CAP_RXSTBC_4 | IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK; sband->vht_cap.vht_mcs.rx_mcs_map =