Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3583884iob; Tue, 17 May 2022 03:14:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzA43eGqwsghiv4tD19Om2tbIRMXk+WVlHDtzNTYAFh2AlgWut4Pm9Jw/7B2qmLbh4HzuTu X-Received: by 2002:a17:90b:3b45:b0:1dd:1f37:d159 with SMTP id ot5-20020a17090b3b4500b001dd1f37d159mr35509108pjb.44.1652782467980; Tue, 17 May 2022 03:14:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652782467; cv=none; d=google.com; s=arc-20160816; b=ixl+qCW7LiWZDP6TwUrFcZAH+LcYpEoVO7Z5wdEeodxIIwu0PaW56cwt4B6IwxLJQJ rMFV5Urstd4UoYavRxHTxnt+0CWdPs6W/iaUnrk3COCr+xzibEyfAEQp7yOLWfcj36g4 QjLsL+w2Ilu0IWOnQCLPGpJ8gHLCCpPP/J502ZHfV+CWiUcBl92NK3QL0MIqQiwu0Gkh tp5r0AcgG6czJoI0NttR4afvevKfqh94wDzP+jCg3SN6tF5MEmGF3kkGGziw9d8X/x4g D1/iqsotjkI9Kth76DO0gNQ8oz4xPJI+Fbbrc/2153umWCeC9esRcOLLITUT2rSFilPn 3ICg== 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=Fn141f6twnmbYI0oSO7TwB9lrBOh6Ap0TWlNDVo02as=; b=aSqcYKYBsg6ljRjoMWVxKsDgctokUrpaxXQ3NRHXp+BkCPl7mv7cJZVLa4/pmXZ7+N QqTmZmXlYmeDWmABfOKLY7z6JRMiTv1/Bkggok/Mau96pWTXeY9tQ+wRiHaqMx7ec15E VPOK9QMmg/RD7FQVgW/8IxQ11j171MoPY34xKH/WbzsoV27Cc52WK+XfPy04INbd1mJ/ Q/uGmSUVS3hDLQQvBmWLbmeEg8xb+tinYcrGNwFEbPYFjqncLuq/QomDUITL/k7eP9Kl uOEeaF/7d4L+RnTwZ2pl3KKXyO9MNLbedg6CrYuMYUzl8zwREIk8eWMsi45BsnMApXkY nXdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=V4KGJ0wP; 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 o14-20020a63a80e000000b0039d80004fcasi16134863pgf.221.2022.05.17.03.14.18; Tue, 17 May 2022 03:14:27 -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=V4KGJ0wP; 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 S244306AbiEQJIV (ORCPT + 70 others); Tue, 17 May 2022 05:08:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244374AbiEQJHn (ORCPT ); Tue, 17 May 2022 05:07:43 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0FBA23BD7 for ; Tue, 17 May 2022 02:06:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652778408; x=1684314408; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=pO4K6ca3nxEpvtgRs0gQbHdPYjJFJErgmD63DL4qbGY=; b=V4KGJ0wPoOypeo5LPXdO/Ko0C5v0tw+R50JkyZjfHFGyJhFTcaKBaJuF INTtKENaGENYVsayI03LoXJiUmgI0ShMMbTXf9sLJTnfF4JUMv7sEpXYo V9t+hXamqDrujwTMaC34UdVmXdBle4ZvAh3rIZU/ACanUJBfWLzq7dSF/ uajkOxmMxULsIi2mEiuEMF02UYpw+kBVX1sYfd1pQvQMSwSDnSgjQhTEF g7evBYFiU+6AcpOsZ/+zmlV79WuuSMhMVy4Vtn7ZUSAOOveeMKERK3+oE qZY11avRPPQemZt38nLqrE2rNmC58AXltHc7jIoyiqLb+wah6HlUJk78N w==; X-IronPort-AV: E=McAfee;i="6400,9594,10349"; a="271064839" X-IronPort-AV: E=Sophos;i="5.91,232,1647327600"; d="scan'208";a="271064839" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2022 02:06:34 -0700 X-IronPort-AV: E=Sophos;i="5.91,232,1647327600"; d="scan'208";a="741679771" Received: from sgens-mobl3.ger.corp.intel.com (HELO ggreenma-mobl2.lan) ([10.214.212.48]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2022 02:06:32 -0700 From: gregory.greenman@intel.com To: kvalo@kernel.org Cc: johannes@sipsolutions.net, gregory.greenman@intel.com, linux-wireless@vger.kernel.org, Avraham Stern Subject: [PATCH 09/10] iwlwifi: mei: clear the sap data header before sending Date: Tue, 17 May 2022 12:05:13 +0300 Message-Id: <20220517120045.8dd3423cf683.I02976028eaa6aab395cb2e701fa7127212762eb7@changeid> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220517090514.211796-1-gregory.greenman@intel.com> References: <20220517090514.211796-1-gregory.greenman@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.5 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 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: Avraham Stern The SAP data header has some fields that are marked as reserved but are actually in use by CSME. Clear those fields before sending the data to avoid having random values in those fields. Signed-off-by: Avraham Stern Signed-off-by: Gregory Greenman --- drivers/net/wireless/intel/iwlwifi/mei/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/intel/iwlwifi/mei/main.c b/drivers/net/wireless/intel/iwlwifi/mei/main.c index b4f45234cfc8..3d2eb15a9662 100644 --- a/drivers/net/wireless/intel/iwlwifi/mei/main.c +++ b/drivers/net/wireless/intel/iwlwifi/mei/main.c @@ -493,6 +493,7 @@ void iwl_mei_add_data_to_ring(struct sk_buff *skb, bool cb_tx) if (cb_tx) { struct iwl_sap_cb_data *cb_hdr = skb_push(skb, sizeof(*cb_hdr)); + memset(cb_hdr, 0, sizeof(*cb_hdr)); cb_hdr->hdr.type = cpu_to_le16(SAP_MSG_CB_DATA_PACKET); cb_hdr->hdr.len = cpu_to_le16(skb->len - sizeof(cb_hdr->hdr)); cb_hdr->hdr.seq_num = cpu_to_le32(atomic_inc_return(&mei->sap_seq_no)); -- 2.35.1