Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2136434iof; Tue, 7 Jun 2022 20:58:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdApavIANMYgSClLW294Ucpx/E/oirCojMfKh/998tQA+dvjA1agRpKSy6SEkhJnEuBUzV X-Received: by 2002:a17:902:d682:b0:163:cb15:dda1 with SMTP id v2-20020a170902d68200b00163cb15dda1mr31573159ply.36.1654660720688; Tue, 07 Jun 2022 20:58:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654660720; cv=none; d=google.com; s=arc-20160816; b=T/m7t/GyIS0QnplhOHNUrk4viBuzj2gf9U0e3LGqlw+8ezE1X4PaCVvSvbCJIgqSjq dM/lZiBuSUykXqld4SHZWcRe7Pb2EPP9WLVEB/LChNu16t8b9Z0dWcslAZI8kg4lE1BL ODwuYSNlrRCx9+a/yn5JjuK6g8RwB/6Rd1mj1ObyyuamIWddZlDpgRIvkmLK6ByDlkzH jabsUDZb/Y1Cnf7V8n8h5axMjkGnjlHIwGBoGw+mP7qjh8MbmbPnIx8qzklZr/R2xx5O jbELLJUNr7iFDGR85bxnfegOHgsusf/X4wYEqgnvhEHop5AsEbZ1q+DdaMo0HUmaiGOk Uxlg== 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=Nhf85XO2tJSaM0Il/U3Yv4BL9s6CrFj8fKbedeh9WNs=; b=M4dteQ49spnz60NWO69WRG1JGY3IVewRyOCUYqpGyUtcai9M1xHAv9E7nSYk6RtKlm Znm8pWWSQKEZWMXvtrJZqt2PId2NMr1A8XfDYDGqdMTiY51uSDb91XUodRbpwxOcKrQe V7WU0R4idn53O9hh/1huAL7vqoEA8oAb0iJ4/adMurnIAJyiRj5mREJsk3aBFxbwbNcz vBQG4oaAIui1T4P9z7h6JNpEblk/FEkZSt1gkCnqG4U9FW1yR9MBUlKWwoMQQkfv2MjX hOPnrSxtexDboTqhhCGFvR0Lam92S0anVPGIUy1vBIk5qBxAmecqToGFr5KHp61tBakx Bq0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Il9P+3ry; 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 q3-20020a170902eb8300b0016793c0dff9si4508302plg.303.2022.06.07.20.58.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 20:58:40 -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=Il9P+3ry; 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 CB27637DDA2; Tue, 7 Jun 2022 20:21:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239513AbiFGRej (ORCPT + 99 others); Tue, 7 Jun 2022 13:34:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346904AbiFGRZe (ORCPT ); Tue, 7 Jun 2022 13:25:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 048E6110AE0; Tue, 7 Jun 2022 10:23:35 -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 8C76D60DDF; Tue, 7 Jun 2022 17:23:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D9B2C385A5; Tue, 7 Jun 2022 17:23:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654622614; bh=NnXQHT5P4J/X8Kbs05INx5ZZMNbLDhdSV/Bsk9NGxg8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Il9P+3ry1wSi5f9wdOZ8QfJGRjPEu9WT6krpyeJjqrbQHN+RbG/tcFYNUtczBhP9v AVibQIy5JeU+haekSWU7+Mjd5ZIZqiL0YAojqU8IJhgY+Hy7mTFFfUm43hlYFfJLzx 47XM/FHgu5PkbKF0S0hZhbgK1OR2iuajrHJAryxc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Wenli Looi , =?UTF-8?q?Toke=20H=C3=B8iland-J=C3=B8rgensen?= , Kalle Valo , Sasha Levin Subject: [PATCH 5.10 123/452] ath9k: fix ar9003_get_eepmisc Date: Tue, 7 Jun 2022 18:59:40 +0200 Message-Id: <20220607164912.223933181@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607164908.521895282@linuxfoundation.org> References: <20220607164908.521895282@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=-3.1 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=unavailable 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: Wenli Looi [ Upstream commit 9aaff3864b603408c02c629957ae8d8ff5d5a4f2 ] The current implementation is reading the wrong eeprom type. Fixes: d8ec2e2a63e8 ("ath9k: Add an eeprom_ops callback for retrieving the eepmisc value") Signed-off-by: Wenli Looi Acked-by: Toke Høiland-Jørgensen Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20220320233010.123106-5-wlooi@ucalgary.ca Signed-off-by: Sasha Levin --- drivers/net/wireless/ath/ath9k/ar9003_eeprom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c index b0a4ca3559fd..abed1effd95c 100644 --- a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c +++ b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c @@ -5615,7 +5615,7 @@ unsigned int ar9003_get_paprd_scale_factor(struct ath_hw *ah, static u8 ar9003_get_eepmisc(struct ath_hw *ah) { - return ah->eeprom.map4k.baseEepHeader.eepMisc; + return ah->eeprom.ar9300_eep.baseEepHeader.opCapFlags.eepMisc; } const struct eeprom_ops eep_ar9300_ops = { -- 2.35.1