Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp649379pxb; Tue, 5 Apr 2022 17:16:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQ4enXoOVLJj6U2We8Q32fkoGu7YP9ZcJES5+9UdlXnjCZtYHJ7uDz5DPHBV9abS6LIaz1 X-Received: by 2002:a17:903:2498:b0:156:e4f:b01d with SMTP id p24-20020a170903249800b001560e4fb01dmr5913438plw.84.1649204214270; Tue, 05 Apr 2022 17:16:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649204214; cv=none; d=google.com; s=arc-20160816; b=ZIvD2UxPyX4uNarrsAYbq/j9ZCr2803rvDTbto60tknVWE7csPa5FWFlZ5/FwAex47 FTe1IAfp9lxvYkKt4baEv5pKJO0h1ZrXknsGTb09riV2POETehycY+Mde3Lq1aEEM7du akS3/a9gBVnMqxn6vM+EPV/hPUMR33ULoLZq9ZUjiJhUPQioBlY6FQTO+anHA0wkTPMD tPiN4iDHR0N1rjBUu82oGEwf0Tsle3h3eMRNsWnI+KGB8E88lUL3yG4Ku9Vw7OE9cMRa ESrj0OH42XA/YfexkEdx9XU0P16XOqyKGtzzUATYLkDJv6IzYg8cuOgoOepYNUth71co H2Fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=N7OeD8D+Sx0LxFpikg7PZS22t4wu+zbyAqicWMw6wgg=; b=0XQydTCsJ+pS2eT++g4xGyw8f7O6EDqPOjaW2bWT/Hx3hPRfb5srqxH6t8Tx54OJw2 FsIGiRzq1Y2z7y+QJxuoI1Tf7P9Qwz5lB/o5qK572E2OgtLBXExpxHcQebPlMjs/gU2Y 8X7+yyIzt3F2Qa5F8X/3IsJsAlA/jPPyso4dedmZH/H5sEu+QYUxiBXltOGOKMDOyf+E ZFC2LSFJolxHcvwEX7NTk7TJsKN82ACX6Pyg/9mWLbo7H/8rQqh036k6vuJzpaLornSz /3j4vatkQHkvz58WSOv5YmRcN8MvcP6MwFeMSSyGJrerELff4v0JfRaEHKR7KTqHB9vQ SEmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hLkjt0DV; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id i10-20020a63130a000000b00399750cb8a2si1866753pgl.630.2022.04.05.17.16.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 17:16:54 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hLkjt0DV; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7215395A38; Tue, 5 Apr 2022 17:01:03 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1388868AbiDEOld (ORCPT + 99 others); Tue, 5 Apr 2022 10:41:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229868AbiDEJlE (ORCPT ); Tue, 5 Apr 2022 05:41:04 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36359BAB8D; Tue, 5 Apr 2022 02:25:10 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C59AF61368; Tue, 5 Apr 2022 09:25:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D44D7C385A0; Tue, 5 Apr 2022 09:25:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649150709; bh=AXM6EIGv3cMnti0AXeqKdjQ/tXW2ov+kO9R4rZJX9+c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hLkjt0DVIJmFQ5vGobsQTIX320gqI0qeLSYgE/wQFdXoF1zJbOKqjkGfCBdMi07uf plkbxUcpUqAHgcGVD0ZDG29L2uqpaYcJ2cf7ldO5fD282yHR+aN2Pp8nxh+yXCJIge XLNJ61ORVzXft99xIviBRMIcbQgCI8eeK8meQiks= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Colin Ian King , Stable@vger.kernel.org, Christian Lamparter , Kalle Valo Subject: [PATCH 5.15 152/913] carl9170: fix missing bit-wise or operator for tx_params Date: Tue, 5 Apr 2022 09:20:14 +0200 Message-Id: <20220405070344.394137918@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King commit 02a95374b5eebdbd3b6413fd7ddec151d2ea75a1 upstream. Currently tx_params is being re-assigned with a new value and the previous setting IEEE80211_HT_MCS_TX_RX_DIFF is being overwritten. The assignment operator is incorrect, the original intent was to bit-wise or the value in. Fix this by replacing the = operator with |= instead. Kudos to Christian Lamparter for suggesting the correct fix. Fixes: fe8ee9ad80b2 ("carl9170: mac80211 glue and command interface") Signed-off-by: Colin Ian King Cc: Acked-by: Christian Lamparter Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20220125004406.344422-1-colin.i.king@gmail.com Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/ath/carl9170/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/wireless/ath/carl9170/main.c +++ b/drivers/net/wireless/ath/carl9170/main.c @@ -1915,7 +1915,7 @@ static int carl9170_parse_eeprom(struct WARN_ON(!(tx_streams >= 1 && tx_streams <= IEEE80211_HT_MCS_TX_MAX_STREAMS)); - tx_params = (tx_streams - 1) << + tx_params |= (tx_streams - 1) << IEEE80211_HT_MCS_TX_MAX_STREAMS_SHIFT; carl9170_band_2GHz.ht_cap.mcs.tx_params |= tx_params;