Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp545472rwr; Thu, 4 May 2023 06:46:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6w7gXgITctNnXV63CZcyX9CZh2drnJfTqEze43ipjdWURH7vuGwweOVvMa0ovJyaUAaDyQ X-Received: by 2002:a05:6a20:2d2b:b0:f0:471f:4aef with SMTP id g43-20020a056a202d2b00b000f0471f4aefmr2244118pzl.49.1683207966559; Thu, 04 May 2023 06:46:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683207966; cv=none; d=google.com; s=arc-20160816; b=sQ1936WEQSBopThi+reKwC+SzfuZ9CYgO/4rroDSGOI5NT3yfJLVEHCB0cBWVekkI5 RTOTu28XMb7vW3rF9LADW7xNss0t5yL96xKzojsmkFh63/y2BQk9gkmALy5kIYKbHWwT sjvyopiqngsjhjf2/QZbT+2e+bbpxikSwarZ/QbPpDzSCX3ybuqgwYRjAElIvHuwVPQr uWOwtOI/C8bGJ457fdTHarfzve21kyrKhADd8mOo1TLUMZ2hfrShiuXpA5xyMhj94Uxy Bi9a7NcwmuvtUMwTz2uK3Mm5RxYQgaFRZHUTqi4nLKMzJfhl0fC2LeiN5ZMkZmqeKoZs Yu4g== 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=jD9PmlPI/jzRQ2vJwq+xdPhTiBDkLcWo5G/RGAQpDYo=; b=eQVb7Ui/W6P3KXGFcywBPWYKCdB1rBQV2G8GWB7M0JzG/OfxZGWJlTZlx22zfCywMv 3yTP8u6LEUwLJ5WN1im0oe159GH9RKfOVn8hHPBCVGqBaCEgjeujkTSCscbQKJP5cHrP 8i4ORYJU9W+tMXtsi2cP+FpVCsGCU3dtx2l4cZ29GQxaOC5l/0zOqqpnovunzeCjkBc8 l8wFGVPaXUILRJpwmrpUCfEllkVxIicHroN/OO+YKLfKXC/xQdCGgRiTHsKMcM28fj63 nP6meio8bY0DQvIQovc3TfnN4cfepZaYNR6pR55ffdi4smTAodZ4U2KRmZyHqMG2wAk8 O5hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SWznhde4; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u185-20020a6385c2000000b00525064abb6csi29733431pgd.240.2023.05.04.06.45.49; Thu, 04 May 2023 06:46:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@intel.com header.s=Intel header.b=SWznhde4; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231127AbjEDNpb (ORCPT + 62 others); Thu, 4 May 2023 09:45:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229768AbjEDNp3 (ORCPT ); Thu, 4 May 2023 09:45:29 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8BDA7A99 for ; Thu, 4 May 2023 06:45:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683207928; x=1714743928; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ALbCDsqAv1bm5zJRLsbhpEz6VXCU5mltgSHgivgZuDM=; b=SWznhde4YH1B94kGHdXlA+nvwTqHhFovgoO7kwIL1J4du2XuB/qWUSf6 stO6EGdG2hBC3AjP7XobDXTPn1u5Bpae8e3yDOx769ive6xK1qRc7WuR7 AVzC8PI3mNYXflDIcKyIaakhtHHHpLiBAWYsFvV2TWw10abiV5j1fP+01 i0J2caxqjMrpYaHlBOKX33QnePUhwPXy/JTCKfY1kw2CI2zk97dLTz++T hxbN2FZklvWJrG4g+D+TMamzPnCNzrDnacPPmTDZm3Sa8u1ihKKgdKNQW 9+E3FvN9YDGgtsNn6NKtIetKRIs7NI7y+7uhlDIeOGhecoRzvJ2XGxGUq Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10700"; a="435242573" X-IronPort-AV: E=Sophos;i="5.99,249,1677571200"; d="scan'208";a="435242573" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2023 06:45:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10700"; a="766591635" X-IronPort-AV: E=Sophos;i="5.99,249,1677571200"; d="scan'208";a="766591635" Received: from haddadra-mobl1.ger.corp.intel.com (HELO ggreenma-mobl2.intel.com) ([10.214.238.144]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2023 06:45:27 -0700 From: gregory.greenman@intel.com To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Johannes Berg , Gregory Greenman Subject: [PATCH 01/11] wifi: mac80211: fix min center freq offset tracing Date: Thu, 4 May 2023 16:45:01 +0300 Message-Id: <20230504134511.828474-2-gregory.greenman@intel.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230504134511.828474-1-gregory.greenman@intel.com> References: <20230504134511.828474-1-gregory.greenman@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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-wireless@vger.kernel.org From: Johannes Berg We need to set the correct trace variable, otherwise we're overwriting something else instead and the right one that we print later is not initialized. Fixes: b6011960f392 ("mac80211: handle channel frequency offset") Signed-off-by: Johannes Berg Signed-off-by: Gregory Greenman --- net/mac80211/trace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mac80211/trace.h b/net/mac80211/trace.h index de5d69f21306..db0d0132c58c 100644 --- a/net/mac80211/trace.h +++ b/net/mac80211/trace.h @@ -67,7 +67,7 @@ __entry->min_freq_offset = (c)->chan ? (c)->chan->freq_offset : 0; \ __entry->min_chan_width = (c)->width; \ __entry->min_center_freq1 = (c)->center_freq1; \ - __entry->freq1_offset = (c)->freq1_offset; \ + __entry->min_freq1_offset = (c)->freq1_offset; \ __entry->min_center_freq2 = (c)->center_freq2; #define MIN_CHANDEF_PR_FMT " min_control:%d.%03d MHz min_width:%d min_center: %d.%03d/%d MHz" #define MIN_CHANDEF_PR_ARG __entry->min_control_freq, __entry->min_freq_offset, \ -- 2.38.1