Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp501134imm; Wed, 20 Jun 2018 01:46:06 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJMfPI14KbM9A3wWfst2uCX+6xkhXSSqTnlKCLwh1KBVt4XUVlEZaPibzJ5SjEKp3Ug5lGv X-Received: by 2002:a62:c16:: with SMTP id u22-v6mr21619247pfi.177.1529484366019; Wed, 20 Jun 2018 01:46:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529484365; cv=none; d=google.com; s=arc-20160816; b=NJKpgxhdL98RbcByRf1r4p9rWr+aHHORuNj2Kx+JOHCGuI+nkUWoNi457osh8r7u6w n7sJjRPmiVO8pRNTTJaxFLQGrL4awoBS82J5D+r/eyIXw/q7ZbsKYQyvfuaF7muZgWGa Wvvk+Xc9igKn2gHX4OlgZUkfxBKZbeL7I1wDtKl1vpDWEEebJKjmQBpQBsD0rVKf5QEX 40y4rIlnLFL+lL+cxcNNlawrJ2KrxWABne4otRpZRIg3EX8g+HdQ3Q+aHM60AWJJZX92 w0cclpGgMXZQphKZ6s9fUU42H7yCGeldpQAcvLDkvizO1b2k1WdNKYKctLlCtnZ3cSSv KbYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=+R4eGX5eAJCC9sbXyeuYvo0XKQNvBJaTjc88N6RgIzo=; b=GCySfi/Dv5RN3rv/LR60/uMBZ2MTx2sfDqxFGa4oQc/vyD13gIhb9KCI/x2GobTgT6 oKjxGMI1NAv5X0yIDvJonTvd2Cmja0c3LMqSgZN3jB3ZdpKUH29qkvSF/ErPmTYPyrIR diF5ShEOFqaZq+yKe9cxk9HF8L+9frLFuy83OKiQMSzhNAuJjahrIwUpR00X4pldShPj PgjMZuY2Ih545Rkg6kf+hQpj1gwhBOz2ISlPf4IKRNcbYWEVJi5DJ3ifwDCdtzgNVdnf ZZ/O+6HjlqhY1rm41+lh/uLK3CFtDsBhRSsVU5x4ZtnrhmFGbNsvg0G4wosp7gEjv8ht 2VRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OQJZdZFT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a73-v6si1919443pfl.349.2018.06.20.01.45.52; Wed, 20 Jun 2018 01:46:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OQJZdZFT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932742AbeFTIo0 (ORCPT + 99 others); Wed, 20 Jun 2018 04:44:26 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:45032 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932505AbeFTImu (ORCPT ); Wed, 20 Jun 2018 04:42:50 -0400 Received: by mail-lf0-f66.google.com with SMTP id p23-v6so3664455lfh.11 for ; Wed, 20 Jun 2018 01:42:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+R4eGX5eAJCC9sbXyeuYvo0XKQNvBJaTjc88N6RgIzo=; b=OQJZdZFTa3D64IzYYsSW4wLNuSHE+ja5yxDvahiFzZx+tt4QNzHhK5sVt2WALyrZNz Kq1zc6IJyJAyReZU4ek3iM9iWq60++VFr9sJeki0KmdFmdZaFlRB7Z3HYqlHRSp1d6RR Gt2tUjxFI2xfPX/O/VihEFZHNDskTxMk1DfXc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=+R4eGX5eAJCC9sbXyeuYvo0XKQNvBJaTjc88N6RgIzo=; b=t9ac9YhFj7uKEelzE52BxgHmIy+YYeHSm1Qmd7pwKlhndMLdaeu68CacHbf/+WYbju GEZnunUeBqKwtnYCuMJxlD6Lr5fZ+8VqOVi9lRI7Zg0d0nG1Y5Jy8xTeqRRq688q4prv AWhytL3FcAZQMHgtruz+0PAGiXTF/gRTeNI16EiQjH7bYGSVgR4MMq2AP6qVof8/IwFk WPkROBkcfllLLsfWU6Mu5f8EwaYv6oQehMzIoCdWs2blpeEG3IIW+kcktdznZZGBzCe9 zaZPQGxbdXqQmg+UQWzxpJnkCnKGMM0gJhMt+8dSjv7OVm3ixmfT9/EYsjUU5bLG4pIU qe2Q== X-Gm-Message-State: APt69E2lSKFVzf3wunuJwt0y2/tTxXwIQs89mwovbcR+47poD4ceylhg 5U/2yp8hUnxKEujIr/cvdj8KMg== X-Received: by 2002:a2e:5111:: with SMTP id f17-v6mr11538634ljb.16.1529484169027; Wed, 20 Jun 2018 01:42:49 -0700 (PDT) Received: from centauri.lan (h-229-118.A785.priv.bahnhof.se. [5.150.229.118]) by smtp.gmail.com with ESMTPSA id h90-v6sm296656ljf.65.2018.06.20.01.42.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Jun 2018 01:42:48 -0700 (PDT) From: Niklas Cassel To: Kalle Valo , "David S. Miller" Cc: alagusankar@silex-india.com, Niklas Cassel , ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] ath10k: sdio: set skb len for all rx packets Date: Wed, 20 Jun 2018 10:42:22 +0200 Message-Id: <20180620084222.3521-4-niklas.cassel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180620084222.3521-1-niklas.cassel@linaro.org> References: <20180620084222.3521-1-niklas.cassel@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Without this, packets larger than 1500 will silently be dropped. Easily reproduced by sending a ping packet with a size larger than 1500. Signed-off-by: Alagu Sankar Signed-off-by: Niklas Cassel --- drivers/net/wireless/ath/ath10k/sdio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/ath10k/sdio.c b/drivers/net/wireless/ath/ath10k/sdio.c index 0c57d6aaa437..8ac47b04a17e 100644 --- a/drivers/net/wireless/ath/ath10k/sdio.c +++ b/drivers/net/wireless/ath/ath10k/sdio.c @@ -396,6 +396,7 @@ static int ath10k_sdio_mbox_rx_process_packet(struct ath10k *ar, int ret; payload_len = le16_to_cpu(htc_hdr->len); + skb->len = payload_len + sizeof(struct ath10k_htc_hdr); if (trailer_present) { trailer = skb->data + sizeof(*htc_hdr) + -- 2.17.1