From patchwork Sun Nov 12 09:59:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emmanuel Grumbach X-Patchwork-Id: 743437 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 69BE6C41535 for ; Sun, 12 Nov 2023 09:59:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229588AbjKLJ77 (ORCPT ); Sun, 12 Nov 2023 04:59:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229548AbjKLJ76 (ORCPT ); Sun, 12 Nov 2023 04:59:58 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E9222D77 for ; Sun, 12 Nov 2023 01:59:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1699783195; x=1731319195; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=BMfR+xMy33jsc8DrNjnelvskKSad3bMdkrfuZZdnBoI=; b=lAsOz9cYu3Bic9mTZ8x61gihCh85Ag2JIdN0U9xY3ObtYxzmjKmPcPHz e95r5zv/2dTBUAuIQqc2Cb1do0KalSgk4lvrtPZpMzSqatKIYOaaIphZ7 MO3O8pqv/edA7Laa9hLs7/y/IFhd1zmDKPjZ5dF7KXdpZDW7rX1jPqM/A fOo9G9FnwG+kn27ZyuIcfkL/tfV+JEOFWLBRZqvpNR90PXp2xZryOKsER /wAxvzCd+bVPkwxyfziHwmSMJEm6lNcChRn1f8XAIC66KpjX0wN4Xzbzk lHG29gdo/BHPdBxCOiB59DAUWdY5e6yRj9tFO00h4yCY4cgrAYU1HkkTX g==; X-IronPort-AV: E=McAfee;i="6600,9927,10891"; a="456816424" X-IronPort-AV: E=Sophos;i="6.03,297,1694761200"; d="scan'208";a="456816424" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Nov 2023 01:59:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10891"; a="830002729" X-IronPort-AV: E=Sophos;i="6.03,297,1694761200"; d="scan'208";a="830002729" Received: from egrumbac-mobl1.ger.corp.intel.com (HELO egrumbac-mobl1.lan) ([10.255.198.134]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Nov 2023 01:59:52 -0800 From: Emmanuel Grumbach To: Linus Torvalds Cc: Kalle Valo , Linux Wireless , Anjaneyulu , Gregory Greenman , Linux Regressions , Johannes Berg , Bagas Sanjaya , Miri Korenblit , Emmanuel Grumbach Subject: [PATCH] wifi: iwlwifi: fix system commands group ordering Date: Sun, 12 Nov 2023 11:59:43 +0200 Message-ID: <20231112095943.19353-1-emmanuel.grumbach@intel.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Miri Korenblit The commands should be sorted inside the group definition. Fix the ordering so we won't get following warning: WARN_ON(iwl_cmd_groups_verify_sorted(trans_cfg)) Fixes: b6e3d1ba4fcf ("wifi: iwlwifi: mvm: implement new firmware API for statistics") Change-Id: I0112bd7da4559a8e69e84cd8f55ba8e6fe8252cb Signed-off-by: Miri Korenblit Signed-off-by: Emmanuel Grumbach --- drivers/net/wireless/intel/iwlwifi/mvm/ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c index fef86a8b4163..1627b2f819db 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c @@ -550,9 +550,9 @@ static const struct iwl_hcmd_names iwl_mvm_system_names[] = { HCMD_NAME(RFI_CONFIG_CMD), HCMD_NAME(RFI_GET_FREQ_TABLE_CMD), HCMD_NAME(SYSTEM_FEATURES_CONTROL_CMD), - HCMD_NAME(RFI_DEACTIVATE_NOTIF), HCMD_NAME(SYSTEM_STATISTICS_CMD), HCMD_NAME(SYSTEM_STATISTICS_END_NOTIF), + HCMD_NAME(RFI_DEACTIVATE_NOTIF), }; /* Please keep this array *SORTED* by hex value.