Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2483947rdb; Wed, 4 Oct 2023 02:37:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEbT/3QBegXO5rIp+Wq0tZzxuay81KvyZTnt9TBOvAEfuz4vxmI26y4Tx68c4RJwrdNlLtS X-Received: by 2002:a05:6a21:4982:b0:160:7679:90 with SMTP id ax2-20020a056a21498200b0016076790090mr1491875pzc.56.1696412239791; Wed, 04 Oct 2023 02:37:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696412239; cv=none; d=google.com; s=arc-20160816; b=ur8CYF63ZY85oXDAbSaDbkD78J8cb4LFVn9Pc7lyPxci+NF8avPB4RdCLeJ4rP3qi/ 6q/ln4z6a5p9XA/qXYrJuGAexvNv4Pxf2gU/SmtltK924bCF6l1WhinE0u9stx9hTlmN CRnlyqIanpqvvJBmQkYjTU7OTGNvMZAkRWNMnp4gJf7iJCTA40880jVwGTEmExyBR6Ck 1Odq7CBuDPJzc+u5iqeQwy+8Tqb1Cb04WlRSgM1xFfxkcWre/xkiC+cjXpPJ7l9jtL0w 4tqJHLtmcbm6aNkRVAhQQMIWjRlDYWkFkf+3ddKgrLVKPv1Oxq+u9qGELkvD6SWq2qfj 5LuA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bLnK3GqzULyhSKS5FupyNgmNAh++s9DL2tHmDmayp2A=; fh=VZeOjxjUAxRTQHcTy3cQ/N91NmAOV8JiOe0LREPOVLE=; b=jjmhOZiKuPy3wCpmcmF3OUX6nnCVmsQXZZotJjvmnfO82L6MsRY8kS4x3f/aJZQo+X QKfdBM9/oT/1W3QNod4FJyvN7v43KFr2ltJoOTIClabz0Xb4TgUTkjZcseHdav54FznF EJxidkM5b9KMzpU1R3Nr1TvPy2zg4W/9XzFyT75n2NjvMyS157AbpONyKxrFP7aeqimN 6Qxxpg8ra0Qocj3irjRyq0vbYUBq09EJO8s4csqel5vmzti3GIqpC45OrazIxIZks51y 1eI9gyGvluxtWoAEH/jyKta4ll8ooKcDS1pE+wH6waFApV3WHvi0g8SgMVD3AcnlGJt4 5NbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SNwdv25F; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id y28-20020a056a00181c00b0068e0fcf8c28si3443213pfa.336.2023.10.04.02.37.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 02:37:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SNwdv25F; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 10D8181F967A; Wed, 4 Oct 2023 02:37:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242025AbjJDJhJ (ORCPT + 53 others); Wed, 4 Oct 2023 05:37:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232963AbjJDJhF (ORCPT ); Wed, 4 Oct 2023 05:37:05 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87707A7 for ; Wed, 4 Oct 2023 02:37:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696412221; x=1727948221; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=fR+YKwoHfLIRDI3H/5+RZ3cQPiNyeCWqZgd3W3V4VaM=; b=SNwdv25Fl3sWlJD/usu/RxaymF0aX4EhOcfm1bkQpvDlPu7Wa1BPMi1l UXTBn0qPaxnvF+70KzQY1Rj1l/jbbaWDEZW2G4gATavbVd4leFMUtvIz8 R1ZWi9vVGZXjwQjKJhFAwU5LgmZZvJYpE+BpogrDyHUg0FtS4STB04QO8 9RklyFlKXlN9ljMicVHJFLgnRuJrVI3s8TkHH2xQay3af4abtYi4IE0vH az6Sy0jG3ema7YuHL05OokfBydyV+nzZfOh9YQshenKylQG9c6S5qdkrN qITEcl6OElC5QttGBQpRL0CbfAjpFiZxqYH3RLvFhkB38klmvKMztIpNI w==; X-IronPort-AV: E=McAfee;i="6600,9927,10852"; a="449611727" X-IronPort-AV: E=Sophos;i="6.03,199,1694761200"; d="scan'208";a="449611727" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Oct 2023 02:36:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10852"; a="1082415155" X-IronPort-AV: E=Sophos;i="6.03,199,1694761200"; d="scan'208";a="1082415155" Received: from oferweis-mobl.ger.corp.intel.com (HELO ggreenma-mobl2.intel.com) ([10.214.222.21]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Oct 2023 02:36:51 -0700 From: gregory.greenman@intel.com To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Rotem Saado , Gregory Greenman Subject: [PATCH 03/15] wifi: iwlwifi: yoyo: swap cdb and jacket bits values Date: Wed, 4 Oct 2023 12:36:22 +0300 Message-Id: <20231004123422.356d8dacda2f.I349ab888b43a11baa2453a1d6978a6a703e422f0@changeid> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20231004093634.131303-1-gregory.greenman@intel.com> References: <20231004093634.131303-1-gregory.greenman@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 04 Oct 2023 02:37:09 -0700 (PDT) From: Rotem Saado The bits are wrong, the jacket bit should be 5 and cdb bit 4. Fix it. Fixes: 1f171f4f1437 ("iwlwifi: Add support for getting rf id with blank otp") Signed-off-by: Rotem Saado Signed-off-by: Gregory Greenman --- drivers/net/wireless/intel/iwlwifi/iwl-prph.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-prph.h b/drivers/net/wireless/intel/iwlwifi/iwl-prph.h index 06d467068ff4..7bd4ce149e04 100644 --- a/drivers/net/wireless/intel/iwlwifi/iwl-prph.h +++ b/drivers/net/wireless/intel/iwlwifi/iwl-prph.h @@ -348,8 +348,8 @@ #define RFIC_REG_RD 0xAD0470 #define WFPM_CTRL_REG 0xA03030 #define WFPM_OTP_CFG1_ADDR 0x00a03098 -#define WFPM_OTP_CFG1_IS_JACKET_BIT BIT(4) -#define WFPM_OTP_CFG1_IS_CDB_BIT BIT(5) +#define WFPM_OTP_CFG1_IS_JACKET_BIT BIT(5) +#define WFPM_OTP_CFG1_IS_CDB_BIT BIT(4) #define WFPM_OTP_BZ_BNJ_JACKET_BIT 5 #define WFPM_OTP_BZ_BNJ_CDB_BIT 4 #define WFPM_OTP_CFG1_IS_JACKET(_val) (((_val) & 0x00000020) >> WFPM_OTP_BZ_BNJ_JACKET_BIT) -- 2.38.1