Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp704707pxb; Tue, 5 Apr 2022 19:33:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4HOM3ES7fGCazMs+kxfk66OlFWeLrwfmybQlDmSnyYHHTVOofWZYtJftU18SxX3TEvj9l X-Received: by 2002:a65:654f:0:b0:378:b8f6:ebe4 with SMTP id a15-20020a65654f000000b00378b8f6ebe4mr5212164pgw.399.1649212393079; Tue, 05 Apr 2022 19:33:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649212393; cv=none; d=google.com; s=arc-20160816; b=UtlzSzva+D+wGJogfvG02F1OeUTiBfL7EihnJkU0BcvKx7BCuRcmPgpB2u1U4Qcfif cdTPIBxzLBB0hryl1A+5Kd71ogupTzEK+gtvSx3ZbI8pMcZ2FMHoaYtKAQJksIJ9lbjX r1Ows3xpEzkwJJLa+8Ig5gvAUGMmjBlkWNkymtT+nohR0s+DjM8cnE7yJF6Wksjo9M1V 05mD/+u0nyorDVQDF7Z7Q3rsZl8aLYMWe1/uJSsYSd8/5cUySCpH4ClFo61Lbl0/z+3d o+GRyibZQ1zpeikC5Jku+okvxbjBH1w51LtboKqQV3PlhAxRtlDHCbYt4jOGrIHAjnJS lWqg== 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=CNy4PMe6875GKLbwJQ9JWlmhsPFdnKODyBm7dLrEmNA=; b=sGJ9Imyz8us5jipWRl8TA03VG7DczB/WjbM9DtfasZOXcu6mcnbDt/G7TuZegUHPle c+A+ImRencchQNeP5ot9b8wzopPKVyKt0snYLD3juLsNSapQrvSM5KnStGkrkPNCav2Z QxtP0msYA8GfhKJPTGq5RfhFLOUgwkqsXUpQXa1Gk6jFBS1ANgbGPBS1aO/O18wOqywO YOGzjHTMJR/XQeigwv+5tkJCdvhbbT6WLVMtJt8ojoLuJbXILH2KFNrnZaT4xjuAwQlK SUjL0BdKJ4uxctIzd6+Hf69EWR7Z9YxweUrqbxdvbN4N3ALV0AglI5hUAEGeMj0BtvbH H/IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=z2SYTPHL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b9-20020a656689000000b003816043efbesi14188900pgw.435.2022.04.05.19.32.58; Tue, 05 Apr 2022 19:33:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=z2SYTPHL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232830AbiDEHzs (ORCPT + 99 others); Tue, 5 Apr 2022 03:55:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233564AbiDEHr6 (ORCPT ); Tue, 5 Apr 2022 03:47:58 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7740C4; Tue, 5 Apr 2022 00:45:43 -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 ams.source.kernel.org (Postfix) with ESMTPS id 90F05B81A22; Tue, 5 Apr 2022 07:45:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D8F07C340EE; Tue, 5 Apr 2022 07:45:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649144741; bh=x21f4DuZ/41X02Qnyjnf1n7szzpA+TqDQRru7Rf7Fwc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=z2SYTPHLm12JLVSEL+leGZiMNJDt5/jR7LekOxHKqbA421QH/wuKi9daVrkBwVJz1 7393TQ0L22hzJRhPUTEBsIweVilPRq/BAoy9pYLi7ZMhxF2vARIWaybHfc1Gi1W12K ca9fEqDGoq+tSxVKyYTXHmWGgw2KBbOF9hzxdyo8= 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.17 0155/1126] carl9170: fix missing bit-wise or operator for tx_params Date: Tue, 5 Apr 2022 09:15:02 +0200 Message-Id: <20220405070412.136840785@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070407.513532867@linuxfoundation.org> References: <20220405070407.513532867@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=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 @@ -1914,7 +1914,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;